https://sourceware.org/bugzilla/show_bug.cgi?id=18591
Bug ID: 18591 Summary: Invalid R_X86_64_GOTPCREL -> R_X86_64_PC32 conversions Product: binutils Version: 2.26 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-tools-1 lea]$ cat x.S .data .space 0x100000000 .hidden foo .globl foo .type foo, @object foo: .long 20 .size foo, .-foo .text .globl _start .type _start, @function _start: movq foo@GOTPCREL(%rip), %rax .size _start, .-_start [hjl@gnu-tools-1 lea]$ make gcc -B./ -c -o x.o x.S ./ld -shared -o x.so x.o x.o: In function `_start': (.text+0x3): relocation truncated to fit: R_X86_64_PC32 against symbol `foo' defined in .data section in x.o Makefile:26: recipe for target 'x.so' failed make: *** [x.so] Error 1 [hjl@gnu-tools-1 lea]$ -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils