bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/10875] links against libraries I never have specified


From: robert dot wohlrab at gmx dot de
Subject: [Bug gold/10875] links against libraries I never have specified
Date: 31 Oct 2009 22:10:19 -0000

------- Additional Comments From robert dot wohlrab at gmx dot de  2009-10-31 
22:10 -------
It seems to be that it is partly related to the problem that --as-needed
doesn't remove files which aren't really needed by the executable. So a simple

echo "int main() {return 0;}" > testme.c
gcc -Wl,--as-needed testme.c -o testme -lglib-2.0

will link against glib-2.0 even if it is not used. So

readelf -d testme|grep -e '(NEEDED)' -e 'glib-2.0'

will not be an empty string.

But this doesn't explain libgcc_s.so.1 and ld-linux-x86-64.so.2

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10875

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]