On Thu, Aug 9, 2012 at 4:01 PM, H.J. Lu <hjl.to...@gmail.com> wrote: > 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. > > That is a good idea. Pavel, can you look into it?
You may find libiberty/simple-object-elf.c to be a useful guide. Ian