diff options
author | Richard Henderson <rth@twiddle.net> | 2012-05-20 10:34:00 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2012-05-20 10:40:35 -0700 |
commit | c7683a6d02f3ed59f5cd119b3e8547f45a15912f (patch) | |
tree | 029e73af4f78064dc5788972d5fc3a86fc70f1d6 /elf/dl-support.c | |
parent | a6f1845d45d0ea9303b3c71944c0a511e23bde26 (diff) | |
download | glibc-c7683a6d02f3ed59f5cd119b3e8547f45a15912f.tar.gz glibc-c7683a6d02f3ed59f5cd119b3e8547f45a15912f.tar.xz glibc-c7683a6d02f3ed59f5cd119b3e8547f45a15912f.zip |
Add <sys/auxv.h> and getauxval.
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r-- | elf/dl-support.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c index a0f2122071..2bb468a5fb 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -125,6 +125,7 @@ int _dl_debug_fd = STDERR_FILENO; int _dl_correct_cache_id = _DL_CACHE_DEFAULT_ID; +ElfW(auxv_t) *_dl_auxv; ElfW(Phdr) *_dl_phdr; size_t _dl_phnum; uint64_t _dl_hwcap __attribute__ ((nocommon)); @@ -187,6 +188,7 @@ _dl_aux_init (ElfW(auxv_t) *av) uid_t uid = 0; gid_t gid = 0; + _dl_auxv = av; for (; av->a_type != AT_NULL; ++av) switch (av->a_type) { |