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 15:38:18 +0000

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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
A simpler testcase:

address@hidden pr18591]$ cat x.S
        .hidden foo
        .comm pad,0x80000000,8
        .comm foo,8,8
        .text
        .globl  bar
        .type   bar, @function
bar:
        movq    address@hidden(%rip), %rax
address@hidden pr18591]$ make LD=ld.gold
gcc    -c -o x.o x.S
ld.gold -z max-page-size=0x200000 -shared -o x.so x.o
objdump -dw x.so

x.so:     file format elf64-x86-64


Disassembly of section .text:

0000000000000204 <bar>:
 204:   48 8d 05 dd 00 20 80    lea    -0x7fdfff23(%rip),%rax        #
ffffffff802002e8 <_end+0xfffffffefffffff8>
address@hidden pr18591]$

-- 
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]