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] |
I am creating a linker script to place sections at exactly the addresses I want them.
However, I want a specific section from a specific .o file that is
inside a specific .a file.
there is a new (admittedly ugly) MEMBER operator in the linker script that lets you specify a pair of a .a and .o file, that you can use in place of any normal (possibly wildcarded) filename, e.g in my case:
/* Only get .text section from bar.o inside foo.a */ .text : { MEMBER(foo.a , bar.o)(.text) }
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |