aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-08-17 08:34:37 +0000
committerNick Clifton <nickc@redhat.com>2009-08-17 08:34:37 +0000
commit5fda8eca9cd8bf4fb7146057f5301c62b2624a12 (patch)
tree5ed6aa313a2c3c905d93ec528059774c27a92706 /binutils
parent2262bbf496f1b1c3f340456f911a610555c9bfe2 (diff)
downloadgdb-5fda8eca9cd8bf4fb7146057f5301c62b2624a12.zip
gdb-5fda8eca9cd8bf4fb7146057f5301c62b2624a12.tar.gz
gdb-5fda8eca9cd8bf4fb7146057f5301c62b2624a12.tar.bz2
* readelf.c (is_32bit_abs_reloc): Treat R_PARISC_SECREL32 as a
32-bit absolute reloc for the purposes of processing debug sections.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/readelf.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ff1ff25..0dca4ba 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-17 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (is_32bit_abs_reloc): Treat R_PARISC_SECREL32 as a
+ 32-bit absolute reloc for the purposes of processing debug
+ sections.
+
2009-08-10 Daniel Gutson <dgutson@codesourcery.com>
* readelf.c (get_arm_section_type_name): Added support for
diff --git a/binutils/readelf.c b/binutils/readelf.c
index f9cab0c..a8c1691 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -7939,7 +7939,8 @@ is_32bit_abs_reloc (unsigned int reloc_type)
case EM_OR32:
return reloc_type == 1; /* R_OR32_32. */
case EM_PARISC:
- return reloc_type == 1; /* R_PARISC_DIR32. */
+ return (reloc_type == 1 /* R_PARISC_DIR32. */
+ || reloc_type == 41); /* R_PARISC_SECREL32. */
case EM_PJ:
case EM_PJ_OLD:
return reloc_type == 1; /* R_PJ_DATA_DIR32. */