mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-24 09:43:36 +08:00
e60f4d3bda
Since linker GOT relaxation isn't valid for 16-bit GOT access, we should disable GOT relaxation with data prefix. gas/ PR gas/r23854 * config/tc-i386.c (output_disp): Disable GOT relaxation with data prefix. * testsuite/gas/i386/mixed-mode-reloc32.d: Updated. ld/ PR gas/r23854 * testsuite/ld-i386/i386.exp: Run pr23854. * testsuite/ld-x86-64/x86-64.exp: Likewwise. * testsuite/ld-i386/pr23854.d: New file. * testsuite/ld-i386/pr23854.s: Likewwise. * testsuite/ld-i386/pr23854.d: Likewwise. * testsuite/ld-x86-64/pr23854.d: Likewwise. * testsuite/ld-x86-64/pr23854.s: Likewwise.
29 lines
1.2 KiB
Makefile
29 lines
1.2 KiB
Makefile
#as: --32 -mrelax-relocations=yes
|
|
#ld: -melf_i386
|
|
#objdump: -dw
|
|
|
|
.*: +file format .*
|
|
|
|
Disassembly of section .text:
|
|
|
|
[a-f0-9]+ <_start>:
|
|
+[a-f0-9]+: 66 13 81 f8 ff ff ff adc -0x8\(%ecx\),%ax
|
|
+[a-f0-9]+: 66 03 99 f8 ff ff ff add -0x8\(%ecx\),%bx
|
|
+[a-f0-9]+: 66 23 89 f8 ff ff ff and -0x8\(%ecx\),%cx
|
|
+[a-f0-9]+: 66 3b 91 f8 ff ff ff cmp -0x8\(%ecx\),%dx
|
|
+[a-f0-9]+: 66 0b b9 f8 ff ff ff or -0x8\(%ecx\),%di
|
|
+[a-f0-9]+: 66 1b b1 f8 ff ff ff sbb -0x8\(%ecx\),%si
|
|
+[a-f0-9]+: 66 2b a9 f8 ff ff ff sub -0x8\(%ecx\),%bp
|
|
+[a-f0-9]+: 66 33 a1 f8 ff ff ff xor -0x8\(%ecx\),%sp
|
|
+[a-f0-9]+: 66 85 89 f8 ff ff ff test %cx,-0x8\(%ecx\)
|
|
+[a-f0-9]+: 66 13 81 fc ff ff ff adc -0x4\(%ecx\),%ax
|
|
+[a-f0-9]+: 66 03 99 fc ff ff ff add -0x4\(%ecx\),%bx
|
|
+[a-f0-9]+: 66 23 89 fc ff ff ff and -0x4\(%ecx\),%cx
|
|
+[a-f0-9]+: 66 3b 91 fc ff ff ff cmp -0x4\(%ecx\),%dx
|
|
+[a-f0-9]+: 66 0b b9 fc ff ff ff or -0x4\(%ecx\),%di
|
|
+[a-f0-9]+: 66 1b b1 fc ff ff ff sbb -0x4\(%ecx\),%si
|
|
+[a-f0-9]+: 66 2b a9 fc ff ff ff sub -0x4\(%ecx\),%bp
|
|
+[a-f0-9]+: 66 33 a1 fc ff ff ff xor -0x4\(%ecx\),%sp
|
|
+[a-f0-9]+: 66 85 89 fc ff ff ff test %cx,-0x4\(%ecx\)
|
|
#pass
|