diff options
author | Albert Aribaud <albert.aribaud@free.fr> | 2010-10-11 13:13:28 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-13 10:10:21 +0200 |
commit | 92d5ecba47feb9961c3b7525e947866c5f0d2de5 (patch) | |
tree | fd0917489d0f6c5b55bc5b32fe1e7247c6817f73 /arch/arm/config.mk | |
parent | 89bca0ab697fc75160dd0d685d7cb2ed26609a6d (diff) | |
download | u-boot-imx-92d5ecba47feb9961c3b7525e947866c5f0d2de5.zip u-boot-imx-92d5ecba47feb9961c3b7525e947866c5f0d2de5.tar.gz u-boot-imx-92d5ecba47feb9961c3b7525e947866c5f0d2de5.tar.bz2 |
arm: implement ELF relocations
ELF relocation tables generated with linker option -pie can
be used to fixup code and data in a single loop at relocation,
removing the need for manual fixups anywhere else in the code.
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r-- | arch/arm/config.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 6923f6d..0be47d3 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -33,11 +33,6 @@ STANDALONE_LOAD_ADDR = 0xc100000 endif endif -ifndef CONFIG_SYS_ARM_WITHOUT_RELOC -# needed for relocation -PLATFORM_RELFLAGS += -fPIC -endif - ifdef CONFIG_SYS_ARM_WITHOUT_RELOC PLATFORM_CPPFLAGS += -DCONFIG_SYS_ARM_WITHOUT_RELOC endif @@ -72,3 +67,8 @@ PLATFORM_LIBS += $(OBJTREE)/arch/arm/lib/eabi_compat.o endif endif LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds + +ifndef CONFIG_SYS_ARM_WITHOUT_RELOC +# needed for relocation +PLATFORM_LDFLAGS += -pie +endif |