This is the mail archive of the binutils@sourceware.org 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] |
Hello, everyone:
It seems to me that the order LD resolves symbols is:
(1) the object files listed in the command line (2) the object files listed in the link script
If I recalled correctly, each archive is opened only once, unless otherwise specified. If libc.a, libm.a, libgcc,a are opened in the step (1), the symbol in those archived won't be resolved in step (2).
I'm porting a large software and I have to manually put the object files into different sections. GCC __attribute__ is not feasible, because there are thousands of functions in each object file.
SECTION { .a : { a/*.o } > ram .b : { b/*.o } > ram }
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |