gwcheck

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

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

Add a couple of comments in the script.

Diffstat:
Mgwcheck | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/gwcheck b/gwcheck @@ -34,6 +34,7 @@ def usage(): def main(): + # Verify that gwcheck receives at least one argument try: sys.argv[1] except IndexError: @@ -42,6 +43,7 @@ def main(): else: input = sys.argv[1] + # Process command line arguments try: options, args = getopt.getopt(sys.argv[1:], "hv") except getopt.GetoptError as err: @@ -56,6 +58,7 @@ def main(): print("gwcheck 1.0.0") sys.exit(0) + # Process ELF object with open(input, "rb") as object: try: for section in ELFFile(object).iter_sections():