Skip to content
Commit 2c7645b0 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

selftests/powerpc: Fix wild_bctr test to work on ppc64



The selftest I recently added to test branching to an out-of-bounds
NIP doesn't work on 64-bit big endian. It does fail but not in the
right way. That is it SEGVs trying to load from the opd at BAD_NIP,
but it never gets as far as branching to BAD_NIP.

To fix it we need to create an opd which is reachable but which holds
the bad address.

Fixes: b7683fc6 ("selftests/powerpc: Add a test of wild bctr")
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 43c6494f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment