arm64: relocation testing module
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 31 Mar 2017 07:55:33 +0000 (08:55 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 Apr 2017 16:03:32 +0000 (17:03 +0100)
commit214fad550772929d97fb90a6a2637ebf5a796c11
treeabb9ad6b0c0b87b0d16dded2cc6c0b9a90f18f89
parent46823dd17c676d1e1830774e93be813dc3638d6c
arm64: relocation testing module

This module tests the module loader's ELF relocation processing
routines. When loaded, it logs output like below.

    Relocation test:
    -------------------------------------------------------
    R_AARCH64_ABS64                 0xffff880000cccccc pass
    R_AARCH64_ABS32                 0x00000000f800cccc pass
    R_AARCH64_ABS16                 0x000000000000f8cc pass
    R_AARCH64_MOVW_SABS_Gn          0xffff880000cccccc pass
    R_AARCH64_MOVW_UABS_Gn          0xffff880000cccccc pass
    R_AARCH64_ADR_PREL_LO21         0xffffff9cf4d1a400 pass
    R_AARCH64_PREL64                0xffffff9cf4d1a400 pass
    R_AARCH64_PREL32                0xffffff9cf4d1a400 pass
    R_AARCH64_PREL16                0xffffff9cf4d1a400 pass

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig.debug
arch/arm64/kernel/Makefile
arch/arm64/kernel/reloc_test_core.c [new file with mode: 0644]
arch/arm64/kernel/reloc_test_syms.S [new file with mode: 0644]