aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-02-19 01:36:39 +0000
committerAlan Modra <amodra@gmail.com>2010-02-19 01:36:39 +0000
commit220453ec97481311a3cfd0d1a191c1bfe24f3b53 (patch)
treeaf443b9c942570e157a642516171db6461f9a759 /binutils/readelf.c
parentbfbf3774fe4032d1fc0f35012d8dc05d2e3fcebe (diff)
downloadgdb-220453ec97481311a3cfd0d1a191c1bfe24f3b53.zip
gdb-220453ec97481311a3cfd0d1a191c1bfe24f3b53.tar.gz
gdb-220453ec97481311a3cfd0d1a191c1bfe24f3b53.tar.bz2
* readelf.c (get_group_flags): Return empty string when flags zero.
Add space in other returned values. (process_section_groups): Adjust format string.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index b5d766f..c5e9b4f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4633,11 +4633,14 @@ get_group_flags (unsigned int flags)
static char buff[32];
switch (flags)
{
+ case 0:
+ return "";
+
case GRP_COMDAT:
- return "COMDAT";
+ return "COMDAT ";
default:
- snprintf (buff, sizeof (buff), _("[<unknown>: 0x%x]"), flags);
+ snprintf (buff, sizeof (buff), _("[<unknown>: 0x%x] "), flags);
break;
}
return buff;
@@ -4797,7 +4800,7 @@ process_section_groups (FILE * file)
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);
printf (_(" [Index] Name\n"));