The assembler output for the following label difference is incorrect:

        .dword  L$FE0061-L$FB0061

The order of the two 32-bit words in the 64-bit output are interchanged.
This doesn't happen in every label difference.  It has something to do
with label expressions since outputing the difference directly using a
hex constant works correctly.

As far as I can tell, this output is mainly done by generic code (cons).

Will attach the full test file shortly.

-- 
           Summary: Wrong output for 64-bit difference of labels
           Product: binutils
           Version: 2.17 (HEAD)
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: danglin at gcc dot gnu dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to