summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2017-11-30 00:10:58 +0100
committerMark Wielaard <[email protected]>2017-12-10 18:13:12 +0100
commitb0654221fc2691b3ec633463285c9ef4a86267ae (patch)
treefb887d06b7d6f2fa6afc8f2d871f7659fcb86cd2 /src
parentfbb6c932e3ff74d4fb8bc54b72d9c9bdc4513f69 (diff)
readelf: Hook up -g, --section-groups to display the section groups.
It was already possible to display the section groups using -a, but the argp options didn't yet have an -g, --section-groups entry to just display the section groups. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/readelf.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 612b3655..eed8569d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
2017-11-29 Mark Wielaard <[email protected]>
+ * readelf.c (argp_options): Add "section-groups", 'g'.
+
+2017-11-29 Mark Wielaard <[email protected]>
+
* readelf.c (print_debug_loc_section): Print CU base and unresolved
addresses. Adjust formatting.
diff --git a/src/readelf.c b/src/readelf.c
index bb48af9b..357c73e3 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -98,6 +98,7 @@ static const struct argp_option options[] =
{ "program-headers", 'l', NULL, 0, N_("Display the program headers"), 0 },
{ "segments", 'l', NULL, OPTION_ALIAS | OPTION_HIDDEN, NULL, 0 },
{ "relocs", 'r', NULL, 0, N_("Display relocations"), 0 },
+ { "section-groups", 'g', NULL, 0, N_("Display the section groups"), 0 },
{ "section-headers", 'S', NULL, 0, N_("Display the sections' headers"), 0 },
{ "sections", 'S', NULL, OPTION_ALIAS | OPTION_HIDDEN, NULL, 0 },
{ "symbols", 's', "SECTION", OPTION_ARG_OPTIONAL,