Open basbebe opened 2 years ago
I assume this could be fixed with specific compilation flags (unclear if it's c only or both c and ada)
heh, synth made an article on this: https://ximalas.info/2021/04/15/freebsd-13-and-wx-memory-mapping-policy-for-user-processes/
TLDR; For now run this command if W^X enabled on FreeBSD 13:
elfctl -e +wxneeded /usr/local/bin/synth
But read the entire article. there's even a provided script for synth.
If you don't mind amending your own copy of ports-mgmt/synth/Makefile
, you can add these two lines after the WATCHDOG_EXTRA_PATCHES_OFF
line and have the W^X problem taken care of automatically:
USES+=elfctl
ELF_FEATURES+=+wxneeded:build/synth
you should let the maintainer (Fluffy) know. I'm sure he'd add those lines. His address is listed under maintainer at https://www.freshports.org/ports-mgmt/synth
I created PR 276886, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276886. Fingers crossed.
Having W^X enabled on FreeBSD 13.0, synth fails immediately.
/etc/sysctl.conf