diff options
author | Ryan Prichard <rprichard@google.com> | 2018-11-22 02:14:14 -0800 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2018-12-03 17:14:44 -0800 |
commit | bdab4a2b97c53af0205788875342ec08e6901376 (patch) | |
tree | aa29800de70e017c2f1511146b49c82c3154719c /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 39bc44bb0e03514e8d92f8c0ceb0b5901e27a485 (diff) |
Use shared globals so getauxval works earlier
Make getauxval() work in .preinit_array. It still won't be usable for
ifuncs unless we can guarantee that the __loader_shared_globals relocation
is resolved before the ifunc calls [__bionic_]getauxval.
Define __bionic_getauxval for use in replacing calls to
KernelArgumentBlock::getauxval, which doesn't (and sometimes isn't allowed
to) access TLS variables like errno.
Bug: http://b/25751302
Test: bionic unit tests
Change-Id: I461feeaed7f43cfa2a2b6c34147194f0df82b516
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions