On Thu, Aug 9, 2012 at 3:17 PM, Ian Lance Taylor <i...@google.com> wrote: > On Thu, Aug 9, 2012 at 9:39 AM, H.J. Lu <hongjiu...@intel.com> wrote: >> >> Bionic C library doesn't provide link.h. > > Does Bionic provide dl_iterate_phdr? If it does, I'll just note in > passing that it would be straightforward to simply incorporate the > required types and constants in unwind-dw2-fde-dip.c directly, and > avoid the #include. If it doesn't, then of course nothing will make > this code work correctly. >
dl_iterate_phdr is provided in libdl.so, which is always linked with dynamic executables: #define ANDROID_LIB_SPEC \ "%{!static: -ldl}" This patch fixes Android/x86 build on trunk. OK to install? Thanks. -- H.J. ---- 2012-08-14 H.J. Lu <hongjiu...@intel.com> PR bootstrap/54209 * unwind-dw2-fde-dip.c (dl_phdr_info): New struct for Bionic C library. (ElfW): New macro for Bionic C library. Don't include <link.h> for Bionic C library.
gcc-pr54157.patch
Description: Binary data