From: Yury Khrustalev <yury.khrustalev@arm.com>
To: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: <libc-alpha@sourceware.org>
Subject: Re: [PATCH 1/4] aarch64: Add tests for Guarded Control Stack
Date: Tue, 28 Jan 2025 13:23:06 +0000 [thread overview]
Message-ID: <Z5jaOgKUZSe-SSc9@arm.com> (raw)
In-Reply-To: <d8800bc1-d461-4fae-bc9c-bc546c3d68bf@linaro.org>
On Tue, Jan 28, 2025 at 08:49:00AM -0300, Adhemerval Zanella Netto wrote:
>
> On 28/01/25 07:08, Yury Khrustalev wrote:
> > On Mon, Jan 27, 2025 at 05:47:21PM -0300, Adhemerval Zanella Netto wrote:
> >>
> >> On 23/01/25 11:13, Yury Khrustalev wrote:
> >>> These tests validate that GCS tunable works as expected depending
> >>> on the GCS markings in the test binaries.
> >>>
> >>> Tests validate both static and dynamically linked binaries.
> >>>
> >>> Test will build and run on AArch64 targets only and if GCS is not
> >>> enabled on the platform running tests, they will be reported as
> >>> UNSUPPORTED.
> >>>
> >>> When linking tests a new linker command line flag -z gcs=<value>
> >>> is used. If the toolchain used to build these tests doesn't support
> >>> this flag, there will be a warning that is expected and should be
> >>> ignored.
> >>
> >> I think it would be better to add a configure check for '-z gcs=' support
> >> and do not enable them if linker does not support it.
> >
> > Such an option would only be needed for tests however it may give an
> > impression that it can be used for the library code as well which would
> > be incorrect. I'm not sure what is the best approach here but it would
> > be good to use some sort of test-only configuration.
>
> But this would be done automatically and only enabled during tests, as we
> for various linker options on multiple Makefiles like have-test-stb-gnu-unique,
> have-fpie, have-test-cc-trampoline, etc.
Would LIBC_LINKER_FEATURE be appropriate here. I see that for compiler flags
support there is a desinction between CC and TEST_CC so probably it's the
same for linker? But I can't find something like LIBC_TEST_LINKER_FEATURE.
Kind regards,
Yury
next prev parent reply other threads:[~2025-01-28 13:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 14:13 [PATCH 0/4] " Yury Khrustalev
2025-01-23 14:13 ` [PATCH 1/4] aarch64: " Yury Khrustalev
2025-01-27 20:47 ` Adhemerval Zanella Netto
2025-01-28 10:08 ` Yury Khrustalev
2025-01-28 11:49 ` Adhemerval Zanella Netto
2025-01-28 13:23 ` Yury Khrustalev [this message]
2025-01-28 14:28 ` Adhemerval Zanella Netto
2025-01-29 9:56 ` Yury Khrustalev
2025-01-23 14:13 ` [PATCH 2/4] aarch64: Add GCS tests for transitive dependencies Yury Khrustalev
2025-01-23 14:14 ` [PATCH 3/4] aarch64: Add GCS tests for dlopen Yury Khrustalev
2025-01-23 14:14 ` [PATCH 4/4] aarch64: Add GCS test with signal handler Yury Khrustalev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z5jaOgKUZSe-SSc9@arm.com \
--to=yury.khrustalev@arm.com \
--cc=adhemerval.zanella@linaro.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).