Committed: Handle R_PARISC_SECREL32 relocs in readelf

Nick Clifton nickc@redhat.com
Mon Aug 17 09:13:00 GMT 2009


Hi Guys,

  I am applying the patch below to allow readelf to process
  R_PARISC_SECREL32 relocs found in HPPA dwarf debug sections.

Cheers
  Nick

binutils/ChangeLog
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.

Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.453
diff -c -3 -p -r1.453 readelf.c
*** binutils/readelf.c	10 Aug 2009 14:56:34 -0000	1.453
--- binutils/readelf.c	17 Aug 2009 08:30:54 -0000
*************** is_32bit_abs_reloc (unsigned int reloc_t
*** 7939,7945 ****
      case EM_OR32:
        return reloc_type == 1; /* R_OR32_32.  */
      case EM_PARISC:
!       return reloc_type == 1; /* R_PARISC_DIR32.  */
      case EM_PJ:
      case EM_PJ_OLD:
        return reloc_type == 1; /* R_PJ_DATA_DIR32.  */
--- 7939,7946 ----
      case EM_OR32:
        return reloc_type == 1; /* R_OR32_32.  */
      case EM_PARISC:
!       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.  */



More information about the Binutils mailing list