From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:1538:b0:74e:509:851 with SMTP id n24-20020a05620a153800b0074e05090851mr844118qkk.2.1682676297008; Fri, 28 Apr 2023 03:04:57 -0700 (PDT) X-Received: by 2002:a25:d6c1:0:b0:b96:7fb0:f927 with SMTP id n184-20020a25d6c1000000b00b967fb0f927mr2762063ybg.12.1682676296714; Fri, 28 Apr 2023 03:04:56 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 28 Apr 2023 03:04:56 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 84.209.88.37 References: <47c0e248-bc1e-4784-8eed-8a8a64758be7n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1afb8ecb-1358-4032-a8ed-aea0ad9c15a5n@googlegroups.com> Subject: Re: Warning: requires executable stack... From: reinert Injection-Date: Fri, 28 Apr 2023 10:04:56 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2010 Xref: news.eternal-september.org comp.lang.ada:65160 List-Id: Thanks for swift answer. Seems like I have to live with the warning. I learned about pragma restrictions(...); :-) reinert fredag 28. april 2023 kl. 09:26:20 UTC+2 skrev Simon Wright: > reinert 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