summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-12-13 21:07:14 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-12-13 21:07:14 +0000
commit17dbfb0a6623a63bed2329ecf3a18e625dada7e1 (patch)
treedc6232f42762f14b90c2f972b660f7da9168d996 /ld/testsuite/ld-ifunc
parentf003c0def792e961f3d43a9d8958149ad5042a4e (diff)
downloadbinutils-redhat-17dbfb0a6623a63bed2329ecf3a18e625dada7e1.tar.gz
Check local IFUNC calls
bfd/ 2012-12-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/14956 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Check local IFUNC calls. * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. ld/testsuite/ 2012-12-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/14956 * ld-ifunc/ifunc-14-i386.d: Renamed to ... * ld-ifunc/ifunc-14a-i386.d: This. * ld-ifunc/ifunc-14-x86-64.d: Renamed to ... * ld-ifunc/ifunc-14a-x86-64.d: This. * ld-ifunc/ifunc-14b-i386.d: New file. * ld-ifunc/ifunc-14b-x86-64.d: Likewise. * ld-ifunc/ifunc-14c-i386.d: Likewise. * ld-ifunc/ifunc-14c-x86-64.d: Likewise. * ld-ifunc/ifunc-14d-i386.d: Likewise. * ld-ifunc/ifunc-14d-x86-64.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-ifunc')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14a-i386.d (renamed from ld/testsuite/ld-ifunc/ifunc-14-i386.d)0
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14a-x86-64.d (renamed from ld/testsuite/ld-ifunc/ifunc-14-x86-64.d)0
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14b-i386.d11
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14b-x86-64.d11
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14c-i386.d11
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14c-x86-64.d11
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14d-i386.d11
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-14d-x86-64.d11
8 files changed, 66 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc-14-i386.d b/ld/testsuite/ld-ifunc/ifunc-14a-i386.d
index 0edc9fbbd5..0edc9fbbd5 100644
--- a/ld/testsuite/ld-ifunc/ifunc-14-i386.d
+++ b/ld/testsuite/ld-ifunc/ifunc-14a-i386.d
diff --git a/ld/testsuite/ld-ifunc/ifunc-14-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-14a-x86-64.d
index 2c4ebbb03b..2c4ebbb03b 100644
--- a/ld/testsuite/ld-ifunc/ifunc-14-x86-64.d
+++ b/ld/testsuite/ld-ifunc/ifunc-14a-x86-64.d
diff --git a/ld/testsuite/ld-ifunc/ifunc-14b-i386.d b/ld/testsuite/ld-ifunc/ifunc-14b-i386.d
new file mode 100644
index 0000000000..948237d1ca
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-14b-i386.d
@@ -0,0 +1,11 @@
+#source: ifunc-14b.s
+#source: ifunc-14a.s
+#ld: -shared -m elf_i386 -z nocombreloc
+#as: --32
+#readelf: -d --wide
+#target: x86_64-*-* i?86-*-*
+
+#failif
+#...
+.*\(TEXTREL\).*
+#...
diff --git a/ld/testsuite/ld-ifunc/ifunc-14b-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-14b-x86-64.d
new file mode 100644
index 0000000000..cc1f5ae6b2
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-14b-x86-64.d
@@ -0,0 +1,11 @@
+#source: ifunc-14b.s
+#source: ifunc-14a.s
+#ld: -shared -m elf_x86_64 -z nocombreloc
+#as: --64
+#readelf: -d
+#target: x86_64-*-*
+
+#failif
+#...
+.*\(TEXTREL\).*
+#...
diff --git a/ld/testsuite/ld-ifunc/ifunc-14c-i386.d b/ld/testsuite/ld-ifunc/ifunc-14c-i386.d
new file mode 100644
index 0000000000..ca360a396d
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-14c-i386.d
@@ -0,0 +1,11 @@
+#source: ifunc-14a.s
+#source: ifunc-14b.s
+#ld: -shared -m elf_i386 -z nocombreloc
+#as: --32
+#readelf: -r --wide
+#target: x86_64-*-* i?86-*-*
+
+#failif
+#...
+.* +R_386_NONE +.*
+#...
diff --git a/ld/testsuite/ld-ifunc/ifunc-14c-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-14c-x86-64.d
new file mode 100644
index 0000000000..76bfa84a2f
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-14c-x86-64.d
@@ -0,0 +1,11 @@
+#source: ifunc-14a.s
+#source: ifunc-14b.s
+#ld: -shared -m elf_x86_64 -z nocombreloc
+#as: --64
+#readelf: -r --wide
+#target: x86_64-*-*
+
+#failif
+#...
+.* +R_X86_64_NONE +.*
+#...
diff --git a/ld/testsuite/ld-ifunc/ifunc-14d-i386.d b/ld/testsuite/ld-ifunc/ifunc-14d-i386.d
new file mode 100644
index 0000000000..2327278f3b
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-14d-i386.d
@@ -0,0 +1,11 @@
+#source: ifunc-14b.s
+#source: ifunc-14a.s
+#ld: -shared -m elf_i386 -z nocombreloc
+#as: --32
+#readelf: -r --wide
+#target: x86_64-*-* i?86-*-*
+
+#failif
+#...
+.* +R_386_NONE +.*
+#...
diff --git a/ld/testsuite/ld-ifunc/ifunc-14d-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-14d-x86-64.d
new file mode 100644
index 0000000000..789584bc30
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-14d-x86-64.d
@@ -0,0 +1,11 @@
+#source: ifunc-14b.s
+#source: ifunc-14a.s
+#ld: -shared -m elf_x86_64 -z nocombreloc
+#as: --64
+#readelf: -r --wide
+#target: x86_64-*-*
+
+#failif
+#...
+.* +R_X86_64_NONE +.*
+#...