projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e2903
)
glibcymbols.read_abilist: Add check for duplicate symbols
author
Florian Weimer
<fweimer@redhat.com>
Tue, 16 Mar 2021 14:56:50 +0000
(15:56 +0100)
committer
Florian Weimer
<fweimer@redhat.com>
Tue, 16 Mar 2021 14:57:16 +0000
(15:57 +0100)
This detects some bogus abilist files.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
scripts/glibcsymbols.py
patch
|
blob
|
history
diff --git
a/scripts/glibcsymbols.py
b/scripts/glibcsymbols.py
index
e329ead
..
1bdd19e
100644
(file)
--- a/
scripts/glibcsymbols.py
+++ b/
scripts/glibcsymbols.py
@@
-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):