[Bug jit/100096] libgccjit.so.0: Cannot write-enable text segment: Permission denied on NetBSD 9.1

2021-04-16 Thread wilde--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096

--- Comment #21 from wi...@sha-bang.de ---
"jakub at gcc dot gnu.org"  wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096
>
> --- Comment #20 from Jakub Jelinek  ---
> Created attachment 50614
>   --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50614&action=edit
> gcc11-pr100096.patch
>
> Thanks.  So, from your readelf -wi dump it seems it is only libintl.a that
> doesn't have --enable-host-shared support.
>
> So, can you please test this patch and see if all libgccjit.so* text
> relocations are gone with that?

I will test the patch, given the hardware this will take some time
(I'll consider setting up a vm on a faster hardware).

The patch needs to be applied to gcc11, right?  If it were usable with
10.2.0 I could apply it to my existing build, which of course would be
much faster to rebuild...

[Bug jit/100096] libgccjit.so.0: Cannot write-enable text segment: Permission denied on NetBSD 9.1

2021-04-16 Thread wilde--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096

--- Comment #23 from wi...@sha-bang.de ---
"jakub at gcc dot gnu.org"  wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096
>
> --- Comment #22 from Jakub Jelinek  ---
> It applies cleanly to gcc 10 too.  intl/ isn't really changing all that 
> much...

I am very happy to confirm, that the patch completely solves the issue
for me.  The hello-world example as well as the native compiling GNU
Emacs both do now work perfectly fine and without any warnings with
security.pax.mprotect.global enabled.

Thanks a lot for the fast and friendly reply!