[llvm-bugs] [Bug 44397] New: MC produces a R_X86_64_PC32, gas produces a R_X86_64_PLT32

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 28 16:47:33 PST 2019


            Bug ID: 44397
           Summary: MC produces a R_X86_64_PC32, gas produces a
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael at espindo.la
                CC: grimar at accesssoftek.com, llvm-bugs at lists.llvm.org,
                    ruiu at google.com


        jne foo
        .long foo - .

MC produces two R_X86_64_PC32 relocations. The gnu assembler produces a
R_X86_64_PLT32 for the first one and a R_X86_64_PC32 to the second one.

The advantage of producing a R_X86_64_PLT32 for branches is that the linker
doesn't have to enforce pointer equality in the same way it has to do for

The corresponding bug in the gnu assembler is

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/20191229/71d109a9/attachment.html>

More information about the llvm-bugs mailing list