Skip to content

Commit

Permalink
Fix ASM that interfered with the GCC linker script and made the linke…
Browse files Browse the repository at this point in the history
…r try to zero the entire RAM space (ARMmbed#75)
  • Loading branch information
multiplemonomials authored Oct 17, 2022
1 parent 022d4f4 commit 6a8ac81
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,6 @@
.syntax unified
.arch armv7-m

.section .stack
.align 3
#ifdef __STACK_SIZE
.equ Stack_Size, __STACK_SIZE
#else
.equ Stack_Size, 0x00001000
#endif
.globl __StackTop
.globl __StackLimit
__StackLimit:
.space Stack_Size
.size __StackLimit, . - __StackLimit
__StackTop:
.size __StackTop, . - __StackTop

.section .heap
.align 3
#ifdef __HEAP_SIZE
.equ Heap_Size, __HEAP_SIZE
#else
.equ Heap_Size, 0x00004000
#endif
.globl __HeapBase
.globl __HeapLimit
__HeapBase:
.space Heap_Size
.size __HeapBase, . - __HeapBase
__HeapLimit:
.size __HeapLimit, . - __HeapLimit

.section .isr_vector
.align 2
.globl __isr_vector
Expand Down

0 comments on commit 6a8ac81

Please sign in to comment.