From: Mark Wielaard Date: Wed, 29 Nov 2017 23:10:58 +0000 (+0100) Subject: readelf: Hook up -g, --section-groups to display the section groups. X-Git-Tag: elfutils-0.171~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0654221fc2691b3ec633463285c9ef4a86267ae;p=thirdparty%2Felfutils.git 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 --- diff --git a/src/ChangeLog b/src/ChangeLog index 612b36558..eed8569de 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2017-11-29 Mark Wielaard + + * readelf.c (argp_options): Add "section-groups", 'g'. + 2017-11-29 Mark Wielaard * readelf.c (print_debug_loc_section): Print CU base and unresolved diff --git a/src/readelf.c b/src/readelf.c index bb48af9bf..357c73e3f 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,