Hi Doug,
I'm not actually sure that this is a linker bug, but it sure looks
like one. Version 2.21.1a of ld works fine, but starting at version
2.22 and up to 2.24, we are seeing some odd behaviour that is hard to
pin down.
If you have a look at the ld/NEWS file in the sources you can see what
changed with the introduction of release 2.22. One item stands out:
* --copy-dt-needed-entries is no longer enabled by default. Instead
--no-copy-dt-needed-entries is the default.
Maybe if you try adding -Wl,--copy-dt-needed-entries to your g++ command
line you will get a different behaviour ? (Just a guess, but worth a try).
All versions of the linker were built and run on a x86_64
RHEL 6.4 system specifying only --prefix to configure. The symptoms vary,
Are all the symptoms related to startup/shutdown code ? If so then the
problem could be related to the linker script used to combine all the
object files and libraries together. How about linking with the 2.21
linker script but using the 2.24 linker ?
Just a couple of ideas.
Cheers
Nick
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils