[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28231] New: relocation truncated to fit: R_X86_64_32S against `.
From: |
manisandro at gmail dot com |
Subject: |
[Bug ld/28231] New: relocation truncated to fit: R_X86_64_32S against `.text' |
Date: |
Sun, 15 Aug 2021 22:21:18 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28231
Bug ID: 28231
Summary: relocation truncated to fit: R_X86_64_32S against
`.text'
Product: binutils
Version: 2.37
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: manisandro at gmail dot com
Target Milestone: ---
On a current Fedora Rawhide with
mingw64-binutils-2.37-2.fc36.x86_64
mingw64-gcc-11.2.1-3.fc35.x86_64
The following
typedef struct __A {
} A;
int main(int argc, char** argv) {
A a;
__asm__ __volatile__ (
"leaq 1f, %%rax" "\n\t"
"1:" "\t"
:
/* No outputs */
:
[a] "m" (a)
:
"%rax"
);
return 1;
}
results in
$ x86_64-w64-mingw32-gcc -o test test.c
/tmp/ccfMmoPi.o:test.c:(.text+0x18): relocation truncated to fit: R_X86_64_32S
against `.text'
collect2: error: ld returned 1 exit status
This is a reduced testcase from mingw-tk, which fails to build due to this. The
full code triggering this [1] asm block.
(Note: I don't know asm well enough to judge whether the asm code in the test
case is a valid test case, I just reduced the full code to the minimum lines
triggering the error. Filing this attemping to fix a FTBFS of mingw-tk)
[1] https://github.com/tcltk/tk/blob/main/win/tkWin32Dll.c#L128
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/28231] New: relocation truncated to fit: R_X86_64_32S against `.text',
manisandro at gmail dot com <=