]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: kvm: assert on HYP section boundaries not actual code size
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 24 Mar 2015 17:48:07 +0000 (17:48 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 25 Mar 2015 11:43:46 +0000 (11:43 +0000)
commit56b4f7819d9a6cc4e01ba944829f0a01ee40a2b5
tree411ecad03da275823c3adc682767e7eff86cb0af
parent6bfcbdfd02a8a59c89612fcdabfba8f0f53bc44f
ARM: kvm: assert on HYP section boundaries not actual code size

Using ASSERT() with an expression that involves a symbol that
is only supplied through a PROVIDE() definition in the linker
script itself is apparently not supported by some older versions
of binutils.

So instead, rewrite the expression so that only the section
boundaries __hyp_idmap_text_start and __hyp_idmap_text_end
are used. Note that this reverts the fix in 300c209dd80e
("ARM, arm64: kvm: get rid of the bounce page") for the ASSERT()
being triggered erroneously when unrelated linker emitted veneers
happen to end up in the HYP idmap region.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/vmlinux.lds.S