bug-binutils
[Top][All Lists]
Advanced

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

Re: Odd ld behaviour starting at version 2.22


From: Nicholas Clifton
Subject: Re: Odd ld behaviour starting at version 2.22
Date: Mon, 03 Nov 2014 12:13:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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




reply via email to

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