https://sourceware.org/bugzilla/show_bug.cgi?id=17406
Bug ID: 17406 Summary: gold ignores --as-needed Product: binutils Version: 2.24 Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ccoutant at google dot com Reporter: jengelh at inai dot de CC: ian at airs dot com Description: gold seems to ignore the --as-needed option. Command issued: echo -en '#include <pcre.h>\nint main(void) { return (long)pcre_compile; };\n' >x.c; gcc-4.9 -fuse-ld=gold -Wl,--as-needed -lpcre x.c Observed: (no output - gold exited with success) Expected: Behavior like ld.bfd: /tmp/cc6uYVGr.o: In function `main': x.c:(.text+0x5): undefined reference to `pcre_compile' collect2: error: ld returned 1 exit status -- 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