Re: [PATCH, libbacktrace] Find executable on ia64 and 64-bit hppa hpux

2012-12-11 Thread Ian Lance Taylor
On Sun, Dec 9, 2012 at 11:57 AM, John David Anglin wrote: > > #ifndef HAVE_GETEXECNAME > +#if defined(__hpux) && (defined(__ia64) || defined(_LP64)) > +#include > +#define getexecname getexecname_hpux > + > +static char * > +getexecname_hpux (void) > +{ > + struct load_module_desc desc; > + > +

[PATCH, libbacktrace] Find executable on ia64 and 64-bit hppa hpux

2012-12-09 Thread John David Anglin
The getexecname function is not availble on HP-UX. This patch provides an alternative techique to obtain the executable path on HP-UX ELF targets. These have the dlget and dlgetname calls. I believe that this requires the dld.sl library be linked with the application which is the normal case. Wi