[Cin] executable stacks are bad...m-kay?
Rob Prowel
rprowel at comcast.net
Thu Jan 12 04:21:09 CET 2023
On 1/11/23 07:37, Andrew Randrianasulu wrote:
> ср, 11 янв. 2023 г., 13:30 Andrew Randrianasulu <randrianasulu at gmail.com>:
>
> can you check if something like attached patch fixes it for you?
>
> i hope it was only o file with missing GNU.stack
> note, old linkers may dislike this and also it seems clang linker (lld)
> default on termux does this by default ....
re -- patch
-LDFLAGS1 = -Wl,-export-dynamic -g
+LDFLAGS1 = -Wl,-export-dynamic -g -Wl,-z,noexecstack
Are you sure you want to do this? Is is portable?
Might an alternate solution have merit? ie scanning the blob resources
and saving their hex data as static arrays and then compiling and
linking the resulting .o files, which presumable only contain .data
segments? Increases build time and complexity but seems more portable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x36472CAD382840B8.asc
Type: application/pgp-keys
Size: 632 bytes
Desc: OpenPGP public key
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20230111/a8b07d78/attachment.skr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20230111/a8b07d78/attachment.sig>
More information about the Cin
mailing list