[llvm-bugs] [Bug 27428] New: Produce R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX when appropriate

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 19 14:32:11 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27428

            Bug ID: 27428
           Summary: Produce R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX
                    when appropriate
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: davide at freebsd.org, llvm-bugs at lists.llvm.org,
                    ruiu at google.com
    Classification: Unclassified

Given

 movq foo at GOTPCREL(%rip), %rax
 movl bar at GOTPCREL(%rip), %eax
.long zed at GOTPCREL

a recent gas produces


0000000000000003  000000050000002a R_X86_64_REX_GOTPCRELX 0000000000000000 foo
- 4
0000000000000009  0000000600000029 R_X86_64_GOTPCRELX     0000000000000000 bar
- 4
000000000000000d  0000000700000009 R_X86_64_GOTPCREL      0000000000000000 zed
+ 0


MC produces


0000000000000003  000000050000002a R_X86_64_REX_GOTPCRELX 0000000000000000 foo
- 4
0000000000000009  0000000600000029 R_X86_64_GOTPCRELX     0000000000000000 bar
- 4
000000000000000d  0000000700000009 R_X86_64_GOTPCREL      0000000000000000 zed
+ 0


We should add support for the new relocations.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160419/676423c7/attachment.html>


More information about the llvm-bugs mailing list