From: H.J. Lu Date: Fri, 4 May 2007 00:44:36 +0000 (+0000) Subject: 2007-05-03 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;ds=sidebyside;h=bfb568882d0e4b2d8276215e3acc0e86dca4afe0;p=binutils-gdb.git 2007-05-03 H.J. Lu PR gas/4460 * gas/i386/gotpc.s: Add a new test. * gas/i386/reloc64.s: Likewise. * gas/i386/gotpc.d: Updated. * gas/i386/reloc64.d: Likewise. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 724400cc882..309acb5b501 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2007-05-03 H.J. Lu + + PR gas/4460 + * gas/i386/gotpc.s: Add a new test. + * gas/i386/reloc64.s: Likewise. + + * gas/i386/gotpc.d: Updated. + * gas/i386/reloc64.d: Likewise. + 2007-05-03 H.J. Lu * gas/i386/crc32-intel.d: Updated. diff --git a/gas/testsuite/gas/i386/gotpc.d b/gas/testsuite/gas/i386/gotpc.d index 499e831c1b4..ef79cbd7832 100644 --- a/gas/testsuite/gas/i386/gotpc.d +++ b/gas/testsuite/gas/i386/gotpc.d @@ -49,4 +49,6 @@ Disassembly of section .text: e0: e0 00 [ ]*loopne e2 e0: (R_386_)?GOTPC _GLOBAL_OFFSET_TABLE_ e2: 00 00 [ ]*add %al,\(%eax\) e4: 00 00 [ ]*add %al,\(%eax\) e4: (R_386_)?GOTOFF _GLOBAL_OFFSET_TABLE_ - ... + e6: 00 00 [ ]*add %al,\(%eax\) + e8: 8b 83 00 00 00 00 [ ]*mov 0x0\(%ebx\),%eax ea: (R_386_)?GOTOFF _GLOBAL_OFFSET_TABLE_ +#pass diff --git a/gas/testsuite/gas/i386/gotpc.s b/gas/testsuite/gas/i386/gotpc.s index 5787b8e8f88..fc771f6cff5 100644 --- a/gas/testsuite/gas/i386/gotpc.s +++ b/gas/testsuite/gas/i386/gotpc.s @@ -38,3 +38,4 @@ test: movl _GLOBAL_OFFSET_TABLE_@GOTOFF(%ebx), %ebx .long _GLOBAL_OFFSET_TABLE_+[.-test] .long _GLOBAL_OFFSET_TABLE_@GOTOFF + movl _GLOBAL_OFFSET_TABLE_@GOTOFF (%ebx), %eax diff --git a/gas/testsuite/gas/i386/reloc64.d b/gas/testsuite/gas/i386/reloc64.d index 11dfdb4fedd..333deaa3a61 100644 --- a/gas/testsuite/gas/i386/reloc64.d +++ b/gas/testsuite/gas/i386/reloc64.d @@ -47,6 +47,7 @@ Disassembly of section \.text: .*[ ]+R_X86_64_TPOFF64[ ]+xtrn .*[ ]+R_X86_64_TPOFF32[ ]+xtrn .*[ ]+R_X86_64_TPOFF32[ ]+xtrn +.*[ ]+R_X86_64_TPOFF32[ ]+xtrn Disassembly of section \.data: #... .*[ ]+R_X86_64_64[ ]+xtrn diff --git a/gas/testsuite/gas/i386/reloc64.s b/gas/testsuite/gas/i386/reloc64.s index 47ebfa8dc0a..7fd741af839 100644 --- a/gas/testsuite/gas/i386/reloc64.s +++ b/gas/testsuite/gas/i386/reloc64.s @@ -195,3 +195,6 @@ bad .byte xtrn@gottpoff bad .byte xtrn@tlsld bad .byte xtrn@dtpoff bad .byte xtrn@tpoff + + .text + mov xtrn@tpoff (%rbx), %eax