[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/32196] New: R_X86_64_32 relocation generated, expecting R_X86_6
From: |
address@hidden |
Subject: |
[Bug gas/32196] New: R_X86_64_32 relocation generated, expecting R_X86_64_PLT32 |
Date: |
Sat, 21 Sep 2024 23:03:25 +0000 |
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: mail@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.
- [Bug gas/32196] New: R_X86_64_32 relocation generated, expecting R_X86_64_PLT32,
address@hidden <=
- [Bug gas/32196] R_X86_64_32 relocation generated, expecting R_X86_64_PLT32, sam at gentoo dot org, 2024/09/22
- [Bug gas/32196] R_X86_64_32 relocation generated, expecting R_X86_64_PLT32, hjl.tools at gmail dot com, 2024/09/22
- [Bug gas/32196] R_X86_64_32 relocation generated, expecting R_X86_64_PLT32, cvs-commit at gcc dot gnu.org, 2024/09/22
- [Bug gas/32196] R_X86_64_32 relocation generated, expecting R_X86_64_PLT32, cvs-commit at gcc dot gnu.org, 2024/09/25
- [Bug gas/32196] R_X86_64_32 relocation generated, expecting R_X86_64_PLT32, hjl.tools at gmail dot com, 2024/09/25