gwcheck

Check .gnu.warning.* sections in ELF object files
Log | Files | Refs | README | LICENSE

commit 1ce8fa119dbcc9d997b9f25c343e22ddb7576417
parent 1431daf9b2371a7bfafdab0dc51161345ce42fdd
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  4 Nov 2021 15:53:49 +0100

Display .gnu.warning.* section names in the output.

Diffstat:
Mgwcheck | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gwcheck b/gwcheck @@ -23,7 +23,8 @@ def main(): for section in ELFFile(f).iter_sections(): if section["sh_type"] == "SHT_PROGBITS": if section.name.startswith(".gnu.warning"): - print(section.data().decode("utf-8")) + print(section.name + ":") + print("\t" + section.data().decode("utf-8")) if __name__ == "__main__":