[Bug ld/26590] --as-needed doesn't work correctly

2020-09-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26590 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ld/26590] --as-needed doesn't work correctly

2020-09-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26590 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=93d49941edbb5274bee6ce3e547a07c7ce4c4301 commit 93d49941edbb5274bee6ce3e547a07c7

[Bug ld/26590] --as-needed doesn't work correctly

2020-09-09 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26590 --- Comment #2 from Alan Modra --- Your testcase demonstrates --as-needed working as designed. This is not a bug in ld.bfd and the fact that gold does not diagnose an undefined symbol does not mean much. -- You are receiving this mail becau

[Bug ld/26590] --as-needed doesn't work correctly

2020-09-09 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26590 --- Comment #1 from H.J. Lu --- Both gold and lld generate output. But [hjl@gnu-cfl-2 pr26530a]$ ./x 1 [hjl@gnu-cfl-2 pr26530a]$ LD_BIND_NOW=1 ./x ./x: symbol lookup error: ./liblto-18c.so: undefined symbol: f1 [hjl@gnu-cfl-2 pr26530a]$ I t