]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: Enable GCS in dynamic linked exe
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 14 Jul 2023 14:49:11 +0000 (15:49 +0100)
committerYury Khrustalev <yury.khrustalev@arm.com>
Mon, 20 Jan 2025 09:31:47 +0000 (09:31 +0000)
commit01f52b11ded15a1c0214692c707f1ddee1f4179f
tree5a9ef70999c4c7afe2b692254e42a94bdfb2e013
parentb81ee54bc90521f10c2ea07f746859377653ec28
aarch64: Enable GCS in dynamic linked exe

Use the dynamic linker start code to enable GCS in the dynamic linked
case after _dl_start returns and before _dl_start_user which marks
the point after which user code may run.

Like in the static linked case this ensures that GCS is enabled on a
top level stack frame.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/aarch64/Makefile
sysdeps/aarch64/dl-gcs.c [new file with mode: 0644]
sysdeps/aarch64/dl-start.S
sysdeps/aarch64/rtld-global-offsets.sym