]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/readelf.c
x86-64: Add -z mark-plt and -z nomark-plt
[thirdparty/binutils-gdb.git] / binutils / readelf.c
index be2f3851c63a0eab672709904843227fe72c455a..c9b6210e229dab30154e88ca244aab6227d8c245 100644 (file)
@@ -2522,6 +2522,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)
 {
@@ -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);