]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vmlinux.lds: make __rela_offset and __dynsym_offset ABSOLUTE
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 28 Jul 2016 14:15:14 +0000 (16:15 +0200)
committerWill Deacon <will.deacon@arm.com>
Fri, 29 Jul 2016 09:44:53 +0000 (10:44 +0100)
commit65f7fb71747aebe34eb094cfb6b8f3a43dfde6d7
treeb092f892064282da30f0ae414fc6f85bb3a60237
parent7745624615b4a6ebdad2cd6dcb0bb9778388b74c
arm64: vmlinux.lds: make __rela_offset and __dynsym_offset ABSOLUTE

Due to the untyped KIMAGE_VADDR constant, the linker may not notice
that the __rela_offset and __dynsym_offset expressions are absolute
values (i.e., are not subject to relocation). This does not matter for
KASLR, but it does confuse kallsyms in relative mode, since it uses
the lowest non-absolute symbol address as the anchor point, and expects
all other symbol addresses to be within 4 GB of it.

Fix this by qualifying these expressions as ABSOLUTE() explicitly.

Fixes: 78b8c101f2f7 ("arm64: kernel: perform relocation processing from ID map")
Cc: <stable@vger.kernel.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/vmlinux.lds.S