diff options
author | Torne (Richard Coles) <torne@google.com> | 2019-04-11 12:25:06 -0400 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2019-04-23 12:21:56 -0400 |
commit | ebfebd057a5a07d17108362aa0afa9a047cfe9ea (patch) | |
tree | 8870a748e85319d2d9870460ecdf33e2b0db0d7c /libc/malloc_debug/malloc_debug.cpp | |
parent | 5bab966ca807b95ca8be32a71cc7cecc36b62106 (diff) |
Only write main library's RELRO by default.
ANDROID_DLEXT_WRITE_RELRO was inadvertently writing out the RELRO
section of all libraries loaded during a given dlopen() call instead of
only the main library; since the other libraries are loaded at
unpredictable addresses this additional data is rarely useful.
Fix this to only happen when the
ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE flag is being used.
Bug: 128623590
Test: DlExtRelroSharingTest.CheckRelroSizes
Change-Id: I05e8651d06ce2de77b8c85fe2b6238f9c09691ad
(cherry picked from commit 5d10374947824c60d524e812172ae60f30a51fde)
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions