LLVM assembler compatibility for ARM_CRx_MPU (#1303)

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-05 06:32:03 -04:00
committed by GitHub
parent 2da35debfd
commit c5bec0e4b2
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"