aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-i386/pr23194.d2
-rw-r--r--ld/testsuite/ld-i386/pr23194.map1
-rw-r--r--ld/testsuite/ld-i386/pr23194.s3
-rw-r--r--ld/testsuite/ld-x86-64/pr23194.d2
-rw-r--r--ld/testsuite/ld-x86-64/pr23194.map1
-rw-r--r--ld/testsuite/ld-x86-64/pr23194.s3
6 files changed, 8 insertions, 4 deletions
diff --git a/ld/testsuite/ld-i386/pr23194.d b/ld/testsuite/ld-i386/pr23194.d
index b5e8c33..f6d2a03 100644
--- a/ld/testsuite/ld-i386/pr23194.d
+++ b/ld/testsuite/ld-i386/pr23194.d
@@ -4,4 +4,4 @@
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 1 entry:
Offset Info Type Sym. Value Symbol's Name
-[0-9a-f]+ +[0-9a-f]+ +R_386_RELATIVE +
+[0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +[0-9a-f]+ +foobar@@FOO
diff --git a/ld/testsuite/ld-i386/pr23194.map b/ld/testsuite/ld-i386/pr23194.map
index 353c194..196dac9 100644
--- a/ld/testsuite/ld-i386/pr23194.map
+++ b/ld/testsuite/ld-i386/pr23194.map
@@ -1,6 +1,7 @@
FOO {
global:
bar;
+ foobar;
local:
*;
};
diff --git a/ld/testsuite/ld-i386/pr23194.s b/ld/testsuite/ld-i386/pr23194.s
index 32693fe..a64bae1 100644
--- a/ld/testsuite/ld-i386/pr23194.s
+++ b/ld/testsuite/ld-i386/pr23194.s
@@ -3,10 +3,11 @@
.globl foo
.type foo, @function
foo:
- ret
+ movl foobar@GOT(%ebx), %eax
.size foo, .-foo
.globl bar
.type bar, @function
bar:
jmp *foo@GOT(%eax)
.size bar, .-bar
+ .comm foobar,30,4
diff --git a/ld/testsuite/ld-x86-64/pr23194.d b/ld/testsuite/ld-x86-64/pr23194.d
index 6b12060..b907afb 100644
--- a/ld/testsuite/ld-x86-64/pr23194.d
+++ b/ld/testsuite/ld-x86-64/pr23194.d
@@ -4,4 +4,4 @@
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry:
Offset Info Type Symbol's Value Symbol's Name \+ Addend
-[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+
+[0-9a-f]+ +[0-9a-f]+ +R_X86_64_GLOB_DAT +[0-9a-f]+ +foobar@@FOO \+ 0
diff --git a/ld/testsuite/ld-x86-64/pr23194.map b/ld/testsuite/ld-x86-64/pr23194.map
index 353c194..196dac9 100644
--- a/ld/testsuite/ld-x86-64/pr23194.map
+++ b/ld/testsuite/ld-x86-64/pr23194.map
@@ -1,6 +1,7 @@
FOO {
global:
bar;
+ foobar;
local:
*;
};
diff --git a/ld/testsuite/ld-x86-64/pr23194.s b/ld/testsuite/ld-x86-64/pr23194.s
index 277c19d..34517bc 100644
--- a/ld/testsuite/ld-x86-64/pr23194.s
+++ b/ld/testsuite/ld-x86-64/pr23194.s
@@ -3,10 +3,11 @@
.globl foo
.type foo, @function
foo:
- ret
+ movq foobar@GOTPCREL(%rip), %rax
.size foo, .-foo
.globl bar
.type bar, @function
bar:
jmp *foo@GOTPCREL(%rip)
.size bar, .-bar
+ .comm foobar,30,4