diff options
author | Elliott Hughes <enh@google.com> | 2019-06-05 08:28:55 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2019-06-05 08:28:55 -0700 |
commit | 8e4b6b695ef3d5855ccba9c23b24375f9da40e6c (patch) | |
tree | 163bba7a4469825733c8f89bf98836fef420da4b /android-changes-for-ndk-developers.md | |
parent | 6cfd9a10711e1c1719af4ad358f891b2e794d56e (diff) |
[PATCH] Document the LD_PRELOAD workaround.
Bug: N/A
Test: N/A
Change-Id: Ifbc6eb3c7f77e3f2e5a29b505b982880d96c5ab0
Diffstat (limited to 'android-changes-for-ndk-developers.md')
-rw-r--r-- | android-changes-for-ndk-developers.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android-changes-for-ndk-developers.md b/android-changes-for-ndk-developers.md index 1fdb1e48f..4bd97a0fe 100644 --- a/android-changes-for-ndk-developers.md +++ b/android-changes-for-ndk-developers.md @@ -66,6 +66,14 @@ the local group. This allows ASAN, for example, to ensure that it can intercept any symbol. +## LD_PRELOAD and 32/64 bit + +LD_PRELOAD applies to both 32- and 64-bit processes. This means that you +should avoid saying something like `/system/lib/libfoo.so` and just say +`libfoo.so` instead, letting the dynamic linker find the correct library +on its search path. + + ## RTLD_LOCAL (Available in API level >= 23) The dlopen(3) RTLD_LOCAL flag used to be ignored but is implemented |