This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
forcing ld to make a set of sections adjacent?
- From: Adam Megacz <adam at megacz dot com>
- To: binutils at sources dot redhat dot com
- Date: 06 Nov 2002 10:49:52 -0800
- Subject: forcing ld to make a set of sections adjacent?
- Organization: Myself
Hi, I'm working on getting gcj (gcc java frontend) to cooperate with
ld's --gc-sections. This involves a lot of wierd magic with runtime
vtable layout so that the vtables don't force the linker to include
all the function sections for a class if only one function is used.
The question I have is this: is there a generalized way for the
compiler/assembler to force the linker to make a given set of sections
adjacent in the resulting binary?
Essentially I want to do something just like the .ctors/.dtors stuff
for C++, but I can't use .ctors/.dtors to do it. Is ctors/dtors a
general mechanism I can use, or is are these two symbols considered
"magic symbols" in the linker?
Thanks!!
- a
--
Microsoft follows standards the same way fish follow migrating caribou.