gwcheck

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

commit ef59c6d9594f485b3ab656c188d04ea0bb8d174b
parent dbbdd4ce7f6b52d02515d64ae66a042da39b9f7b
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  5 Nov 2021 14:12:17 +0100

Rename input to object, makes things more explicit.

Diffstat:
MREADME.md | 2+-
Mgwcheck | 6+++---
Mgwcheck.1 | 2+-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -31,7 +31,7 @@ gwcheck requires Python 3 and the following Python module: ## Usage - gwcheck [-hv] input + gwcheck [-hv] object The options are as follows: diff --git a/gwcheck b/gwcheck @@ -23,7 +23,7 @@ from elftools.common.exceptions import ELFError def usage(): usage = """\ - gwcheck [-hv] input + gwcheck [-hv] object The options are as follows: @@ -56,9 +56,9 @@ def main(): print("gwcheck 1.0.0") sys.exit(0) - with open(input, "rb") as input: + with open(input, "rb") as object: try: - for section in ELFFile(input).iter_sections(): + for section in ELFFile(object).iter_sections(): if section["sh_type"] == "SHT_PROGBITS": if section.name.startswith(".gnu.warning"): print(section.name + ":") diff --git a/gwcheck.1 b/gwcheck.1 @@ -33,7 +33,7 @@ .Sh SYNOPSIS .Nm .Op Fl hv -.Ar input +.Ar object .Sh DESCRIPTION .Nm is a tool to check .gnu.warning.* sections in ELF object files