mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-12 04:00:17 +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:
|
with open(path) as inp:
|
||||||
for line in inp:
|
for line in inp:
|
||||||
version, symbol, flags = line.strip().split(' ', 2)
|
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
|
return result
|
||||||
|
|
||||||
def abilist_lines(symbols):
|
def abilist_lines(symbols):
|
||||||
|
Loading…
Reference in New Issue
Block a user