Skip to content

Commit 92872b2

Browse files
committed
[ATfE] Fix llvmlibc AArch64 sample
Fix llvmlibc AArch64 sample by providing the vector table a name that ensures correct placement following the latest (picolibc based) linker script. Without this, the vector table got before _start. Increase the size of boot_flash to fit.
1 parent c0de98f commit 92872b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arm-software/embedded/llvmlibc-samples/ldscripts/llvmlibc-raspi3b.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ linker script file should be provided.
1515
*/
1616

1717
__boot_flash = 0x80000; /* Default firmware address for Rapberry Pi 3 */
18-
__boot_flash_size = 0x2000; /* 8K of space for added page table */
18+
__boot_flash_size = 0x3000; /* 12K of space for added page table */
1919
__flash = 0x10000000;
2020
__flash_size = 0x10000000;
2121
__ram = 0x20000000;

arm-software/embedded/llvmlibc-support/crt0/exceptions_8a.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ EXFN_ATTR void exception_handler() {
206206
// For our purposes, each entry just contains one branch instruction to the
207207
// exception reporting function, since we never want to resume after an
208208
// exception.
209-
[[gnu::naked, gnu::section(".text.init.enter"), gnu::aligned(2048)]]
209+
[[gnu::naked, gnu::section(".init.vectors"), gnu::aligned(2048)]]
210210
void vector_table() {
211211
#define VECTOR_TABLE_ENTRY \
212212
asm(".balign 128"); \

0 commit comments

Comments
 (0)