Skip to content

Instantly share code, notes, and snippets.

@eblot
Created October 21, 2023 07:35
Show Gist options
  • Save eblot/c2759072cedcfae99864f74919cc4960 to your computer and use it in GitHub Desktop.
Save eblot/c2759072cedcfae99864f74919cc4960 to your computer and use it in GitHub Desktop.
Newlib-4.1.0 fix for ARMv6m
diff -ur a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
--- a/libgloss/arm/crt0.S 2020-01-22 11:05:51.000000000 +0100
+++ b/libgloss/arm/crt0.S 2020-05-01 21:19:59.000000000 +0200
@@ -565,7 +565,7 @@
/* For Thumb, constants must be after the code since only
positive offsets are supported for PC relative addresses. */
- .align 0
+ .align 2
.LC0:
#ifdef ARM_RDI_MONITOR
.word HeapBase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment