aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2007-02-05 19:56:32 +0000
committerDave Brolley <brolley@redhat.com>2007-02-05 19:56:32 +0000
commit15ab5209f39005f3c4f7009d490b9bb459cc7707 (patch)
tree6dc54dd81e2003f082785e508e50f18ad4c3dd6e /binutils/readelf.c
parent722b0ff75c691fd2428231358bfb36880d904d46 (diff)
downloadgdb-15ab5209f39005f3c4f7009d490b9bb459cc7707.zip
gdb-15ab5209f39005f3c4f7009d490b9bb459cc7707.tar.gz
gdb-15ab5209f39005f3c4f7009d490b9bb459cc7707.tar.bz2
2007-02-05 Dave Brolley <brolley@redhat.com>
* readelf.c (dump_relocations): Don't check for (rtype == NULL && type == R_RELC). 2007-02-05 Dave Brolley <brolley@redhat.com> * Contribute the following changes: 2003-10-29 Dave Brolley <brolley@redhat.com> * configure.in: Define SKIP_ZEROES and SKIP_ZEROES_AT_END for mep. * configure: Regenerated. 2001-04-03 Ben Elliston <bje@redhat.com> * readelf.c: Include "elf/mep.h". (guess_is_rela): Handle EM_CYGNUS_MEP. (get_machine_name): Ditto. (dump_relocations): Ditto.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index a4ade9d..f1f849f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -112,6 +112,7 @@
#include "elf/m68k.h"
#include "elf/m68hc11.h"
#include "elf/mcore.h"
+#include "elf/mep.h"
#include "elf/mips.h"
#include "elf/mmix.h"
#include "elf/mn10200.h"
@@ -615,6 +616,7 @@ guess_is_rela (unsigned long e_machine)
case EM_M32C:
case EM_M32R:
case EM_MCORE:
+ case EM_CYGNUS_MEP:
case EM_MMIX:
case EM_MN10200:
case EM_CYGNUS_MN10200:
@@ -1167,6 +1169,10 @@ dump_relocations (FILE *file,
case EM_BLACKFIN:
rtype = elf_bfin_reloc_type (type);
break;
+
+ case EM_CYGNUS_MEP:
+ rtype = elf_mep_reloc_type (type);
+ break;
}
if (rtype == NULL)
@@ -1762,6 +1768,7 @@ get_machine_name (unsigned e_machine)
case EM_NIOS32: return "Altera Nios";
case EM_ALTERA_NIOS2: return "Altera Nios II";
case EM_XC16X: return "Infineon Technologies xc16x";
+ case EM_CYGNUS_MEP: return "Toshiba MeP Media Engine";
default:
snprintf (buff, sizeof (buff), _("<unknown>: %x"), e_machine);
return buff;
@@ -6844,6 +6851,8 @@ get_symbol_type (unsigned int type)
case STT_FILE: return "FILE";
case STT_COMMON: return "COMMON";
case STT_TLS: return "TLS";
+ case STT_RELC: return "RELC";
+ case STT_SRELC: return "SRELC";
default:
if (type >= STT_LOPROC && type <= STT_HIPROC)
{