mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
Add support to readelf for displaying GNU section types.
* readelf.c (get_section_type_name): Add decoding of GNU section types.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2017-02-17 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* readelf.c (get_section_type_name): Add decoding of GNU section
|
||||
types.
|
||||
|
||||
2017-02-15 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
|
||||
|
@ -4136,9 +4136,20 @@ get_section_type_name (unsigned int sh_type)
|
||||
if (elf_header.e_ident[EI_OSABI] == ELFOSABI_SOLARIS)
|
||||
result = get_solaris_section_type (sh_type);
|
||||
else
|
||||
{
|
||||
switch (sh_type)
|
||||
{
|
||||
case SHT_GNU_INCREMENTAL_INPUTS: result = "GNU_INCREMENTAL_INPUTS"; break;
|
||||
case SHT_GNU_ATTRIBUTES: result = "GNU_ATTRIBUTES"; break;
|
||||
case SHT_GNU_HASH: result = "GNU_HASH"; break;
|
||||
case SHT_GNU_LIBLIST: result = "GNU_LIBLIST"; break;
|
||||
default:
|
||||
result = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (result != NULL)
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user