diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-11-03 14:18:43 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-11-03 14:18:43 +0000 |
commit | 27dee630aae66dd61eb20135e7b8384088b1a496 (patch) | |
tree | 5d7a65630edd019c3798d373ffafb20c97d9b0a4 /gas/testsuite | |
parent | 3f9a327892c097ae5504004c6a11f7468df16c08 (diff) | |
download | gdb-27dee630aae66dd61eb20135e7b8384088b1a496.zip gdb-27dee630aae66dd61eb20135e7b8384088b1a496.tar.gz gdb-27dee630aae66dd61eb20135e7b8384088b1a496.tar.bz2 |
Properly fold _GLOBAL_OFFSET_TABLE_ in Intel syntax.
gas/
2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
PR gas/12186
* config/tc-i386-intel.c (i386_intel_fold): Properly fold
_GLOBAL_OFFSET_TABLE_.
gas/testsuite/
2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
PR gas/12186
* gas/i386/gotpc.s: Add more _GLOBAL_OFFSET_TABLE_ test.
* gas/i386/gotpc.d: Updated.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/gotpc.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/gotpc.s | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e7936f6..07689b6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-03 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/12186 + * gas/i386/gotpc.s: Add more _GLOBAL_OFFSET_TABLE_ test. + * gas/i386/gotpc.d: Updated. + 2010-11-02 Joseph Myers <joseph@codesourcery.com> * gas/tic6x/attr-array-directive-1.d, diff --git a/gas/testsuite/gas/i386/gotpc.d b/gas/testsuite/gas/i386/gotpc.d index ef79cbd..30faabd 100644 --- a/gas/testsuite/gas/i386/gotpc.d +++ b/gas/testsuite/gas/i386/gotpc.d @@ -51,4 +51,5 @@ Disassembly of section .text: 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_ + ee: 81 c3 02 00 00 00 [ ]*add \$0x2,%ebx f0: (R_386_)GOTPC _GLOBAL_OFFSET_TABLE_ #pass diff --git a/gas/testsuite/gas/i386/gotpc.s b/gas/testsuite/gas/i386/gotpc.s index fc771f6..150bd16 100644 --- a/gas/testsuite/gas/i386/gotpc.s +++ b/gas/testsuite/gas/i386/gotpc.s @@ -39,3 +39,6 @@ test: .long _GLOBAL_OFFSET_TABLE_+[.-test] .long _GLOBAL_OFFSET_TABLE_@GOTOFF movl _GLOBAL_OFFSET_TABLE_@GOTOFF (%ebx), %eax + + .intel_syntax noprefix + add ebx, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_ |