mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 03:33:33 +08:00
elf: Fix tst-relro-symbols.py argument passing
Current scheme only consideres the first argument for both --required and --optional, where the idea is to append a new item. Checked on x86_64-linux-gnu. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
parent
b712be5264
commit
71e408e45d
@ -56,10 +56,10 @@ def get_parser():
|
||||
"""Return an argument parser for this script."""
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('object', help='path to object file to check')
|
||||
parser.add_argument('--required', metavar='NAME', default=(),
|
||||
help='required symbol names', nargs='*')
|
||||
parser.add_argument('--optional', metavar='NAME', default=(),
|
||||
help='required symbol names', nargs='*')
|
||||
parser.add_argument('--required', metavar='NAME', action='append',
|
||||
default=[], help='required symbol names')
|
||||
parser.add_argument('--optional', metavar='NAME', action='append',
|
||||
default=[], help='required symbol names')
|
||||
return parser
|
||||
|
||||
def main(argv):
|
||||
|
Loading…
Reference in New Issue
Block a user