Skip to content

Instantly share code, notes, and snippets.

@eblot
Created October 21, 2023 08:17
Show Gist options
  • Save eblot/7cf3590518167f37e6cb7ff0cb801d04 to your computer and use it in GitHub Desktop.
Save eblot/7cf3590518167f37e6cb7ff0cb801d04 to your computer and use it in GitHub Desktop.
Fix libgloss build for ARMv6m
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
index 8490bde..bde5f98 100644
--- a/libgloss/arm/crt0.S
+++ b/libgloss/arm/crt0.S
@@ -565,7 +565,7 @@ change_back:
/* 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