support @function compiled by gcc
This commit is contained in:
parent
f768990dbd
commit
8f8a97de4e
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = supSMSASM
|
||||
version = 0.0.5b1
|
||||
version = 0.0.5
|
||||
author = sup39
|
||||
author_email = sms@sup39.dev
|
||||
description = A tool to make Gecko code from ASM for SMS
|
||||
|
|
|
@ -95,7 +95,9 @@ def asm2gecko(fnIn, dolver):
|
|||
for line in lines[8:]:
|
||||
if not re.match('^[0-9a-f]{8} \w', line): continue
|
||||
cols = line.split()
|
||||
if len(cols) != 5: continue
|
||||
if len(cols) == 6 and cols[2] == 'F': # @function
|
||||
cols = cols[:2]+cols[3:]
|
||||
elif len(cols) != 5: continue
|
||||
addr, _, sec, _, name = cols
|
||||
if sec == '.text':
|
||||
asmSymbs[name] = addr
|
||||
|
|
Reference in a new issue