From cb02a617fbd9591e4c78d3f9e5135e499a4dca30 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 28 Dec 2023 18:32:02 +0000 Subject: aarch64: Use l_searchlist.r_list for gcs Allows using the same function for static exe. TODO: not clear if the two are always equivalent other than the ordering and in case of static linking when dl-support.c leaves l_initfini NULL. --- sysdeps/aarch64/dl-gcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/aarch64/dl-gcs.c b/sysdeps/aarch64/dl-gcs.c index a92deb5..764b8a5 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); } -- cgit v1.1