Browse Source
Don't convert R_386_GOT32 since we can't tell if it is applied to "mov $foo@GOT, %reg" which isn't a load via GOT. bfd/ PR ld/20117 * elf32-i386.c (elf_i386_convert_load_reloc): Don't check R_386_GOT32X. (elf_i386_convert_load): Don't convert R_386_GOT32. ld/ PR ld/20117 * testsuite/ld-i386/i386.exp: Run pr20117. * testsuite/ld-i386/pr19609-1i.d: Updated. * testsuite/ld-i386/pr20117.d: New file. * testsuite/ld-i386/pr20117.s: Likewise.binutils-2_27-branch
7 changed files with 45 additions and 19 deletions
@ -0,0 +1,12 @@ |
|||
#as: --32 |
|||
#ld: -melf_i386 |
|||
#objdump: -dw |
|||
|
|||
.*: +file format .* |
|||
|
|||
|
|||
Disassembly of section .text: |
|||
|
|||
[a-f0-9]+ <_start>: |
|||
[ ]*[a-f0-9]+: eb 8b jmp [a-f0-9]+ <_start\-0x[a-f0-9]+> |
|||
[ ]*[a-f0-9]+: bd ([0-9a-f]{2} ){4} * mov \$0x[a-f0-9]+\,%ebp |
|||
@ -0,0 +1,7 @@ |
|||
.comm DEBUGLEVEL,4,4 |
|||
.text |
|||
.globl _start |
|||
.type _start, @function |
|||
_start: |
|||
.byte 0xeb, 0x8b |
|||
movl $DEBUGLEVEL@GOT, %ebp |
|||
Loading…
Reference in new issue