Skip to content

Instantly share code, notes, and snippets.

@pftbest
Created January 8, 2020 00:01
Show Gist options
  • Save pftbest/1e2a0d25fa73802eb0fdc1d661f6f22a to your computer and use it in GitHub Desktop.
Save pftbest/1e2a0d25fa73802eb0fdc1d661f6f22a to your computer and use it in GitHub Desktop.
diff --git a/asm.s b/asm.s
index 50a3fa5..0daa1d8 100644
--- a/asm.s
+++ b/asm.s
@@ -1,6 +1,6 @@
# LLD requires that the section flags are explicitly set here
.section .HardFaultTrampoline, "ax"
- .global HardFaultTrampoline
+ .weak HardFaultTrampoline
# .type and .thumb_func are both required; otherwise its Thumb bit does not
# get set and an invalid vector table is generated
.type HardFaultTrampoline,%function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment