https://sourceware.org/bugzilla/show_bug.cgi?id=32816
--- Comment #14 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b57b7393a1e84aa6017e9e419b47e5f4f5ce4aa commit 5b57b7393a1e84aa6017e9e419b47e5f4f5ce4aa Author: Alan Modra <[email protected]> Date: Thu Sep 10 18:01:45 2026 +0930 make ld -u symbols load --as-needed shared libraries This makes --as-needed ELF shared libraries a little more like archives in that -u symbols on the command line will mark them as needed. The pr26580-1 testcase that linked a library with a _start definition before linking an object defining _start needs the order fixing. Otherwise the library will be found needed to satisfy _start, destroying the whole purpose of the testcase which was to verify a library found not needed would leave common symbol size unchanged. I made the same change to pr25680-2 for consistency. PR 32816 * ldlang.h (ldlang_ref): Declare. * ldlang.c (ldlang_ref): New function. (insert_undefined): Use ldlang_ref. * ldexp.c (exp_fold_tree_1): Use ldlang_ref. * testsuite/ld-elf/comm-data.exp (pr26580-1, pr26580-2): Link shared library after pr26580-a.o. -- You are receiving this mail because: You are on the CC list for the bug.
