Make sure .gcc_except_table fits in the section header table
This commit is contained in:
parent
a09db9ba57
commit
1e3d6cc401
2 changed files with 5 additions and 3 deletions
|
@ -10,6 +10,8 @@ Fri Jun 12 16:06:15 1998 Michael Meissner <meissner@cygnus.com>
|
||||||
(process_elf_header): Print endian-ess. Convert all numeric
|
(process_elf_header): Print endian-ess. Convert all numeric
|
||||||
formats to long or unsigned long. Print out machine specific flag
|
formats to long or unsigned long. Print out machine specific flag
|
||||||
bits.
|
bits.
|
||||||
|
(process_section_headers): Increase name by 3 columns and decrease
|
||||||
|
type by the same so that .gcc_except_table fits in the space.
|
||||||
|
|
||||||
* readelf.h: Include elf/ppc.h, elf/mips.h, and elf/m32r.h to get
|
* readelf.h: Include elf/ppc.h, elf/mips.h, and elf/m32r.h to get
|
||||||
machine specific flag bits.
|
machine specific flag bits.
|
||||||
|
|
|
@ -1431,13 +1431,13 @@ process_section_headers ()
|
||||||
epnt->e_shnum, epnt->e_shoff);
|
epnt->e_shnum, epnt->e_shoff);
|
||||||
|
|
||||||
printf (_("\nSection Header%s....\n"), epnt->e_shnum > 1 ? "s" : "");
|
printf (_("\nSection Header%s....\n"), epnt->e_shnum > 1 ? "s" : "");
|
||||||
printf (_(" [Nr] Name Type Addr Off Size ES Flg Lk In Al\n"));
|
printf (_(" [Nr] Name Type Addr Off Size ES Flg Lk In Al\n"));
|
||||||
|
|
||||||
for (i = 0; i < epnt->e_shnum; i++)
|
for (i = 0; i < epnt->e_shnum; i++)
|
||||||
{
|
{
|
||||||
printf (" [%2d] %-14s", i, SECTION_NAME (spnt));
|
printf (" [%2d] %-17s", i, SECTION_NAME (spnt));
|
||||||
|
|
||||||
printf (" %-18s ",get_section_type_name (spnt->sh_type));
|
printf (" %-15s ",get_section_type_name (spnt->sh_type));
|
||||||
printf ( "%8.8lx %6.6lx %6.6lx %2.2lx",
|
printf ( "%8.8lx %6.6lx %6.6lx %2.2lx",
|
||||||
spnt->sh_addr,
|
spnt->sh_addr,
|
||||||
spnt->sh_offset,
|
spnt->sh_offset,
|
||||||
|
|
Loading…
Reference in a new issue