Skip to content

Commit

Permalink
Fix Pylint.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Mar 19, 2024
1 parent c07dac3 commit 811e162
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion implib-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,20 @@ def collect_syms(f):
toc = None
syms = []
syms_set = set()

for line in out.splitlines():
line = line.strip()
line = re.sub(r'\[<localentry>: [0-9]+\]', '', line) # Strip out strange markers in powerpc64le ELFs

# Strip out strange markers in powerpc64le ELFs
line = re.sub(r'\[<localentry>: [0-9]+\]', '', line)

if not line:
# Next symtab
toc = None
continue

words = re.split(r' +', line)

if line.startswith('Num'): # Header?
if toc is not None:
error("multiple headers in output of readelf")
Expand Down

0 comments on commit 811e162

Please sign in to comment.