| commit | 89301aa0457f4bc069498cac5366f17971034a2b | [log] [tgz] |
|---|---|---|
| author | Dan Albert <[email protected]> | Tue Jul 18 15:07:39 2017 -0700 |
| committer | Rahul Chaudhry <[email protected]> | Thu Aug 17 13:15:41 2017 -0700 |
| tree | ec22b6a66d333be85ed8e51264b13e2c83c1e21d | |
| parent | 85fafaf039799ebc8053bf36ce1c6e6df7adbbec [diff] |
Improve Windows dlfcn shims.
We can use GetLastError/FormatMessage to get a less useless error
message from dlerror.
Use LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR to search the loaded library's
directory to satisfy dependencies.
Test: toolchain/gcc/build.py --toolchain arm-linux-androideabi \
--host windows64
Bug: https://github.com/android-ndk/ndk/issues/313
This change is forward-port of c/438069
- https://android-review.googlesource.com/#/c/438069
to binutils-2_27-branch.
Change-Id: I66840280cdd7b4176a1ad02f022457bd0336d101