[commit: ghc] ghc-7.4: Add linker support for ELF on ARM (27302c9)
Paolo Capriotti
p.capriotti at gmail.com
Fri Mar 30 17:25:11 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : ghc-7.4
http://hackage.haskell.org/trac/ghc/changeset/27302c9094909e04eb73f200d52d5e9370c34a8a
>---------------------------------------------------------------
commit 27302c9094909e04eb73f200d52d5e9370c34a8a
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Wed Oct 12 00:49:12 2011 -0400
Add linker support for ELF on ARM
Add support for ELF objects on ARM to the runtime linker. While the list of
relocation types in the "ELF for the ARM Architecture" specification spans four
pages, we thankfully only see a handful of these in the wild. Thus, at the
moment we only support the following .rel relocation types,
* R_ARM_ABS32
* R_ARM_TARGET1
* R_ARM_REL32
* R_ARM_CALL
* R_ARM_JUMP24
* R_ARM_MOVT_ABS
* R_ARM_MOVW_ABS_NC
* R_ARM_THM_CALL
* R_ARM_THM_JUMP24
* R_ARM_THM_MOVT_ABS
* R_ARM_THM_MOVW_ABS_NC
* R_ARM_THM_JUMP8
* R_ARM_THM_JUMP11
Signed-off-by: Ben Gamari <bgamari.foss at gmail.com>
MERGED from commit b22501b408ddb0503a06a188b06d9cff9be697cd
mk/config.mk.in | 2 +-
rts/Linker.c | 345 +++++++++++++++++++++++++++++++++++++++++++++++--
rts/LinkerInternals.h | 6 +-
3 files changed, 341 insertions(+), 12 deletions(-)
Diff suppressed because of size. To see it, use:
git show 27302c9094909e04eb73f200d52d5e9370c34a8a
More information about the Cvs-ghc
mailing list