[Top][All Lists]

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

[Bug ld/12001] Linker includes archive members when symbols therein have

From: mark at codesourcery dot com
Subject: [Bug ld/12001] Linker includes archive members when symbols therein have already been defined
Date: Thu, 28 Oct 2010 15:27:18 +0000


--- Comment #3 from Mark Mitchell <mark at codesourcery dot com> 2010-10-28 
15:27:07 UTC ---
On 10/28/2010 8:48 AM, nickc at redhat dot com wrote:

>   In the course of checking the patch I found one linker testcase that broke:
> default-script2.

I agree.

I'm disturbed that there's any evidence that people were relying on the
old behavior, but it just seems wrong:


>   _START = DEFINED(_START) ? _START : 0x9000000;

in combination with --defsym _START=... should result in a defined
_START.  IMO, the most logical interpretation of --defsym is that the
linker operate "as if" such definitions occurred at the top of the
linker script, in the order they appeared on the command line, so that
the script is actually:

  _START = 0x80000000;
  _START = DEFINED(_START) ? _START : 0x9000000;

And, in that case, of course, _START is defined.

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

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