* readelf.c (get_group_flags): Return empty string when flags zero.
Add space in other returned values. (process_section_groups): Adjust format string.
This commit is contained in:
parent
bfbf3774fe
commit
220453ec97
@ -1,3 +1,9 @@
|
|||||||
|
2010-02-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* readelf.c (get_group_flags): Return empty string when flags zero.
|
||||||
|
Add space in other returned values.
|
||||||
|
(process_section_groups): Adjust format string.
|
||||||
|
|
||||||
2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
||||||
|
|
||||||
* readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add description of
|
* readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add description of
|
||||||
|
@ -4633,11 +4633,14 @@ get_group_flags (unsigned int flags)
|
|||||||
static char buff[32];
|
static char buff[32];
|
||||||
switch (flags)
|
switch (flags)
|
||||||
{
|
{
|
||||||
|
case 0:
|
||||||
|
return "";
|
||||||
|
|
||||||
case GRP_COMDAT:
|
case GRP_COMDAT:
|
||||||
return "COMDAT";
|
return "COMDAT ";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
snprintf (buff, sizeof (buff), _("[<unknown>: 0x%x]"), flags);
|
snprintf (buff, sizeof (buff), _("[<unknown>: 0x%x] "), flags);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return buff;
|
return buff;
|
||||||
@ -4797,7 +4800,7 @@ process_section_groups (FILE * file)
|
|||||||
|
|
||||||
if (do_section_groups)
|
if (do_section_groups)
|
||||||
{
|
{
|
||||||
printf ("\n%s group section [%5u] `%s' [%s] contains %u sections:\n",
|
printf ("\n%sgroup section [%5u] `%s' [%s] contains %u sections:\n",
|
||||||
get_group_flags (entry), i, name, group_name, size);
|
get_group_flags (entry), i, name, group_name, size);
|
||||||
|
|
||||||
printf (_(" [Index] Name\n"));
|
printf (_(" [Index] Name\n"));
|
||||||
|
Loading…
Reference in New Issue
Block a user