]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
readelf: Hook up -g, --section-groups to display the section groups.
authorMark Wielaard <mark@klomp.org>
Wed, 29 Nov 2017 23:10:58 +0000 (00:10 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 10 Dec 2017 17:13:12 +0000 (18:13 +0100)
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 <mark@klomp.org>
src/ChangeLog
src/readelf.c

index 612b3655848c7a18d21876f99f6ed149133fd1de..eed8569defa35d25fe8d1999e0f7744f76014c73 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-29  Mark Wielaard  <mark@klomp.org>
+
+       * readelf.c (argp_options): Add "section-groups", 'g'.
+
 2017-11-29  Mark Wielaard  <mark@klomp.org>
 
        * readelf.c (print_debug_loc_section): Print CU base and unresolved
index bb48af9bf0a5a8f8e4fdf5c35adc43c3c2eb1f93..357c73e3fd7bef2e221b3081684e3b1ece6c4cb0 100644 (file)
@@ -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,