2007-05-03 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 4 May 2007 00:44:36 +0000 (00:44 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 4 May 2007 00:44:36 +0000 (00:44 +0000)
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.

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/gotpc.d
gas/testsuite/gas/i386/gotpc.s
gas/testsuite/gas/i386/reloc64.d
gas/testsuite/gas/i386/reloc64.s

index 724400c..309acb5 100644 (file)
@@ -1,5 +1,14 @@
 2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>
 
+       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  <hongjiu.lu@intel.com>
+
        * gas/i386/crc32-intel.d: Updated.
        * gas/i386/crc32.d: Likewise.
        * gas/i386/sse4_2.d: Likewise.
index 499e831..ef79cbd 100644 (file)
@@ -49,4 +49,6 @@ Disassembly of section .text:
   e0:  e0 00 [         ]*loopne e2 <test\+0xe2>        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
index 5787b8e..fc771f6 100644 (file)
@@ -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
index 11dfdb4..333deaa 100644 (file)
@@ -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
index 47ebfa8..7fd741a 100644 (file)
@@ -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