LLVM assembler compatibility for ARM_CRx_MPU

GNU as makes unrecognized sections loadable and writable by default, but
LLVM's assembler requires specifying flags explicitly. Without them, the
linker generates "has non-ABS relocation" errors when trying to link the
resulting object files.
This commit is contained in:
Dennis Lambe Jr. 2025-08-04 16:22:13 -04:00
parent 2da35debfd
commit 296cce9fdb
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@
.arm
.syntax unified
.section freertos_system_calls
.section freertos_system_calls, "ax"
#define FREERTOS_ASSEMBLY
#include "FreeRTOSConfig.h"

View file

@ -28,7 +28,7 @@
.arm
.syntax unified
.section privileged_functions
.section privileged_functions, "ax"
#define FREERTOS_ASSEMBLY
#include "portmacro_asm.h"