gwcheck

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

commit 4de3197cb96a2b14e93a04e2bd2d1eae3931f816
parent 788e03b6e9e718dd1b42a05ce0a0b4a0f170135c
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  4 Nov 2021 16:39:54 +0100

Rename variable "f" to "input".

Diffstat:
Mgwcheck | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gwcheck b/gwcheck @@ -20,9 +20,9 @@ from elftools.common.exceptions import ELFError def main(): - with open(sys.argv[1], "rb") as f: + with open(sys.argv[1], "rb") as input: try: - for section in ELFFile(f).iter_sections(): + for section in ELFFile(input).iter_sections(): if section["sh_type"] == "SHT_PROGBITS": if section.name.startswith(".gnu.warning"): print(section.name + ":")