Bug ID: 36370
           Summary: We should produce a R_X86_64_PLT32 for "call foo"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC


        call foo
        .long foo - .

gas after bd7ab16b4537788ad53521c45469a1bdae84ad4a will produce a
R_X86_64_PLT32 and a R_X86_64_PC32. MC produces two R_X86_64_PC32.

The advantage of R_X86_64_PLT32 is that it makes it obvious to the linker that
the address of the function is not being used. The linker has the flexibility
of directing the relocation to the final function (if it is local) or to a PLT
(if it is not).

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to