Skip to content

Commit d66bf2c

Browse files
committed
src/addlayouttable.py: Allow map entries to start with 0x20.
More recent versions of gcc will emit lines that start with 0x20, instead of the (64-bit) long form 0x000...020. Signed-off-by: Damien George <damien@micropython.org>
1 parent 5177bdc commit d66bf2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addlayouttable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def parse_map_file(filename, symbols):
124124
line = line.strip()
125125
if line == "Linker script and memory map":
126126
parse_symbols = True
127-
elif parse_symbols and line.startswith("0x00"):
127+
elif parse_symbols and line.startswith(("0x00", "0x20")):
128128
line = line.split()
129129
if len(line) >= 2 and line[1] in symbols:
130130
symbols[line[1]] = int(line[0], 16)

0 commit comments

Comments
 (0)