diff options
author | Pedro Alves <palves@redhat.com> | 2018-04-26 13:01:27 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-04-26 13:08:01 +0100 |
commit | 1adeb822668d3bd7182ca9b8cf42a7261deb3c7f (patch) | |
tree | 7a54ed0fc3d7db7bd91203c5e1441a63cc6340fb /gas | |
parent | 42ddae103c9eb20fb87378548ee95b4bd23648a5 (diff) | |
download | gdb-1adeb822668d3bd7182ca9b8cf42a7261deb3c7f.zip gdb-1adeb822668d3bd7182ca9b8cf42a7261deb3c7f.tar.gz gdb-1adeb822668d3bd7182ca9b8cf42a7261deb3c7f.tar.bz2 |
For PPC64: elf_gnu_ifunc_record_cache: handle plt symbols in .text section
elf_gnu_ifunc_record_cache doesn't ever record anything on PPC64
(tested on gcc110 on the compile farm, CentOS 7.4, ELFv1), because
that expects to find PLT symbols in the .plt section, while there we
get:
(gdb) info symbol 'gnu_ifunc@plt'
gnu_ifunc@plt in section .text
^^^^^
I guess that may be related to the comment in ppc-linux-tdep.c that
says "For secure PLT, stub is in .text".
In any case, this commit fixes the issue by making the function look
at the symbol name instead of at the section.
gdb/ChangeLog:
2018-04-26 Pedro Alves <palves@redhat.com>
* elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
ends in "@plt" instead of looking at the symbol's section.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions