1 # "jump" is the jump instruction for the platform
2 # "prefix1" is the prefix of what is being mapped from
3 # "prefix2" is the prefix of what is being mapped to
5 # Remove the CR character in case the sources are mapped from
6 # a Windows share and contain CRLF line endings
9 # Skip empty lines and comment lines starting with semicolon
10 if (NF && !match($0, /^[:space:]*;/))
12 # Only process the entries that begin with "#"
13 if (match($0, /^#.*/))
16 print "LEAF_ENTRY " prefix1 $0 ", _TEXT"
17 print " " jump " EXTERNAL_C_FUNC(" prefix2 $0 ")"
18 print "LEAF_END " prefix1 $0 ", _TEXT"