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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

Given

 movq foo@GOTPCREL(%rip), %rax
 movl bar@GOTPCREL(%rip), %eax
.long zed@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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to