Browse Source
2005-08-03 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_howto_table): Undo the overflow change for R_386_PC16 made on 2005-07-18. * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow change for R_X86_64_PC16 made on 2005-07-18. ld/testsuite/ 2005-08-03 H.J. Lu <hongjiu.lu@intel.com> * ld-i386/pcrel16.d: Updated. * ld-i386/pcrel16.s: Likewise. * ld-x86-64/pcrel16.d: Likewise.gdb-csl-arm-20051020-branch
7 changed files with 50 additions and 16 deletions
@ -1,3 +1,14 @@ |
|||||
#name: PCREL16 overflow |
#name: PCREL16 overflow |
||||
#ld: |
#ld: -Ttext 0x0 |
||||
#error: .*relocation truncated to fit: R_386_PC16 .* |
#objdump: -drj.text -m i8086 |
||||
|
|
||||
|
.*: +file format elf32-i386 |
||||
|
|
||||
|
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> |
||||
|
|||||
@ -1,11 +1,9 @@ |
|||||
.text |
.code16 |
||||
.code16 |
.text |
||||
.global _start, fwd |
.globl _start |
||||
_start: |
_start: |
||||
jpo fwd |
.org 0x420 |
||||
.rept 2500 |
int $0x42 |
||||
testl $0x12345678, %ss:0x76543210(,%eax,4) |
lret $2 |
||||
.endr |
.org 0xf065 |
||||
fwd: |
jmp _start+((0x42) << 4) |
||||
leave |
|
||||
ret |
|
||||
|
|||||
@ -1,4 +1,15 @@ |
|||||
#name: PCREL16 overflow |
#name: PCREL16 overflow |
||||
#source: ../ld-i386/pcrel16.s |
#source: ../ld-i386/pcrel16.s |
||||
#ld: |
#ld: -Ttext 0x0 |
||||
#error: .*relocation truncated to fit: R_X86_64_PC16 .* |
#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> |
||||
|
|||||
Loading…
Reference in new issue