From c4392d94725f417c1729732095d30932261014d0 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sat, 16 Oct 2021 23:45:47 +0200 Subject: [PATCH] all: rename assembly files to .S extension The Go tools only consider lowercase .s files to be assembly files. By renaming these to uppercase .S files they won't be discovered by the Go toolchain and listed as the SFiles to be assembled. There is a difference between .s and .S: only uppercase .S will be passed through the preprocessor. Doing that is normally safe, and definitely safe in the case of these files. --- src/device/arm/{cortexm.s => cortexm.S} | 0 .../{runtime_nintendoswitch.s => runtime_nintendoswitch.S} | 0 targets/cortex-m.json | 2 +- targets/nintendoswitch.json | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/device/arm/{cortexm.s => cortexm.S} (100%) rename src/runtime/{runtime_nintendoswitch.s => runtime_nintendoswitch.S} (100%) diff --git a/src/device/arm/cortexm.s b/src/device/arm/cortexm.S similarity index 100% rename from src/device/arm/cortexm.s rename to src/device/arm/cortexm.S diff --git a/src/runtime/runtime_nintendoswitch.s b/src/runtime/runtime_nintendoswitch.S similarity index 100% rename from src/runtime/runtime_nintendoswitch.s rename to src/runtime/runtime_nintendoswitch.S diff --git a/targets/cortex-m.json b/targets/cortex-m.json index 8a1e8025..7b1f7511 100644 --- a/targets/cortex-m.json +++ b/targets/cortex-m.json @@ -22,7 +22,7 @@ "--gc-sections" ], "extra-files": [ - "src/device/arm/cortexm.s", + "src/device/arm/cortexm.S", "src/internal/task/task_stack_cortexm.S", "src/runtime/asm_arm.S" ], diff --git a/targets/nintendoswitch.json b/targets/nintendoswitch.json index a04133ba..f85ee718 100644 --- a/targets/nintendoswitch.json +++ b/targets/nintendoswitch.json @@ -30,6 +30,6 @@ "targets/nintendoswitch.s", "src/internal/task/task_stack_arm64.S", "src/runtime/asm_arm64.S", - "src/runtime/runtime_nintendoswitch.s" + "src/runtime/runtime_nintendoswitch.S" ] }