mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
aarch64: Use l_searchlist.r_list for bti
Allows using the same function for static exe. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
This commit is contained in:
parent
76b79f7241
commit
8d516b6f85
1 changed files with 2 additions and 3 deletions
|
@ -84,10 +84,9 @@ _dl_bti_check (struct link_map *l, const char *program)
|
|||
if (l->l_mach.bti_fail)
|
||||
bti_failed (l, program);
|
||||
|
||||
unsigned int i = l->l_searchlist.r_nlist;
|
||||
while (i-- > 0)
|
||||
for (unsigned int i = 0; i < l->l_searchlist.r_nlist; i++)
|
||||
{
|
||||
struct link_map *dep = l->l_initfini[i];
|
||||
struct link_map *dep = l->l_searchlist.r_list[i];
|
||||
if (dep->l_mach.bti_fail)
|
||||
bti_failed (dep, program);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue