aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-08-02 09:45:12 +0000
committerThiemo Seufer <ths@networkno.de>2006-08-02 09:45:12 +0000
commit172553c73378f3fc8d86df061b6443ed63f302e7 (patch)
treea30bb78431cc960b84c476086c87635e61f0997f /binutils
parent0cbfa4ee32c2a671ab9ff52d324f2e9505aaf0de (diff)
downloadgdb-172553c73378f3fc8d86df061b6443ed63f302e7.zip
gdb-172553c73378f3fc8d86df061b6443ed63f302e7.tar.gz
gdb-172553c73378f3fc8d86df061b6443ed63f302e7.tar.bz2
* readelf.c (dump_relocations): Handle MIPS-specific
SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED. (get_symbol_index_type): Similarly.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog7
-rw-r--r--binutils/readelf.c12
2 files changed, 19 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index a899ca8..efe3ed5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 55f5a43..6bb2e4c 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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)