Skip to content

Commit c5bec0e

Browse files
authored
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.
1 parent 2da35de commit c5bec0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

portable/GCC/ARM_CRx_MPU/mpu_wrappers_v2_asm.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
.arm
3232
.syntax unified
33-
.section freertos_system_calls
33+
.section freertos_system_calls, "ax"
3434

3535
#define FREERTOS_ASSEMBLY
3636
#include "FreeRTOSConfig.h"

portable/GCC/ARM_CRx_MPU/portASM.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
.arm
3030
.syntax unified
31-
.section privileged_functions
31+
.section privileged_functions, "ax"
3232

3333
#define FREERTOS_ASSEMBLY
3434
#include "portmacro_asm.h"

0 commit comments

Comments
 (0)