diff mbox series

[RFC,v2,18/22] aarch64: Use l_searchlist.r_list for gcs

Message ID 20241018100007.2955633-1-yury.khrustalev@arm.com
State New
Headers show
Series aarch64: Add support for Guarded Control Stack extension | expand

Commit Message

Yury Khrustalev Oct. 18, 2024, 10 a.m. UTC
From: Szabolcs Nagy <szabolcs.nagy@arm.com>

Allows using the same function for static exe.
---
 sysdeps/aarch64/dl-gcs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sysdeps/aarch64/dl-gcs.c b/sysdeps/aarch64/dl-gcs.c
index a92deb54b5..764b8a56e9 100644
--- a/sysdeps/aarch64/dl-gcs.c
+++ b/sysdeps/aarch64/dl-gcs.c
@@ -55,5 +55,5 @@  _dl_gcs_check (struct link_map *l, const char *program)
 
   check_gcs (l, program);
   for (unsigned int i = 0; i < l->l_searchlist.r_nlist; i++)
-    check_gcs (l->l_initfini[i], program);
+    check_gcs (l->l_searchlist.r_list[i], program);
 }