This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

forcing ld to make a set of sections adjacent?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]