* hppa.c (_PA_RISC_ID): Defined if not already defined (e.g., for
hpux 7). Patch from friedman@gnu.ai.mit.edu.
+ (hppa_object_p): Only check for DL_MAGIC and SHL_MAGIC if they're
+ defined, which they aren't in hpux 7.0.
* aix386-core.c: Include uinfo.h and coredump.h. Patch from Minh
Tran-Le, tranle@intellicorp.com.
#include <sys/user.h> /* After a.out.h */
#include <sys/file.h>
#include <errno.h>
-
+
/* Magic not defined in standard HP-UX header files until 8.0 */
#ifndef CPU_PA_RISC1_0
case EXEC_MAGIC:
case SHARE_MAGIC:
case DEMAND_MAGIC:
+#ifdef DL_MAGIC
case DL_MAGIC:
+#endif
+#ifdef SHL_MAGIC
case SHL_MAGIC:
+#endif
break;
default:
bfd_error = wrong_format;