diff options
author | Yufeng Zhang <yufeng.zhang@arm.com> | 2013-06-14 15:55:36 +0000 |
---|---|---|
committer | Yufeng Zhang <yufeng.zhang@arm.com> | 2013-06-14 15:55:36 +0000 |
commit | aa489d7c4a270e6f87f7111c40c3ff39d9ae9270 (patch) | |
tree | 1f14cd66a5942cd9961dbabda91c65cfe41e234f /ld/testsuite/ld-aarch64 | |
parent | e410add4157311809c0b580cf2303bd07c55ea1e (diff) | |
download | gdb-aa489d7c4a270e6f87f7111c40c3ff39d9ae9270.zip gdb-aa489d7c4a270e6f87f7111c40c3ff39d9ae9270.tar.gz gdb-aa489d7c4a270e6f87f7111c40c3ff39d9ae9270.tar.bz2 |
ld/
* emulparams/aarch64elf.sh: Add IREL_IN_PLT.
ld/testsuite/
* ld-aarch64/ifunc-1-local.d: Replace hard-coded immediate offset
with regexp.
* ld-aarch64/ifunc-1.d: Likewise.
* ld-aarch64/ifunc-2-local.d: Likewise.
* ld-aarch64/ifunc-2.d: Likewise.
* ld-aarch64/ifunc-3a.d: Likewise.
* ld-aarch64/ifunc-2-local.s: Change not to declare __GI_foo and foo
global.
Diffstat (limited to 'ld/testsuite/ld-aarch64')
-rw-r--r-- | ld/testsuite/ld-aarch64/ifunc-1-local.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/ifunc-1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/ifunc-2-local.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/ifunc-2-local.s | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/ifunc-2.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-aarch64/ifunc-3a.d | 2 |
6 files changed, 7 insertions, 10 deletions
diff --git a/ld/testsuite/ld-aarch64/ifunc-1-local.d b/ld/testsuite/ld-aarch64/ifunc-1-local.d index 0cce7f6..0b49004 100644 --- a/ld/testsuite/ld-aarch64/ifunc-1-local.d +++ b/ld/testsuite/ld-aarch64/ifunc-1-local.d @@ -3,5 +3,5 @@ #target: aarch64-*-* #... -[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x2a0@plt> +[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> #pass diff --git a/ld/testsuite/ld-aarch64/ifunc-1.d b/ld/testsuite/ld-aarch64/ifunc-1.d index 8a17cd7..0b49004 100644 --- a/ld/testsuite/ld-aarch64/ifunc-1.d +++ b/ld/testsuite/ld-aarch64/ifunc-1.d @@ -3,5 +3,5 @@ #target: aarch64-*-* #... -[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x2c0@plt> +[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> #pass diff --git a/ld/testsuite/ld-aarch64/ifunc-2-local.d b/ld/testsuite/ld-aarch64/ifunc-2-local.d index 07616ca..07cc0bf 100644 --- a/ld/testsuite/ld-aarch64/ifunc-2-local.d +++ b/ld/testsuite/ld-aarch64/ifunc-2-local.d @@ -3,7 +3,7 @@ #target: aarch64-*-* #... -[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x2c0@plt> +[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> [ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <_GLOBAL_OFFSET_TABLE_> -[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x2b0 +[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x[0-9a-f]+ #pass diff --git a/ld/testsuite/ld-aarch64/ifunc-2-local.s b/ld/testsuite/ld-aarch64/ifunc-2-local.s index da350df..632c31f 100644 --- a/ld/testsuite/ld-aarch64/ifunc-2-local.s +++ b/ld/testsuite/ld-aarch64/ifunc-2-local.s @@ -1,9 +1,6 @@ .type foo, %gnu_indirect_function - .global __GI_foo - .hidden __GI_foo .set __GI_foo, foo .text -.globl foo .type foo, @function foo: ret diff --git a/ld/testsuite/ld-aarch64/ifunc-2.d b/ld/testsuite/ld-aarch64/ifunc-2.d index 07616ca..07cc0bf 100644 --- a/ld/testsuite/ld-aarch64/ifunc-2.d +++ b/ld/testsuite/ld-aarch64/ifunc-2.d @@ -3,7 +3,7 @@ #target: aarch64-*-* #... -[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x2c0@plt> +[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> [ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <_GLOBAL_OFFSET_TABLE_> -[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x2b0 +[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x[0-9a-f]+ #pass diff --git a/ld/testsuite/ld-aarch64/ifunc-3a.d b/ld/testsuite/ld-aarch64/ifunc-3a.d index 1335480..91ba4aa 100644 --- a/ld/testsuite/ld-aarch64/ifunc-3a.d +++ b/ld/testsuite/ld-aarch64/ifunc-3a.d @@ -4,5 +4,5 @@ #target: aarch64-*-* #... -[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x2e0@plt> +[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> #pass |