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] |
am i wrong in assuming that the start/end group options should cause the list of archives to be treated as one archive ? what i'm looking at is: gcc -static main.o --start-group libs.a libw.a --end-group - libs.a contains libs.o - libw.a contains libw.o - main.o defines main() which refers to moo() - libw.o defines moo() which refers to foo() - foo() is defined as a weak in libw.o - foo() is defined as a strong in libs.o the idea is that the strong symbol should override the weak one, and since they're in the same group, this should just work. unfortunately, in the aforementioned case, the weak foo() is picked over the strong foo(). if i link like so, i get the strong symbol: gcc -static main.c libs.c libw.c gcc -static main.o libs.o libw.o -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |