Thumb-2: Add support for loadable modules
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 24 Jul 2009 11:32:59 +0000 (12:32 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 24 Jul 2009 11:32:59 +0000 (12:32 +0100)
commitadca6dc23bc620ea95392659625200a252b97be3
treebaf8826c30b10e85a77a76a11f7e744182afeed4
parent0e056f20f18d0efa5da920f3cf8532adc56d5779
Thumb-2: Add support for loadable modules

Modules compiled to Thumb-2 have two additional relocations needing to
be resolved at load time, R_ARM_THM_CALL and R_ARM_THM_JUMP24, for BL
and B.W instructions. The maximum Thumb-2 addressing range is +/-2^24
(+/-16MB) therefore the MODULES_VADDR macro in asm/memory.h is set to
(MODULES_END - 8MB) for the Thumb-2 compiled kernel.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/include/asm/elf.h
arch/arm/include/asm/memory.h
arch/arm/kernel/module.c