mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 12:48:33 -10:00
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:
1 parent
8f8b8e4af9
commit
0628c252bd
2 files changed
+2
-6
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user