criu/compel/test/infect
Igor Svilenkov Bozic 92e6e523b5 compel: gcs: add opt-in GCS test support for AArch64
Introduce an opt-in mode for building and running compel tests
with Guarded Control Stack (GCS) enabled on AArch64.

Changes:
 - Extend compel/test/infect to support `GCS_ENABLE=1` builds,
   adding `-mbranch-protection=standard` and
   `-z experimental-gcs=check` to CFLAGS/LDFLAGS.
 - Export required GLIBC_TUNABLES at runtime via `TEST_ENV`.

Usage:
    make -C compel/test/infect GCS_ENABLE=1
    make -C compel/test/infect GCS_ENABLE=1 run

By default (`GCS_ENABLE` unset or 0), builds and runs are unchanged.

Signed-off-by: Igor Svilenkov Bozic <svilenkov@gmail.com>
2025-12-07 19:20:00 +01:00
..
.gitignore compel: Simple infection test 2017-03-15 00:06:14 +03:00
Makefile compel: gcs: add opt-in GCS test support for AArch64 2025-12-07 19:20:00 +01:00
parasite.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
spy.c compel: gcs: add opt-in GCS test support for AArch64 2025-12-07 19:20:00 +01:00
victim.c compel/test: fix "infect" test compilation errors 2017-09-21 01:00:23 +03:00