bfd/
2005-07-18 Jan Beulich <jbeulich@novell.com>
* elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
for R_386_PC16.
* elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint
handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF.
ld/testsuite/
2005-07-18 Jan Beulich <jbeulich@novell.com>
* ld-i386/abs.s, ld-i386/zero.s, ld-i386/abs.d, ld-x86-64/abs.d,
ld-i386/pcrel16.s, ld-i386/pcrel16.d, ld-x86-64/pcrel16.d,
ld-i386/pcrel8.s, ld-i386/pcrel8.d, ld-x86-64/pcrel8.d: New.
* ld-i386/i386.exp, ld-x86-64/x86-64.exp: Run new tests.
2005-07-18 06:23:40 +00:00
|
|
|
#name: PCREL16 overflow
|
|
|
|
#source: ../ld-i386/pcrel16.s
|
2005-08-03 16:30:34 +00:00
|
|
|
#ld: -Ttext 0x0
|
|
|
|
#objdump: -drj.text -m i8086
|
|
|
|
|
|
|
|
.*: +file format elf64-x86-64
|
|
|
|
|
|
|
|
Disassembly of section .text:
|
|
|
|
|
|
|
|
0+ <_start>:
|
|
|
|
...
|
|
|
|
420: cd 42[ ]+int \$0x42
|
|
|
|
422: ca 02 00[ ]+lret \$0x2
|
|
|
|
...
|
|
|
|
f065: e9 b8 13[ ]+jmp 420 <_start\+0x420>
|