Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/binutils Decode alpha st_other



details:   https://anonhg.NetBSD.org/src/rev/01c9ca1f5f2b
branches:  trunk
changeset: 331479:01c9ca1f5f2b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Aug 11 20:57:28 2014 +0000

description:
Decode alpha st_other

diffstat:

 external/gpl3/binutils/dist/binutils/readelf.c |  17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diffs (34 lines):

diff -r fdc17bf49028 -r 01c9ca1f5f2b external/gpl3/binutils/dist/binutils/readelf.c
--- a/external/gpl3/binutils/dist/binutils/readelf.c    Mon Aug 11 20:53:16 2014 +0000
+++ b/external/gpl3/binutils/dist/binutils/readelf.c    Mon Aug 11 20:57:28 2014 +0000
@@ -8847,6 +8847,20 @@
 }
 
 static const char *
+get_alpha_symbol_other (unsigned int other)
+{   
+  switch (other)
+    {
+    case STO_ALPHA_NOPV:
+      return "NOPV";
+    case STO_ALPHA_STD_GPLOAD:
+      return "STD GPLOAD";
+    default:
+      return NULL;
+    } 
+}
+
+static const char *
 get_mips_symbol_other (unsigned int other)
 {
   switch (other)
@@ -8940,6 +8954,9 @@
 
   switch (elf_header.e_machine)
     {
+    case EM_ALPHA:
+      result = get_alpha_symbol_other (other);
+      break;
     case EM_MIPS:
       result = get_mips_symbol_other (other);
       break;



Home | Main Index | Thread Index | Old Index