comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Warning: requires executable stack...
Date: Fri, 28 Apr 2023 08:26:17 +0100	[thread overview]
Message-ID: <lyr0s4a2na.fsf@pushface.org> (raw)
In-Reply-To: 47c0e248-bc1e-4784-8eed-8a8a64758be7n@googlegroups.com

reinert <reinkor@gmail.com> writes:

> ...../.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/bin/../lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> warning: kobio0.o: requires executable stack (because the
> .note.GNU-stack section is executable)

Creating executable code on the stack is one way of getting malicious
code past virus checkers. Modern OSs will prevent this approach.

So far as I know, GNAT will only do this to implement "trampolines", but see
here:
https://docs.adacore.com/live/wave/gnat_rm/html/gnat_rm/gnat_rm/standard_and_implementation_defined_restrictions.html#no-implicit-dynamic-code

  reply	other threads:[~2023-04-28  7:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-28  5:38 Warning: requires executable stack reinert
2023-04-28  7:26 ` Simon Wright [this message]
2023-04-28 10:04   ` reinert
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox