On 9 Mar 2012, David C. Rankin outgrape: > On 03/09/2012 10:54 AM, Nix wrote: > >> This is not a GCC-specific thing: it's a local distro patch to GCC's >> specfiles forcing the addition of -Wl,--no-copy-dt-needed-entries to all >> link lines (or -Wl,--no-add-needed on older binutils, which means the >> same thing but is a confusing option name so is deprecated). This is a >> good idea in the longer run, even though it does break things now. [...] > That got me curious and I looked at all the patches - not many, and I can't > find the one your talking about. Below are all the patches applied to Archlinux > gcc. Is what you are talking about there, so I know what patch is doing it?? No, it's none of those. ... I was wrong. This is not a GCC thing at all. It's a binutils 2.22 thing, and upstream *is* affected, so this is not a vendor-specific patch. From binutils-2.22/ld/NEWS: * --copy-dt-needed-entries is no longer enabled by default. Instead --no-copy-dt-needed-entries is the default. (This has been a right mess. This option name has changed three times and has been variously forced in by vendor patches to GCC specfiles, forced in by upstream GCC -- in unreleased code only -- and then, finally, forced on by a change to the default in GNU ld. I missed the last of these changes.) -- NULL && (void)