]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Add 'Key to Flags' to eu-readelf --section-headers output
authorSamuel Zeter <samuelzeter@gmail.com>
Thu, 3 Apr 2025 07:24:13 +0000 (17:24 +1000)
committerMark Wielaard <mark@klomp.org>
Fri, 4 Apr 2025 11:57:50 +0000 (13:57 +0200)
commitef1ca49f5289ba8836a5f98b6ee8e387b96ebaf3
treefd03fd57806cfe960b6e0e49bdbfa3259c7ecde0
parent1159fec63f438a47a597e0608c47dc5ab850246d
readelf: Add 'Key to Flags' to eu-readelf --section-headers output

When printing section headers, also include a key to what each flag
is at the end of the section header output.

   * src/readelf.c (print_flag_info): New function.
   (print_shdr): Call print_flag_info.
   * tests/run-copyadd-sections.sh: Fix .extra grep by escaping \.
   * tests/run-large-elf-file.sh: Likewise.
   * tests/test-copymany-subr.sh: Likewise.
   * tests/run-readelf-z.sh: Add Key to Flags to expected output.
   * tests/run-retain.sh: Likewise.
   * tests/run-strip-remove-keep.sh: Likewise.

https://sourceware.org/bugzilla/show_bug.cgi?id=29571

Signed-off-by: Samuel Zeter <samuelzeter@gmail.com>
src/readelf.c
tests/run-copyadd-sections.sh
tests/run-large-elf-file.sh
tests/run-readelf-z.sh
tests/run-retain.sh
tests/run-strip-remove-keep.sh
tests/test-copymany-subr.sh