[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/18695] [x86-64] Missing relocation overflow check
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gold/18695] [x86-64] Missing relocation overflow check |
Date: |
Thu, 04 Feb 2016 01:35:36 +0000 |
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:
address@hidden 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
address@hidden 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
address@hidden 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
address@hidden pr18695]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/18695] [x86-64] Missing relocation overflow check, hjl.tools at gmail dot com, 2016/02/03
- [Bug gold/18695] [x86-64] Missing relocation overflow check, hjl.tools at gmail dot com, 2016/02/03
- [Bug gold/18695] [x86-64] Missing relocation overflow check, hjl.tools at gmail dot com, 2016/02/03
- [Bug gold/18695] [x86-64] Missing relocation overflow check,
hjl.tools at gmail dot com <=
- [Bug gold/18695] [x86-64] Missing relocation overflow check, cvs-commit at gcc dot gnu.org, 2016/02/05
- [Bug gold/18695] [x86-64] Missing relocation overflow check, cvs-commit at gcc dot gnu.org, 2016/02/05
- [Bug gold/18695] [x86-64] Missing relocation overflow check, ccoutant at gmail dot com, 2016/02/05
- [Bug gold/18695] [x86-64] Missing relocation overflow check, hjl.tools at gmail dot com, 2016/02/06
- [Bug gold/18695] [x86-64] Missing relocation overflow check, hjl.tools at gmail dot com, 2016/02/06
- [Bug gold/18695] [x86-64] Missing relocation overflow check, ccoutant at gmail dot com, 2016/02/07
- [Bug gold/18695] [x86-64] Missing relocation overflow check, hjl.tools at gmail dot com, 2016/02/07
- [Bug gold/18695] [x86-64] Missing relocation overflow check, cvs-commit at gcc dot gnu.org, 2016/02/07