🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ibm.pc.programmer
2 messages
2 total messages Started by yung Fri, 05 Apr 1991 20:16
Borland C++: relocate data section in .exe?
#1143
Author: yung
Date: Fri, 05 Apr 1991 20:16
19 lines
934 bytes
Hi folks.
 
A quick question: I am using Borland's C++ 2.0 to compile a project (1 C
module and 2 assembly module). But I need the resulting executable file
to have the data section comes BEFORE the code section.
 
Can anybody help me with this?
 
Any help would be gratefully appreciated. Thanks in advance.
 
Happy computing.
 
 
                
-- 
*******************************************************************************
Amos Yung    *       " Don't be silly. Of course the plane
email:       *         won't crash. *I* am on it!!! "
utai!contact *              -Murphy Brown.
Re: Borland C++: relocate data section in .exe?
#1146
Author: Devin Ben-Hur
Date: Mon, 08 Apr 1991 17:21
18 lines
1304 bytes
In article <1991Apr5.201638.5288@contact.uucp> yung@contact.uucp () writes:
>A quick question: I am using Borland's C++ 2.0 to compile a project (1 C
>module and 2 assembly module). But I need the resulting executable file
>to have the data section comes BEFORE the code section.

Make a .ASM module that contains no code or data but does define
all the sections you want to explicitely order, in the order you desire
them.  Make this module the first .OBJ file in your link directives.
I haven't tested this with the 2.0 compiler but it's worked before.

If you want to use the IDE Project facility, it always links the C0? module
first, so find the source to it and add your segment ordering to that file
and re-assemble.
-- 
---
Devin Ben-Hur
dbenhur@adobe.com        415/962-6074
drazil@netcom.com        "Me, not Adobe"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads