Remove 32-bit assumptions from the ELF code.
Change-Id: I2c1f3d34c33685799aade8866eec44479ff9f963
This commit is contained in:
@@ -32,10 +32,10 @@
|
||||
#include <private/bionic_auxv.h>
|
||||
#include <elf.h>
|
||||
|
||||
__LIBC_HIDDEN__ Elf32_auxv_t* __libc_auxv = NULL;
|
||||
__LIBC_HIDDEN__ Elf_auxv_t* __libc_auxv = NULL;
|
||||
|
||||
extern "C" unsigned long int getauxval(unsigned long int type) {
|
||||
for (Elf32_auxv_t* v = __libc_auxv; v->a_type != AT_NULL; ++v) {
|
||||
for (Elf_auxv_t* v = __libc_auxv; v->a_type != AT_NULL; ++v) {
|
||||
if (v->a_type == type) {
|
||||
return v->a_un.a_val;
|
||||
}
|
||||
|
Reference in New Issue
Block a user