diff options
author | Martin Liska <mliska@suse.cz> | 2022-11-24 13:17:01 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-11-24 13:18:36 +0100 |
commit | ffbbab0b3a1000f862b6d4ce3d9a76ed14f08801 (patch) | |
tree | a562f10bc5b117ad66064d7e8eea811f56f99f23 /binutils | |
parent | 8ee52bcf39e95abbc9cfffbb0afbb55be67e8c3d (diff) | |
download | binutils-ffbbab0b3a1000f862b6d4ce3d9a76ed14f08801.zip binutils-ffbbab0b3a1000f862b6d4ce3d9a76ed14f08801.tar.gz binutils-ffbbab0b3a1000f862b6d4ce3d9a76ed14f08801.tar.bz2 |
readelf: Do not require EI_OSABI for IFUNC.
PR 29718
binutils/ChangeLog:
* readelf.c (get_symbol_type): Consider STT_GNU_IFUNC as
reserved name.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/readelf.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 1bd6df9..365c1ed 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -12724,6 +12724,9 @@ get_symbol_type (Filedata * filedata, unsigned int type) case STT_TLS: return "TLS"; case STT_RELC: return "RELC"; case STT_SRELC: return "SRELC"; + case STT_GNU_IFUNC: return "IFUNC"; /* As mentioned in PR29718, do not + require EI_OSABI as IFUNC is + a reseved name. */ default: if (type >= STT_LOPROC && type <= STT_HIPROC) { @@ -12748,11 +12751,6 @@ get_symbol_type (Filedata * filedata, unsigned int type) return "HP_STUB"; } - if (type == STT_GNU_IFUNC - && (filedata->file_header.e_ident[EI_OSABI] == ELFOSABI_GNU - || filedata->file_header.e_ident[EI_OSABI] == ELFOSABI_FREEBSD)) - return "IFUNC"; - snprintf (buff, sizeof (buff), _("<OS specific>: %d"), type); } else |