File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def parse_mapfile(self, mapfile):
77
77
78
78
class _GccParser (_Parser ):
79
79
RE_OBJECT_FILE = re .compile (r'^(.+\/.+\.o)$' )
80
- RE_LIBRARY_OBJECT = re .compile (r'^.+\/ lib(.+\.a)\((.+\.o)\)$' )
80
+ RE_LIBRARY_OBJECT = re .compile (r'^.+' + os . sep + r' lib(( .+\.a)\((.+\.o)\) )$' )
81
81
RE_STD_SECTION = re .compile (r'^\s+.*0x(\w{8,16})\s+0x(\w+)\s(.+)$' )
82
82
RE_FILL_SECTION = re .compile (r'^\s*\*fill\*\s+0x(\w{8,16})\s+0x(\w+).*$' )
83
83
@@ -119,7 +119,7 @@ def parse_object_name(self, line):
119
119
120
120
# corner case: certain objects are provided by the GCC toolchain
121
121
if 'arm-none-eabi' in line :
122
- return os .path .join ('[lib]' , 'misc' , object_name )
122
+ return os .path .join ('[lib]' , 'misc' , os . path . basename ( object_name ) )
123
123
return object_name
124
124
125
125
else :
You can’t perform that action at this time.
0 commit comments