Summary: | Interprets --exclude-libs completely different to old GNU ld | ||
---|---|---|---|
Product: | binutils | Reporter: | robert.wohlrab |
Component: | gold | Assignee: | Ian Lance Taylor <ian> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug-binutils |
Priority: | P2 | ||
Version: | 2.20 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
robert.wohlrab
2009-11-08 00:18:16 UTC
Thanks for the bug report. I can't help but notice that though you mention -- exclude-libs in the description, you aren't actually using it in the link command line. Still I will look to see if I can spot a difference in behaviour. Subject: Bug 10916 CVSROOT: /cvs/src Module name: src Changes by: ian@sourceware.org 2009-12-31 01:14:34 Modified files: gold : ChangeLog symtab.cc gold/testsuite : exclude_libs_test_1.c Log message: PR 10916 * symtab.cc (Symbol_table::add_from_relobj): When not exporting symbols from this object, don't change the visibility of an undefined symbol. * testsuite/exclude_libs_test_1.c (lib1_ref): New function. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.412&r2=1.413 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/symtab.cc.diff?cvsroot=src&r1=1.134&r2=1.135 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/testsuite/exclude_libs_test_1.c.diff?cvsroot=src&r1=1.1&r2=1.2 I think I've spotted the problem. I committed a patch for it. Please let me know if you still have problems with this. Weird that that information is missing. I thought that I just copied the bugreport from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555012 .... were you can see the --exclude-libs in the command line. Little bit weird, but thanks for fixing it anyway :) |