summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-06-16 14:43:35 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-06-16 14:43:35 -0400
commitae8f6e29f8906d53172a05f7b7b497510fe7617c (patch)
tree2d0b29260429074b56d721d394271c6aeb1f8935
parent5ccac26f2685aed0f0374d5999ce5506d5a69693 (diff)
Symplifi symfiles
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 89d4b7c94..384f012d1 100644
--- a/Makefile
+++ b/Makefile
@@ -131,6 +131,8 @@ FIX := tools/gbafix/gbafix$(EXE)
MAPJSON := tools/mapjson/mapjson$(EXE)
JSONPROC := tools/jsonproc/jsonproc$(EXE)
+PERL := perl
+
TOOLDIRS := $(filter-out tools/agbcc tools/binutils,$(wildcard tools/*))
TOOLBASE = $(TOOLDIRS:tools/%=%)
TOOLS = $(foreach tool,$(TOOLBASE),tools/$(tool)/$(tool)$(EXE))
@@ -438,4 +440,4 @@ libagbsyscall:
###################
$(SYM): $(ELF)
- $(OBJDUMP) -t $< | sort -u | grep -E "^0[2389]" > $@
+ $(OBJDUMP) -t $< | sort -u | grep -E "^0[2389]" | $(PERL) -p -e 's/^(\w{8}) (\w).{6} \S+\t(\w{8}) (\w+)$$/\1 \2 \3 \4/g' > $@