summaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-12-23 09:01:51 +0000
committerNick Clifton <nickc@redhat.com>2008-12-23 09:01:51 +0000
commit91751f1c9062e14b659d7dfdb6779e26018f60a3 (patch)
treedd4eb5d8d06529a3c4c4b0c75aebb7715d36801f /binutils/readelf.c
parente6f16d642a4a5a04f9e08e3998cc09e435d18671 (diff)
downloadbinutils-redhat-91751f1c9062e14b659d7dfdb6779e26018f60a3.tar.gz
Remove STT_IFUNC support.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c41
1 files changed, 2 insertions, 39 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 81cde343e5..21af7b33db 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1251,38 +1251,9 @@ dump_relocations (FILE *file,
printf (" ");
- if (ELF_ST_TYPE (psym->st_info) == STT_IFUNC)
- {
- const char * name;
- unsigned int len;
- unsigned int width = is_32bit_elf ? 8 : 14;
-
- /* Relocations against IFUNC symbols do not use the value of
- the symbol as the address to relocate against. Instead
- they invoke the function named by the symbol and use its
- result as the address for relocation.
-
- To indicate this to the user, do not display the value of
- the symbol in the "Symbols's Value" field. Instead show
- its name followed by () as a hint that the symbol is
- invoked. */
-
- if (strtab == NULL
- || psym->st_name == 0
- || psym->st_name >= strtablen)
- name = "??";
- else
- name = strtab + psym->st_name;
-
- len = print_symbol (width, name);
- printf ("()%-*s", len <= width ? (width + 1) - len : 1, " ");
- }
- else
- {
- print_vma (psym->st_value, LONG_HEX);
+ print_vma (psym->st_value, LONG_HEX);
- printf (is_32bit_elf ? " " : " ");
- }
+ printf (is_32bit_elf ? " " : " ");
if (psym->st_name == 0)
{
@@ -7065,14 +7036,6 @@ get_symbol_type (unsigned int type)
if (type == STT_HP_STUB)
return "HP_STUB";
}
- else if (elf_header.e_ident[EI_OSABI] == ELFOSABI_LINUX
- || elf_header.e_ident[EI_OSABI] == ELFOSABI_HURD
- /* GNU/Linux is still using the default value 0. */
- || elf_header.e_ident[EI_OSABI] == ELFOSABI_NONE)
- {
- if (type == STT_IFUNC)
- return "IFUNC";
- }
snprintf (buff, sizeof (buff), _("<OS specific>: %d"), type);
}