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

           Summary: ld from binutils 2.21.51.0.6 mishandles differences
                    between two section-relative symbols
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassig...@sources.redhat.com
        ReportedBy: h...@zytor.com


Created attachment 5344
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5344
Linker script

Defining two section-relative symbols in a linker script and subtracting them
produces the wrong result (specifically, they end up with the section base
added in.)

See attached test case; in particular, %ecx gets 0x500 loaded into it instead
of the expected 0x100.

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