Comment 12 for bug 408499

Revision history for this message
In , Rafał Mużyło (galtgendo) wrote :

(In reply to comment #6)
> Setting to RESOLVED / INVALID since this is not a bug but a question ....
>
> Rafal, if I remember correctly this is only on x86_64 because the on-executable
> stack needs hardware and kernel support which exists on the AMD64, but not
> necessarily on i386.
>
> I'm not entirely sure since it's been a very long time since I wrote that code,
> but I think the reason for making the stack non-executable was because that is
> the default in mono when running on x86_64, but not on i386.
>
> Martin

Well, that's definitely an answer to a question, just not to mine.

Mine was: during build of mono on x86, libraries/executables
are created by gnu linker, which contain executable stack;
the sole source of it is mono/mini/mdb-debug-info32.s;
does mono need this file to create executable stack in
those libraries/executables ?

Note, that I did try to add that note for non-executable
in that file and mono built fine and it did compile a trivial
program, I'm simply not sure, if I did broke anything that way.