bug-binutils
[Top][All Lists]
Advanced

[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: Wed, 03 Feb 2016 20:10:13 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18695

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
On users/hjl/gold branch, I got

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
gcc    -c -o x.o x.S
./ld -z max-page-size=0x200000 -shared -o x.so x.o
x.o(.text+0x3): error: relocation type 2 overflow
Makefile:25: recipe for target 'x.so' failed
make: *** [x.so] Error 1
address@hidden pr18695]$ 

instead of

address@hidden pr18695]$ ld.gold -z max-page-size=0x200000 -shared -o x.so x.o
address@hidden pr18695]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]