Due to xonly on arm64 it is no longer possible to read the testfly routine.
authoranton <anton@openbsd.org>
Sun, 8 Jan 2023 06:56:01 +0000 (06:56 +0000)
committeranton <anton@openbsd.org>
Sun, 8 Jan 2023 06:56:01 +0000 (06:56 +0000)
commitcbaa7298caefcce59fc710e38d8478d0babef428
tree173ca12771f2deeedb10e794bbfc05d9edde0b6f
parentcfd1573f8b6c0af06897d243fce1bcec1a075efb
Due to xonly on arm64 it is no longer possible to read the testfly routine.
Put it in the rodata section allowing it to be copied. Note that testfly is
never executed directly but only after placing it in a separate chunk of memory
allowing its permissions to be mutated.
regress/sys/kern/noexec/testfly.S