https://sourceware.org/bugzilla/show_bug.cgi?id=32196

            Bug ID: 32196
           Summary: R_X86_64_32 relocation generated, expecting
                    R_X86_64_PLT32
           Product: binutils
           Version: 2.43
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: m...@felix-potthast.de
  Target Milestone: ---

Created attachment 15711
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15711&action=edit
Test case

I expect gas to generate a R_X86_64_PLT32 when writing:
movq $foo@PLT, %rax

However, a R_X86_64_32 is generated instead.

Assembling the attached file with:
as test.s -o test.o

And linking with:
ld -static test.o -o test

leads to the executable generating a segfault when running.
When assembling with clang and then linking, the generated executable exits
without an error.

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

Reply via email to