From 0093d9e67fc57f60a2ccd973551093a5de395c12 Mon Sep 17 00:00:00 2001 From: Ken Raeburn <raeburn@cygnus> Date: Mon, 8 Mar 1993 21:30:29 +0000 Subject: hppa.c: don't require DL_MAGIC, SHL_MAGIC, if they're not defined (hpux 7.0) --- bfd/ChangeLog | 2 ++ bfd/hppa.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index bb868c7..c9aae00 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -2,6 +2,8 @@ Mon Mar 8 14:55:13 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) * 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. diff --git a/bfd/hppa.c b/bfd/hppa.c index 19a2370..4a33c48 100644 --- a/bfd/hppa.c +++ b/bfd/hppa.c @@ -37,7 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #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 @@ -317,8 +317,12 @@ hppa_object_p (abfd) 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; -- cgit v1.1