diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-09-03 04:03:13 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-09-03 04:03:13 -0700 |
commit | 8c650f161a95873e3dc08365fc9a74583df9de62 (patch) | |
tree | 8bc983ee17dba381ee1f9d749a31ecdd4d8a3186 /ld/testsuite/ld-ifunc/ifunc-21-i386.s | |
parent | 6c214e7cb397bf0de539fec640e764f0131e9677 (diff) | |
download | gdb-8c650f161a95873e3dc08365fc9a74583df9de62.zip gdb-8c650f161a95873e3dc08365fc9a74583df9de62.tar.gz gdb-8c650f161a95873e3dc08365fc9a74583df9de62.tar.bz2 |
Add ifunc tests for call, jmp, add, test
* ld-ifunc/ifunc-21-i386.s: Add tests for call, jmp, add, test.
* ld-ifunc/ifunc-21-x86-64.s: Likewise.
* ld-ifunc/ifunc-22-i386.s: Likewise.
* ld-ifunc/ifunc-22-x86-64.s: Likewise.
* ld-ifunc/ifunc-21-i386.d: Updated.
* ld-ifunc/ifunc-21-x86-64.d: Likewise.
* ld-ifunc/ifunc-22-i386.d: Likewise.
* ld-ifunc/ifunc-22-x86-64.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-ifunc/ifunc-21-i386.s')
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc-21-i386.s | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc-21-i386.s b/ld/testsuite/ld-ifunc/ifunc-21-i386.s index e1af106..92eb55e 100644 --- a/ld/testsuite/ld-ifunc/ifunc-21-i386.s +++ b/ld/testsuite/ld-ifunc/ifunc-21-i386.s @@ -9,11 +9,11 @@ _start: .global __start __start: .type __start,"function" - call .L6 -.L6: - popl %ebx - addl $_GLOBAL_OFFSET_TABLE_+[.-.L6], %ebx + call *foo@GOT(%ebx) + jmp *foo@GOT(%ebx) + add foo@GOT(%ebx), %eax mov foo@GOT(%ebx), %eax + test %eax, foo@GOT(%ebx) mov bar@GOT(%ebx), %eax .type foo, %gnu_indirect_function foo: |