diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-31 09:55:33 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-04-04 18:03:32 +0200 |
commit | 214fad550772929d97fb90a6a2637ebf5a796c11 (patch) | |
tree | abb9ad6b0c0b87b0d16dded2cc6c0b9a90f18f89 /arch/arm64/kernel/Makefile | |
parent | arm64: cpufeature: Make ID reg accessor naming less counterintuitive (diff) | |
download | linux-214fad550772929d97fb90a6a2637ebf5a796c11.tar.xz linux-214fad550772929d97fb90a6a2637ebf5a796c11.zip |
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>
Diffstat (limited to 'arch/arm64/kernel/Makefile')
-rw-r--r-- | arch/arm64/kernel/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile index 1606c6b2a280..aaaf06b117e3 100644 --- a/arch/arm64/kernel/Makefile +++ b/arch/arm64/kernel/Makefile @@ -50,6 +50,8 @@ arm64-obj-$(CONFIG_RANDOMIZE_BASE) += kaslr.o arm64-obj-$(CONFIG_HIBERNATION) += hibernate.o hibernate-asm.o arm64-obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o \ cpu-reset.o +arm64-obj-$(CONFIG_ARM64_RELOC_TEST) += arm64-reloc-test.o +arm64-reloc-test-y := reloc_test_core.o reloc_test_syms.o obj-y += $(arm64-obj-y) vdso/ probes/ obj-m += $(arm64-obj-m) |