Sujet : Recent XEmacs fails on macOS on ARM64 (Mac Silicon), workaround.
De : kehoea (at) *nospam* parhasard.net (Aidan Kehoe)
Groupes : comp.emacs.xemacsDate : 09. Nov 2024, 17:05:08
Autres entêtes
Message-ID : <874j4giea3.fsf@parhasard.net>
User-Agent : Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b35 (Linux-aarch64)
Dear comp.emacs.xemacs,
I learned recently that XEmacs fails on running post-dump on macOS on Apple
Silicon. From looking into it this initially seemed to be because it is no
longer possible to turn off address space layout randomization (ASLR) with the
shift to that platform, and I addressed this with commit 893ccc355e95 ,
viewable here:
https://foss.heptapod.net/xemacs/xemacs/-/commit/a319b9130038a238a27162702564d7068152a721This works well on Linux, Windows and Intel MacOS, and so I have (usually)
turned off the code in configure that passes -fnopie or equivalent to the
compiler and linker.
Unfortunately a build with the default configure flags still fails silently on
running post-dump on macOS on Apple Silicon. This is because our code to insert
the dump file into the exec image, which is the default, means the link-time
signature is no longer accurate.
I will push code over the next few days to address this but for the moment a
workaround on that platform is to configure --without-dump-in-exec , which has
no significant compile or run-time penalty.
Best,
Aidan
-- ‘As I sat looking up at the Guinness ad, I could never figure out /How your man stayed up on the surfboard after fourteen pints of stout’(C. Moore)