http://sourceware.org/bugzilla/show_bug.cgi?id=15938
Bug ID: 15938 Summary: --start/--end-lib renders --print-map (Archive member included because of...) useless Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ian at airs dot com Reporter: ppluzhnikov at google dot com CC: ccoutant at google dot com When debugging linking problems, it is often useful to understand what caused a particular file (foo.o below) to be pulled out of archive. The --print-map output has a section which answers that, e.g.: Archive member included because of file (symbol) ./libfoo.a(foo.o) main.o (foo) Gold (GNU gold (GNU Binutils 2.23.52.20130907) 1.11) does not print that info when using --start-lib foo.o --end-lib Repro steps: cat main.c int foo(); int main() { return foo(); } cat foo.c int foo() { return 42; } gcc -c foo.c main.c ar ruv libfoo.a foo.o # shows why foo.o was selected: gcc main.o -L. -lfoo -Wl,--print-map # does *not* show why foo.o was selected: gcc main.o -Wl,--start-lib foo.o --Wl,--end-lib -Wl,--print-map -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils