https://sourceware.org/bugzilla/show_bug.cgi?id=20442

            Bug ID: 20442
           Summary: R_SPARC_GOTDATA_OP_LOX10 incorrectly falls back on
                    R_SPARC_GOT13
           Product: binutils
           Version: 2.27
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: jrtc27 at jrtc27 dot com
                CC: ccoutant at gmail dot com, ian at airs dot com
  Target Milestone: ---

The fall-through in Target_sparc::Relocate::relocate for
R_SPARC_GOTDATA_OP_LOX10 is currently R_SPARC_GOT13, but should clearly be
R_SPARC_GOT10. GCC has been seen to emit a sethi/xor rather than a sethi/or
sequence to load a 32-bit immediate, but if R_SPARC_GOT13 is used then bits
10-12 get zeroed out as both the sethi and xor immediates contain them. Patch
available at https://www.sourceware.org/ml/binutils/2016-07/msg00161.html.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to