* readelf.c (dump_relocations): Handle MIPS-specific
authorThiemo Seufer <ths@networkno.de>
Wed, 2 Aug 2006 09:45:12 +0000 (09:45 +0000)
committerThiemo Seufer <ths@networkno.de>
Wed, 2 Aug 2006 09:45:12 +0000 (09:45 +0000)
SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED.
(get_symbol_index_type): Similarly.

binutils/ChangeLog
binutils/readelf.c

index a899ca8872d42a1cb757def02cad68c389b714da..efe3ed51c42bc738b30d7bc1fb3826870366353a 100644 (file)
@@ -1,3 +1,10 @@
+2006-08-02  Thiemo Seufer  <ths@mips.com>
+            Nigel Stephens  <nigel@mips.com>
+
+       * readelf.c (dump_relocations): Handle MIPS-specific
+       SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED. 
+       (get_symbol_index_type): Similarly.
+
 2006-07-24  Ralk Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * doc/binutils.texinfo: Fix spelling mistakes.
index 55f5a434addcadb89c8cc6839a27283af100833c..6bb2e4ce0070223b9fe07885af2b46347775508b 100644 (file)
@@ -1206,6 +1206,12 @@ dump_relocations (FILE *file,
                        sec_name = "ABS";
                      else if (psym->st_shndx == SHN_COMMON)
                        sec_name = "COMMON";
+                     else if (elf_header.e_machine == EM_MIPS
+                              && psym->st_shndx == SHN_MIPS_SCOMMON)
+                       sec_name = "SCOMMON";
+                     else if (elf_header.e_machine == EM_MIPS
+                              && psym->st_shndx == SHN_MIPS_SUNDEFINED)
+                       sec_name = "SUNDEF";
                      else if (elf_header.e_machine == EM_X86_64
                               && psym->st_shndx == SHN_X86_64_LCOMMON)
                        sec_name = "LARGE_COMMON";
@@ -6872,6 +6878,12 @@ get_symbol_index_type (unsigned int type)
       else if (elf_header.e_machine == EM_X86_64
               && type == SHN_X86_64_LCOMMON)
        return "LARGE_COM";
+      else if (type == SHN_MIPS_SCOMMON
+              && elf_header.e_machine == EM_MIPS)
+       return "SCOM";
+      else if (type == SHN_MIPS_SUNDEFINED
+              && elf_header.e_machine == EM_MIPS)
+       return "SUND";
       else if (type >= SHN_LOPROC && type <= SHN_HIPROC)
        sprintf (buff, "PRC[0x%04x]", type);
       else if (type >= SHN_LOOS && type <= SHN_HIOS)