summaryrefslogtreecommitdiffstats
path: root/libc/bionic/getauxval.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-02-10 17:46:57 -0800
committerElliott Hughes <enh@google.com>2014-02-10 18:22:24 -0800
commit0266ae5f884d72da58f33a072e865ba131234a5e (patch)
tree48763b706806f544b1dec0ef98261bed6f21dee2 /libc/bionic/getauxval.cpp
parenteeb9a9f59a58a2f042e8f6fd1a4911ae92ac5493 (diff)
downloadbionic-0266ae5f884d72da58f33a072e865ba131234a5e.zip
bionic-0266ae5f884d72da58f33a072e865ba131234a5e.tar.gz
bionic-0266ae5f884d72da58f33a072e865ba131234a5e.tar.bz2
Switch <elf.h> over to linux uapi under the covers.
Remove the linker's reliance on BSD cruft and use the glibc-style ElfW macro. (Other code too, but the linker contains the majority of the code that needs to work for Elf32 and Elf64.) All platforms need dl_iterate_phdr_static, so it doesn't make sense to have that part of the per-architecture configuration. Bug: 12476126 Change-Id: I1d7f918f1303a392794a6cd8b3512ff56bd6e487
Diffstat (limited to 'libc/bionic/getauxval.cpp')
-rw-r--r--libc/bionic/getauxval.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/getauxval.cpp b/libc/bionic/getauxval.cpp
index 3ee31d6..bc41824 100644
--- a/libc/bionic/getauxval.cpp
+++ b/libc/bionic/getauxval.cpp
@@ -32,10 +32,10 @@
#include <private/bionic_auxv.h>
#include <elf.h>
-__LIBC_HIDDEN__ Elf_auxv_t* __libc_auxv = NULL;
+__LIBC_HIDDEN__ ElfW(auxv_t)* __libc_auxv = NULL;
extern "C" unsigned long int getauxval(unsigned long int type) {
- for (Elf_auxv_t* v = __libc_auxv; v->a_type != AT_NULL; ++v) {
+ for (ElfW(auxv_t)* v = __libc_auxv; v->a_type != AT_NULL; ++v) {
if (v->a_type == type) {
return v->a_un.a_val;
}