Skip to content

Commit bc71935

Browse files
committed
[M487] Fix GCC linker script with uVisor
1 parent 52d5a61 commit bc71935

File tree

1 file changed

+1
-6
lines changed
  • targets/TARGET_NUVOTON/TARGET_M480/device/TOOLCHAIN_GCC_ARM

1 file changed

+1
-6
lines changed

targets/TARGET_NUVOTON/TARGET_M480/device/TOOLCHAIN_GCC_ARM/M487.ld

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,7 @@ SECTIONS
8989
. = ALIGN(32);
9090
__uvisor_bss_boxes_end = .;
9191

92-
/************************** ARMv7-M MPU only **************************/
93-
__uvisor_bss_end_padding_max = (2 << (LOG2CEIL(__uvisor_bss_boxes_end - ORIGIN(RAM_INTERN)) - 1)) / 8;
94-
. = __uvisor_bss_end_padding_max == 0 ? 0 :
95-
MIN(__uvisor_bss_end_padding_max * (((__uvisor_bss_boxes_end - ORIGIN(RAM_INTERN)) / __uvisor_bss_end_padding_max) +
96-
MIN((__uvisor_bss_boxes_end - ORIGIN(RAM_INTERN)) % __uvisor_bss_end_padding_max, 1)) - __UVISOR_SRAM_OFFSET,
97-
ORIGIN(RAM_INTERN) + LENGTH(RAM_INTERN));
92+
. = ALIGN(32);
9893
__uvisor_bss_end = .;
9994
} > RAM_INTERN
10095

0 commit comments

Comments
 (0)