aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/readelf.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index be2f385..c9b6210 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2523,6 +2523,22 @@ get_riscv_dynamic_type (unsigned long type)
}
static const char *
+get_x86_64_dynamic_type (unsigned long type)
+{
+ switch (type)
+ {
+ case DT_X86_64_PLT:
+ return "DT_X86_64_PLT";
+ case DT_X86_64_PLTSZ:
+ return "DT_X86_64_PLTSZ";
+ case DT_X86_64_PLTENT:
+ return "DT_X86_64_PLTENT";
+ default:
+ return NULL;
+ }
+}
+
+static const char *
get_dynamic_type (Filedata * filedata, unsigned long type)
{
static char buff[64];
@@ -2650,6 +2666,9 @@ get_dynamic_type (Filedata * filedata, unsigned long type)
case EM_RISCV:
result = get_riscv_dynamic_type (type);
break;
+ case EM_X86_64:
+ result = get_x86_64_dynamic_type (type);
+ break;
default:
if (filedata->file_header.e_ident[EI_OSABI] == ELFOSABI_SOLARIS)
result = get_solaris_dynamic_type (type);