--export-dynamic question
Andreas Schwab
schwab@suse.de
Tue Aug 31 12:09:00 GMT 2004
More information about the Binutils mailing list
Tue Aug 31 12:09:00 GMT 2004
- Previous message (by thread): --export-dynamic question
- Next message (by thread): Results for binutils 2.15.91 20040831 testsuite on sparc64-unknown-linux-gnu
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Toon Knapen <toon.knapen@fft.be> writes: > Now however I link a.out using following command-line: > > ld --export-dynamic main.o libfoo.a > > And the funtion foo does not appear either (although I would expect the > export-dynamic flag to prevent the dead-code elimination) ? --export-dynamic does not change in any way how the linker collects input files. Since libfoo.a(foo.o) is not linked in you also don't get any symbols defined in that file. If you want to force linking in the whole archive library use --whole-archive. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
- Previous message (by thread): --export-dynamic question
- Next message (by thread): Results for binutils 2.15.91 20040831 testsuite on sparc64-unknown-linux-gnu
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list