Skip to content

Commit 8654c01

Browse files
committed
Revert "readelf: Do not require EI_OSABI for IFUNC."
This reverts commit ffbbab0.
1 parent ac8df5a commit 8654c01

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

binutils/readelf.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12724,9 +12724,6 @@ get_symbol_type (Filedata * filedata, unsigned int type)
1272412724
case STT_TLS: return "TLS";
1272512725
case STT_RELC: return "RELC";
1272612726
case STT_SRELC: return "SRELC";
12727-
case STT_GNU_IFUNC: return "IFUNC"; /* As mentioned in PR29718, do not
12728-
require EI_OSABI as IFUNC is
12729-
a reseved name. */
1273012727
default:
1273112728
if (type >= STT_LOPROC && type <= STT_HIPROC)
1273212729
{
@@ -12751,6 +12748,11 @@ get_symbol_type (Filedata * filedata, unsigned int type)
1275112748
return "HP_STUB";
1275212749
}
1275312750

12751+
if (type == STT_GNU_IFUNC
12752+
&& (filedata->file_header.e_ident[EI_OSABI] == ELFOSABI_GNU
12753+
|| filedata->file_header.e_ident[EI_OSABI] == ELFOSABI_FREEBSD))
12754+
return "IFUNC";
12755+
1275412756
snprintf (buff, sizeof (buff), _("<OS specific>: %d"), type);
1275512757
}
1275612758
else

0 commit comments

Comments
 (0)