From f30695e1df3e9d7811ae460be5ec69c70cc15e69 Mon Sep 17 00:00:00 2001 From: px4dev Date: Thu, 23 May 2013 23:58:59 +0200 Subject: [PATCH] Hotfix: fix section attribute for the ROMFS, moving it back into .rodata where it belongs. --- makefiles/toolchain_gnu-arm-eabi.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk index 74f6b2a89f..eeba0ff2c6 100644 --- a/makefiles/toolchain_gnu-arm-eabi.mk +++ b/makefiles/toolchain_gnu-arm-eabi.mk @@ -280,6 +280,7 @@ define BIN_TO_OBJ $(Q) $(OBJCOPY) $2 \ --redefine-sym $(call BIN_SYM_PREFIX,$1)_start=$3 \ --redefine-sym $(call BIN_SYM_PREFIX,$1)_size=$3_len \ - --strip-symbol $(call BIN_SYM_PREFIX,$1)_end + --strip-symbol $(call BIN_SYM_PREFIX,$1)_end \ + --rename-section .data=.rodata $(Q) $(REMOVE) $2.c $2.c.o endef