diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-12-13 21:07:16 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-12-13 21:07:16 +0000 |
commit | 5ca5bb354599855357bd35d99dfa07a729f91095 (patch) | |
tree | c5d3a394c93f8220ec8ae744b1c20f534910c52d /ld | |
parent | e780d813de745dfe6f2403226fec488d30d372f5 (diff) | |
download | gdb-5ca5bb354599855357bd35d99dfa07a729f91095.zip gdb-5ca5bb354599855357bd35d99dfa07a729f91095.tar.gz gdb-5ca5bb354599855357bd35d99dfa07a729f91095.tar.bz2 |
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')
-rw-r--r-- | ld/testsuite/ChangeLog | 16 | ||||
-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.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc-14b-x86-64.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc-14c-i386.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc-14c-x86-64.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc-14d-i386.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc-14d-x86-64.d | 11 |
9 files changed, 82 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index b534021..994ee04 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,19 @@ +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. + 2012-12-07 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/pr14926.d: Use "readelf -S --wide". diff --git a/ld/testsuite/ld-ifunc/ifunc-14-i386.d b/ld/testsuite/ld-ifunc/ifunc-14a-i386.d index 0edc9fb..0edc9fb 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 2c4ebbb..2c4ebbb 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 0000000..948237d --- /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 0000000..cc1f5ae --- /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 0000000..ca360a3 --- /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 0000000..76bfa84 --- /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 0000000..2327278 --- /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 0000000..789584b --- /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 +.* +#... |