summaryrefslogtreecommitdiff
path: root/tools/asm_processor/compile.sh
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2021-03-21 01:16:25 -0400
committerGitHub <noreply@github.com>2021-03-21 01:16:25 -0400
commite5f25acf1b0a1e8d5f6972cda99b89697cddd872 (patch)
tree2e9eca18cda8c2c4afe4db01f26a6448fab22ffa /tools/asm_processor/compile.sh
parente2efdddfacd3c9453fda373d83e5078cd4f25a09 (diff)
parentc4c114fd45f74764d07860bace7257c00478a477 (diff)
Merge pull request #340 from hondew/asmproc-relocations
Fix asmproc: Fix broken branches and relocations
Diffstat (limited to 'tools/asm_processor/compile.sh')
-rwxr-xr-x[-rw-r--r--]tools/asm_processor/compile.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asm_processor/compile.sh b/tools/asm_processor/compile.sh
index 8c367b3e..e10c9334 100644..100755
--- a/tools/asm_processor/compile.sh
+++ b/tools/asm_processor/compile.sh
@@ -9,7 +9,7 @@ PADDED_SRC="$(mktemp --suffix=.c padded-XXXXXX)"
PADDED_OBJ="$(mktemp --suffix=.o padded-XXXXXX)"
# Create a .c file replacing the nonmatching function with volatile int writes,
-# and compile.
+# and compile.
../tools/asm_processor/asm_processor.py "$SRC" --assembler "$AS" > "$PADDED_SRC"
$CC -c "$PADDED_SRC" -o "$PADDED_OBJ"
@@ -20,7 +20,7 @@ cat global.inc >> "$PRELUDE"
# Inject the matching assembly into the padded obj file.
../tools/asm_processor/asm_processor.py "$SRC" --post-process "$PADDED_OBJ" --assembler "$AS" --asm-prelude "$PRELUDE"
-$DEVKITARM/bin/arm-none-eabi-objcopy --remove-section .comment "$PADDED_OBJ" "$OBJ"
+arm-none-eabi-objcopy --remove-section .comment "$PADDED_OBJ" "$OBJ"
rm "$PADDED_SRC"
rm "$PADDED_OBJ"