https://sourceware.org/bugzilla/show_bug.cgi?id=18695
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- Overflow check doesn't work x32: [hjl@gnu-6 pr18695]$ cat x.S .hidden foo .comm pad,0x8ff00000,8 .comm foo,8,8 .text .globl bar .type bar, @function bar: lea foo(%rip), %rax [hjl@gnu-6 pr18695]$ make x32.so gcc -mx32 -g -c -o x32.o x.S ./ld.gold -m elf32_x86_64 -z max-page-size=0x200000 -shared -o x32.so x32.o [hjl@gnu-6 pr18695]$ ld.bfd -m elf32_x86_64 -z max-page-size=0x200000 -shared -o x32.so x32.o x32.o: In function `bar': /export/home/hjl/bugs/binutils/pr18695/x.S:8:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against symbol `foo' defined in COMMON section in x32.o [hjl@gnu-6 pr18695]$ -- 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