File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,9 @@ def parse_segments(path, arch):
259
259
segment_regex = re .compile (
260
260
r"^ 0x[0-9a-f]+ \(\s*0x(?P<size>[0-9a-f]+)\) "
261
261
r"(?P<name>.+?) (?P<name2>.+?)$" )
262
+ object_file_segment_regex = re .compile (
263
+ r"^ 0x[0-9a-f]+ \(\s*0x(?P<size>[0-9a-f]+)\) "
264
+ r"SEGMENT$" )
262
265
section_regex = re .compile (
263
266
r"^ 0x[0-9a-f]+ \(\s*0x(?P<size>[0-9a-f]+)\) "
264
267
r"(?P<name>.+?) (?P<name2>.+?)$" )
@@ -280,6 +283,12 @@ def parse_segments(path, arch):
280
283
segments .append (new_segment )
281
284
continue
282
285
286
+ object_file_segment_match = object_file_segment_regex .match (line )
287
+ if object_file_segment_match :
288
+ new_segment = Segment ("SEGMENT" )
289
+ segments .append (new_segment )
290
+ continue
291
+
283
292
# Match a section entry.
284
293
section_match = section_regex .match (line )
285
294
if section_match :
You can’t perform that action at this time.
0 commit comments