Skip to content

Commit a36c9e7

Browse files
committed
Testing out @abakst's fix. Made more difficult by brew's trashing my python world.
1 parent 99610f3 commit a36c9e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wllvm/extraction.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,15 @@ def extract_section_darwin(inputFile):
125125
try:
126126
octets = []
127127
for line in lines[1:]:
128-
m = otool_hexdata.match(line)
128+
# m = otool_hexdata.match(line)
129+
m = otool_hexdata.match(line.decode())
129130
if not m:
130131
_logger.debug('otool output:\n\t%s\nDID NOT match expectations.', line)
131132
continue
132133
octetline = m.group(1)
133134
octets.extend(octetline.split())
134-
retval = ''.join(octets).decode('hex').splitlines()
135+
# retval = ''.join(octets).decode('hex').splitlines()
136+
retval = decode_hex(''.join(octets))[0].splitlines()
135137
if not retval:
136138
_logger.error('%s contained no %s segment', inputFile, darwinSegmentName)
137139
except Exception as e:

0 commit comments

Comments
 (0)