diff options
author | Andrew F. Davis <afd@ti.com> | 2017-09-22 10:51:26 -0500 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2017-09-27 17:44:27 -0700 |
commit | 85ab358f65d303fd9865da549aebc44da195616a (patch) | |
tree | dc58699f40348c36f80b09f4c878ee1ddde6bafa /scripts | |
parent | be5c06caa42db2c7c59eca9311f5485c15a99029 (diff) |
scripts/gen_ld_sects.py: Explicitly number positional argument specifiers
Before Python 2.7 omitting the positional argument specifier was not
allowed. Some may still be using earlier Python version where this
will cause build to fail. Fix this here.
Fixes: 5976a0a5b9bf ("core: avoid incremental linking with -gc")
Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen_ld_sects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen_ld_sects.py b/scripts/gen_ld_sects.py index ea8b2749..5122bb11 100755 --- a/scripts/gen_ld_sects.py +++ b/scripts/gen_ld_sects.py @@ -30,7 +30,7 @@ import sys import re def usage(): - print "Usage: {} <section reg exp match> [<skip section>...]".format( \ + print "Usage: {0} <section reg exp match> [<skip section>...]".format( \ sys.argv[0]) sys.exit (1) @@ -77,7 +77,7 @@ def main(): if sect_name in skip_sections : continue - print '\t*({})'.format(sect_name) + print '\t*({0})'.format(sect_name) if __name__ == "__main__": main() |