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

            Bug ID: 44397
           Summary: MC produces a R_X86_64_PC32, gas produces a
                    R_X86_64_PLT32
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedb...@nondot.org
          Reporter: raf...@espindo.la
                CC: gri...@accesssoftek.com, llvm-bugs@lists.llvm.org,
                    r...@google.com

Given

        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
R_X86_64_PC32.

The corresponding bug in the gnu assembler is
https://sourceware.org/bugzilla/show_bug.cgi?id=22791

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

Reply via email to