Patchwork [U-Boot,RFC,2/3] MIPS: add -pie flag to LDFLAGS_FINAL

login
register
mail settings
Submitter Gabor Juhos
Date Feb. 3, 2013, 9:26 a.m.
Message ID <1359883582-1551-3-git-send-email-juhosg@openwrt.org>
Download mbox | patch
Permalink /patch/217732/
State Superseded
Delegated to: Daniel Schwierzeck
Headers show

Comments

Gabor Juhos - Feb. 3, 2013, 9:26 a.m.
This ensures that the linker generates the .rel.dyn
fixup table, which will be applied to the relocated
image before transferring control to it.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
---
 arch/mips/config.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index de9140b..57f2338 100644
--- a/arch/mips/config.mk
+++ b/arch/mips/config.mk
@@ -65,4 +65,4 @@  PLATFORM_CPPFLAGS		+= -G 0 -mabicalls -fpic $(ENDIANNESS)
 PLATFORM_CPPFLAGS		+= -msoft-float
 PLATFORM_LDFLAGS		+= -G 0 -static -n -nostdlib $(ENDIANNESS)
 PLATFORM_RELFLAGS		+= -ffunction-sections -fdata-sections
-LDFLAGS_FINAL			+= --gc-sections
+LDFLAGS_FINAL			+= --gc-sections -pie