PhilE wrote: ↑Fri Oct 16, 2020 11:08 am
@hippy The latest version of the v7 armstubs disable the secure monitor call, which may be the cause of the change of behaviour. What are you trying to achieve with it?
It was copy-and-pasted code which was meant to terminate a Linux userland program. Seemed to work and still does AFAICT, so that doesn't seem to be my issue -
Added : Almost certainly copied from here - viewtopic.php?p=1396350#p1396350
The issue seems to be that 5.9 no longer allows code and data to be mixed in the .data section. The segmentation fault is AFAICT trying to execute code in that .data section. I should have realised it's a 'fails on first instruction' sooner.
Of course, putting it all in the .text section means writes to data in that section then give segmentation fault errors so the refactoring has to be a little more extensive. I started a separate thread and seem to have a workround -
viewtopic.php?f=72&t=288403
So we can can forget abut my issue here, except to the extent that others may have code which falls into the same 'won't work with 5.9, did with 5.4' category.
Thanks though for your efforts to assist and identify the issue.