rtld: fix powerpc build

In arch_fix_auxv(), remove local variable shadowing the argument,
remove write-only variable, and declare the loop variable.
The wrong patch was committed after series of local reverts and
re-apply.

Fixes:	b2b3d2a962
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov
2025-11-24 10:44:52 +02:00
parent 8f8b8e4af9
commit 0628c252bd
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -844,10 +844,8 @@ __tls_get_addr(tls_index* ti)
void
arch_fix_auxv(Elf_Auxinfo *aux, Elf_Auxinfo *aux_info[])
{
Elf_Auxinfo *aux;
bool old_auxv_format;
Elf_Auxinfo *auxp;
old_auxv_format = true;
for (auxp = aux; auxp->a_type != AT_NULL; auxp++) {
if (auxp->a_type == 23) /* AT_STACKPROT */
return;
+1 -3
View File
@@ -741,10 +741,8 @@ __tls_get_addr(tls_index* ti)
void
arch_fix_auxv(Elf_Auxinfo *aux, Elf_Auxinfo *aux_info[])
{
Elf_Auxinfo *aux;
bool old_auxv_format;
Elf_Auxinfo *auxp;
old_auxv_format = true;
for (auxp = aux; auxp->a_type != AT_NULL; auxp++) {
if (auxp->a_type == 23) /* AT_STACKPROT */
return;