mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 11:41:07 +00:00
glibcymbols.read_abilist: Add check for duplicate symbols
This detects some bogus abilist files. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
b9e2903712
commit
3977477d48
@ -63,7 +63,10 @@ def read_abilist(path):
|
||||
with open(path) as inp:
|
||||
for line in inp:
|
||||
version, symbol, flags = line.strip().split(' ', 2)
|
||||
result[VersionedSymbol(symbol, version)] = flags
|
||||
versym = VersionedSymbol(symbol, version)
|
||||
if versym in result:
|
||||
raise IOError("{}: duplicate symbol {}".format(path, versym))
|
||||
result[versym] = flags
|
||||
return result
|
||||
|
||||
def abilist_lines(symbols):
|
||||
|
Loading…
Reference in New Issue
Block a user