Track ram4 sections too. (#3518)

This commit is contained in:
Scott Smith 2021-11-10 04:28:33 -08:00 committed by GitHub
parent 5bd7d8e372
commit 1745ef66ef
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ import java.util.regex.Pattern;
*/ */
public class GccMapReader { public class GccMapReader {
private static final Pattern MULTI_LINE_PATTERN = Pattern.compile(".*0x(\\S*)(.*)"); private static final Pattern MULTI_LINE_PATTERN = Pattern.compile(".*0x(\\S*)(.*)");
private static final String[] REGIONS = {"bss", "text", "data", "rodata"}; private static final String[] REGIONS = {"bss", "ram4", "text", "data", "rodata"};
private static final Pattern SINGLE_LINE_PATTERN = Pattern.compile(".*\\.(bss|text|data|rodata)\\.(\\S*).*0x.*0x(\\S*)(.*)"); private static final Pattern SINGLE_LINE_PATTERN = Pattern.compile(".*\\.(bss|ram4|text|data|rodata)\\.(\\S*).*0x.*0x(\\S*)(.*)");
static final String START_OF_DATA_TAG = "Linker script and memory map"; static final String START_OF_DATA_TAG = "Linker script and memory map";
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {