http://sourceware.org/bugzilla/show_bug.cgi?id=12001

--- 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:

This:

>   _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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to