* readelf.c (get_alpha_dynamic_type): New.
authorRichard Henderson <rth@redhat.com>
Sun, 29 May 2005 23:18:51 +0000 (23:18 +0000)
committerRichard Henderson <rth@redhat.com>
Sun, 29 May 2005 23:18:51 +0000 (23:18 +0000)
        (get_dynamic_type): Call it.

binutils/ChangeLog
binutils/readelf.c

index e72be0b7557196c3f5eae2c10ec56df3b855f66e..97139f99288ffe4fea4ccd8b65acc7c81335c03c 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-29  Richard Henderson  <rth@redhat.com>
+
+       * readelf.c (get_alpha_dynamic_type): New.
+       (get_dynamic_type): Call it.
+
 2005-05-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        * readelf.c (process_section_groups): Report group section
index ab0243edb1d1383893db15adeb782dca3ce3138f..0523d5531e21cf76d3054ce98e8ed4e425611111 100644 (file)
@@ -1470,6 +1470,17 @@ get_ia64_dynamic_type (unsigned long type)
     }
 }
 
+static const char *
+get_alpha_dynamic_type (unsigned long type)
+{
+  switch (type)
+    {
+    case DT_ALPHA_PLTRO: return "ALPHA_PLTRO";
+    default:
+      return NULL;
+    }
+}
+
 static const char *
 get_dynamic_type (unsigned long type)
 {
@@ -1572,6 +1583,9 @@ get_dynamic_type (unsigned long type)
            case EM_IA_64:
              result = get_ia64_dynamic_type (type);
              break;
+           case EM_ALPHA:
+             result = get_alpha_dynamic_type (type);
+             break;
            default:
              result = NULL;
              break;