u-boot-brain/arch/mips/cpu
Gabor Juhos 04380c651a MIPS: add dynamic relocation support
The code handles relocation entries with the
following relocation types only:
  mips32: R_MIPS_REL32
  mips64: R_MIPS_REL+R_MIPS_64
  xburst: R_MIPS_REL32

Other relocation entries are skipped without
processing. The code must be extended if other
relocation types must be supported.

Add -pie to LDFLAGS_FINAL to generate the .rel.dyn
fixup table, which will be applied to the relocated
image before transferring control to it.

The CONFIG_NEEDS_MANUAL_RELOC is not needed
after the patch, so remove that as well.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
2013-02-12 22:22:13 +01:00
..
mips32 MIPS: add dynamic relocation support 2013-02-12 22:22:13 +01:00
mips64 MIPS: add dynamic relocation support 2013-02-12 22:22:13 +01:00
xburst MIPS: add dynamic relocation support 2013-02-12 22:22:13 +01:00
u-boot.lds MIPS: u-boot.lds: add relocation specific sections 2013-02-12 22:22:13 +01:00