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.

Revisions

  1. eblot created this gist Oct 21, 2023.
    13 changes: 13 additions & 0 deletions newlib-libgloss-armv6m-none-eabi.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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