Fix the syscallwx target which is affected by both mimmutable(2) and
authoranton <anton@openbsd.org>
Mon, 9 Jan 2023 11:50:01 +0000 (11:50 +0000)
committeranton <anton@openbsd.org>
Mon, 9 Jan 2023 11:50:01 +0000 (11:50 +0000)
commitc0a6b811701bdbfe01fb72ed4246ca86eedef8aa
treede075f7ea3628fdf67476f8f5cde730bf7086278
parentb57e4a5ccc9b849ffee0545f93170e3e739cb670
Fix the syscallwx target which is affected by both mimmutable(2) and
xonly by using a new gadget routine written in assembler with the sole
purpose of issuing a syscall. Since it needs to be copied to wx memory,
place it in the rodata section.
regress/usr.bin/lastcomm/Makefile
regress/usr.bin/lastcomm/gadget.S [new file with mode: 0644]
regress/usr.bin/lastcomm/syscallwx.c