2003-09-29 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (dump_relocations): Support SHN_IA_64_ANSI_COMMON. (get_symbol_index_type): Likewise. testsuites/ 2003-09-29 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/readelf.exp: Use is_elf_format. * binutils-all/readelf.h: Support IA64/ILP32. * binutils-all/readelf.s: Likewise. * binutils-all/readelf.ss: Likewise. * lib/utils-lib.exp (proc is_elf_format): Copy from ld testsuite. Add ia64-*-hpux*.
This commit is contained in:
parent
410b61f9df
commit
9ce701e24f
8 changed files with 70 additions and 25 deletions
|
@ -1194,6 +1194,10 @@ dump_relocations (FILE *file,
|
|||
sec_name = "ABS";
|
||||
else if (psym->st_shndx == SHN_COMMON)
|
||||
sec_name = "COMMON";
|
||||
else if (elf_header.e_machine == EM_IA_64
|
||||
&& elf_header.e_ident[EI_OSABI] == ELFOSABI_HPUX
|
||||
&& psym->st_shndx == SHN_IA_64_ANSI_COMMON)
|
||||
sec_name = "ANSI_COM";
|
||||
else
|
||||
{
|
||||
sprintf (name_buf, "<section 0x%x>",
|
||||
|
@ -5550,7 +5554,11 @@ get_symbol_index_type (unsigned int type)
|
|||
case SHN_ABS: return "ABS";
|
||||
case SHN_COMMON: return "COM";
|
||||
default:
|
||||
if (type >= SHN_LOPROC && type <= SHN_HIPROC)
|
||||
if (type == SHN_IA_64_ANSI_COMMON
|
||||
&& elf_header.e_machine == EM_IA_64
|
||||
&& elf_header.e_ident[EI_OSABI] == ELFOSABI_HPUX)
|
||||
return "ANSI_COM";
|
||||
else if (type >= SHN_LOPROC && type <= SHN_HIPROC)
|
||||
sprintf (buff, "PRC[0x%04x]", type);
|
||||
else if (type >= SHN_LOOS && type <= SHN_HIOS)
|
||||
sprintf (buff, "OS [0x%04x]", type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue