diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-01-30 14:11:03 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-01-30 16:08:20 -0800 |
commit | d9e3b590692e62d83c21e39ec6641c4c09e70e4c (patch) | |
tree | 346f0b0fb8d8b63b09565b53c0bbb19a8ec5986f /ld | |
parent | 654ec4010a45077280a8d97f24c153f289eb62ed (diff) | |
download | gdb-d9e3b590692e62d83c21e39ec6641c4c09e70e4c.zip gdb-d9e3b590692e62d83c21e39ec6641c4c09e70e4c.tar.gz gdb-d9e3b590692e62d83c21e39ec6641c4c09e70e4c.tar.bz2 |
Check reloc against IFUNC symbol only with dynamic symbols
There is no need to check relocation IFUNC symbol if there are no
dynamic symbols.
bfd/
PR ld/19539
* elf32-i386.c (elf_i386_reloc_type_class): Check relocation
against STT_GNU_IFUNC symbol only with dynamic symbols.
* elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
ld/
PR ld/19539
* testsuite/ld-elf/pr19539.d: New file.
* testsuite/ld-elf/pr19539.s: Likewise.
* testsuite/ld-elf/pr19539.t: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr19539.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr19539.s | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr19539.t | 1 |
4 files changed, 18 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index b9eac34..34b4feb 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2016-01-30 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/19539 + * testsuite/ld-elf/pr19539.d: New file. + * testsuite/ld-elf/pr19539.s: Likewise. + * testsuite/ld-elf/pr19539.t: Likewise. + 2016-01-29 H.J. Lu <hongjiu.lu@intel.com> PR ld/19533 diff --git a/ld/testsuite/ld-elf/pr19539.d b/ld/testsuite/ld-elf/pr19539.d new file mode 100644 index 0000000..363aeee --- /dev/null +++ b/ld/testsuite/ld-elf/pr19539.d @@ -0,0 +1,8 @@ +#source: start.s +#source: pr19539.s +#ld: -pie -T pr19539.t +#readelf : --dyn-syms --wide +#target: *-*-linux* *-*-gnu* *-*-solaris* + +Symbol table '\.dynsym' contains [0-9]+ entries: +#pass diff --git a/ld/testsuite/ld-elf/pr19539.s b/ld/testsuite/ld-elf/pr19539.s new file mode 100644 index 0000000..0f55d3f --- /dev/null +++ b/ld/testsuite/ld-elf/pr19539.s @@ -0,0 +1,2 @@ + .section .prefix,"a",%progbits + .dc.a foo diff --git a/ld/testsuite/ld-elf/pr19539.t b/ld/testsuite/ld-elf/pr19539.t new file mode 100644 index 0000000..b6b48e7 --- /dev/null +++ b/ld/testsuite/ld-elf/pr19539.t @@ -0,0 +1 @@ +HIDDEN (foo = .); |