aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-18 17:06:16 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-18 17:06:16 +0000
commitb294bdf8d04c8a3da769f895128cfbb0828ae43d (patch)
treefa23f710a55e906a74ef8e9ed327a2788f0268eb /binutils
parent2a2a7c9466c2a8778e6f7a5f2142978c0da0cb3f (diff)
downloadgdb-b294bdf8d04c8a3da769f895128cfbb0828ae43d.zip
gdb-b294bdf8d04c8a3da769f895128cfbb0828ae43d.tar.gz
gdb-b294bdf8d04c8a3da769f895128cfbb0828ae43d.tar.bz2
* elf32-arm.c (elf32_arm_modify_segment_map): New function.
(elf32_arm_additional_program_headers): Likewise. (elf_backend_modify_segment_map): Define. (elf_backend_additional_program_headers): Likewise. (elf32_arm_symbian_modify_segment_map): Use elf32_arm_modify_segment_map. * binutils/readelf.c (get_arm_segment_type): New function. (get_segment_type): Use it. * arm.h (PT_ARM_EXIDX): Define.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog7
-rw-r--r--binutils/readelf.c17
2 files changed, 24 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8520871..0455b5f 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,10 @@
+2005-03-17 Paul Brook <paul@codesourcery.com>
+ Dan Jacobowitz <dan@codesourcery.com>
+ Mark Mitchell <mark@codesourcery.com>
+
+ * binutils/readelf.c (get_arm_segment_type): New function.
+ (get_segment_type): Use it.
+
2005-03-18 Paul Brook <paul@codesourcery.com>
* objdump.c (objdump_print_addr): Avoid uninitialized warning.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 9c4d2a4..31fd3fa 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2235,6 +2235,20 @@ get_osabi_name (unsigned int osabi)
}
static const char *
+get_arm_segment_type (unsigned long type)
+{
+ switch (type)
+ {
+ case PT_ARM_EXIDX:
+ return "EXIDX";
+ default:
+ break;
+ }
+
+ return NULL;
+}
+
+static const char *
get_mips_segment_type (unsigned long type)
{
switch (type)
@@ -2324,6 +2338,9 @@ get_segment_type (unsigned long p_type)
switch (elf_header.e_machine)
{
+ case EM_ARM:
+ result = get_arm_segment_type (p_type);
+ break;
case EM_MIPS:
case EM_MIPS_RS3_LE:
result = get_mips_segment_type (p_type);