Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

System going down at 1:45 this afternoon for disk crashing.


devel / comp.lang.ada / Warning: requires executable stack...

SubjectAuthor
* Warning: requires executable stack...reinert
`* Re: Warning: requires executable stack...Simon Wright
 `- Re: Warning: requires executable stack...reinert

1
Warning: requires executable stack...

<47c0e248-bc1e-4784-8eed-8a8a64758be7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9561&group=comp.lang.ada#9561

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:1ba0:b0:3f0:ab4f:3bf8 with SMTP id bp32-20020a05622a1ba000b003f0ab4f3bf8mr1516775qtb.9.1682660303395;
Thu, 27 Apr 2023 22:38:23 -0700 (PDT)
X-Received: by 2002:a81:ca4a:0:b0:555:cce6:1bd2 with SMTP id
y10-20020a81ca4a000000b00555cce61bd2mr2595113ywk.0.1682660303150; Thu, 27 Apr
2023 22:38:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.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: Thu, 27 Apr 2023 22:38:22 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR
NNTP-Posting-Host: 84.209.88.37
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <47c0e248-bc1e-4784-8eed-8a8a64758be7n@googlegroups.com>
Subject: Warning: requires executable stack...
From: reinkor@gmail.com (reinert)
Injection-Date: Fri, 28 Apr 2023 05:38:23 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1696
 by: reinert - Fri, 28 Apr 2023 05:38 UTC

Hello,

I use alire and I just updated via these commands:

alr index --update-all
alr toolchain --select

(selected
gnat_native=12.2.1
and
gprbuild=22.0.1
)

All seem OK, but when I use "alr build" I finally get this warning:

....../.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)
Build finished successfully in 19.48 seconds.

When trying a simple "hello_world" programme, I do not get this annoying warning.

Any hint?
I do not like warnings which I do not understand anything from :-)

reinert

Re: Warning: requires executable stack...

<lyr0s4a2na.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9562&group=comp.lang.ada#9562

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: Warning: requires executable stack...
Date: Fri, 28 Apr 2023 08:26:17 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <lyr0s4a2na.fsf@pushface.org>
References: <47c0e248-bc1e-4784-8eed-8a8a64758be7n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="0782f61db2c1d79eae177b947c80fb01";
logging-data="2482931"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PqiuoJYUgKNE3M3fggrDEE2DJ4Q9bZJI="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)
Cancel-Lock: sha1:D6LT6SXNYFGSEhD6+IhApMrRGuo=
sha1:1197S17zYlVDeWseTXTJkrFzNNE=
 by: Simon Wright - Fri, 28 Apr 2023 07:26 UTC

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

Re: Warning: requires executable stack...

<1afb8ecb-1358-4032-a8ed-aea0ad9c15a5n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9563&group=comp.lang.ada#9563

  copy link   Newsgroups: comp.lang.ada
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: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!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: <lyr0s4a2na.fsf@pushface.org>
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> <lyr0s4a2na.fsf@pushface.org>
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: reinkor@gmail.com (reinert)
Injection-Date: Fri, 28 Apr 2023 10:04:56 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2010
 by: reinert - Fri, 28 Apr 2023 10:04 UTC

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 <rei...@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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor