* readelf.c (is_32bit_abs_reloc): Add support for NIOS relocs.

(is_64bit_abs_reloc): Add support for HPPA relocs.
   (is_16bit_abs_reloc): Add support for NIOS relocs.
This commit is contained in:
Nick Clifton 2007-11-19 12:01:42 +00:00
parent e7faf93859
commit 3e0873ac4f
2 changed files with 23 additions and 13 deletions

View File

@ -1,3 +1,9 @@
2007-11-19 Nick Clifton <nickc@redhat.com>
* readelf.c (is_32bit_abs_reloc): Add support for NIOS relocs.
(is_64bit_abs_reloc): Add support for HPPA relocs.
(is_16bit_abs_reloc): Add support for NIOS relocs.
2007-11-17 Thiemo Seufer <ths@mips.com>
* readelf.c (display_mips_gnu_attribute): Recognize -mips32r2 -mfp64

View File

@ -8013,6 +8013,9 @@ is_32bit_abs_reloc (unsigned int reloc_type)
return reloc_type == 1; /* R_MSP43_32. */
case EM_MT:
return reloc_type == 2; /* R_MT_32. */
case EM_ALTERA_NIOS2:
case EM_NIOS32:
return reloc_type == 1; /* R_NIOS_32. */
case EM_OPENRISC:
case EM_OR32:
return reloc_type == 1; /* R_OR32_32. */
@ -8052,10 +8055,6 @@ is_32bit_abs_reloc (unsigned int reloc_type)
case EM_XTENSA:
return reloc_type == 1; /* R_XTENSA_32. */
case EM_ALTERA_NIOS2:
/* Fall through (what reloc type is used ?). */
case EM_NIOS32:
/* Fall through (what reloc type is used ?). */
default:
error (_("Missing knowledge of 32-bit reloc types used in DWARF sections of machine number %d\n"),
elf_header.e_machine);
@ -8119,6 +8118,8 @@ is_64bit_abs_reloc (unsigned int reloc_type)
return reloc_type == 2; /* R_ALPHA_REFQUAD. */
case EM_IA_64:
return reloc_type == 0x27; /* R_IA64_DIR64LSB. */
case EM_PARISC:
return reloc_type == 80; /* R_PARISC_DIR64. */
case EM_PPC64:
return reloc_type == 38; /* R_PPC64_ADDR64. */
case EM_SPARC32PLUS:
@ -8156,6 +8157,9 @@ is_16bit_abs_reloc (unsigned int reloc_type)
case EM_MSP430_OLD:
case EM_MSP430:
return reloc_type == 5; /* R_MSP430_16_BYTE. */
case EM_ALTERA_NIOS2:
case EM_NIOS32:
return reloc_type == 9; /* R_NIOS_16. */
default:
return FALSE;
}