]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: Add LD_PRELOAD tests for GCS handling
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Jan 2026 16:52:38 +0000 (13:52 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 14 Jan 2026 17:33:27 +0000 (14:33 -0300)
commite304c9cbf779ea49d6cd6e815c4e76fd4e727ef8
tree9392403735efb2519ea16570d6d976c9e5a23790
parentcc098e61b0421ce0c9e0709cca8427bff80bdbc3
aarch64: Add LD_PRELOAD tests for GCS handling

There are modeled after the 'shared' tests subset and it adds 4 new
tests:

1. tst-gcs-preload-disabled: checks if GCS is disabled when a LD_PRELOAD
   module is used without GCS marking with default GCS support.

2. tst-gcs-preload-enforced-abort: chekcs if loader aborts startup when
   a LD_PRELOAD is used without GCS marking and GCS is enforced.

3. tst-gcs-preload-optional: checks if GCS is disabled when a LD_PRELOAD
   is used without GCS marking and GCS is optional.

4. tst-gcs-preload-override: checks if GCS is enabled when a LD_PRELOAD
   is used without GCS marking and GCS is overrided.

Checked on aarch64-linux-gnu with Linux 6.18 on Apple M4 emulated (for
BTI support) and on qemu 10.1.50 simulated (for GCS).

Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>
Tested-by: Yury Khrustalev <yury.khrustalev@arm.com>
sysdeps/unix/sysv/linux/aarch64/Makefile
sysdeps/unix/sysv/linux/aarch64/tst-gcs-preload-disabled.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/aarch64/tst-gcs-preload-enforced-abort.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/aarch64/tst-gcs-preload-optional.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/aarch64/tst-gcs-preload-override.c [new file with mode: 0644]