aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-03-08 20:42:00 +0000
committerKen Raeburn <raeburn@cygnus>1993-03-08 20:42:00 +0000
commit155171dee570f3c9c7f40ae2f312fbdd5840374f (patch)
treedd22c863794c040a8451f9f310397f0634747967 /bfd
parent795308d6ecc68281f5dd8507fcbbc0462be4a585 (diff)
downloadgdb-155171dee570f3c9c7f40ae2f312fbdd5840374f.zip
gdb-155171dee570f3c9c7f40ae2f312fbdd5840374f.tar.gz
gdb-155171dee570f3c9c7f40ae2f312fbdd5840374f.tar.bz2
from Noah Friedman: define some needed macros if hpux version < 8
Diffstat (limited to 'bfd')
-rw-r--r--bfd/hppa.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/bfd/hppa.c b/bfd/hppa.c
index 33ac2ac..19a2370 100644
--- a/bfd/hppa.c
+++ b/bfd/hppa.c
@@ -38,6 +38,29 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/file.h>
#include <errno.h>
+/* Magic not defined in standard HP-UX header files until 8.0 */
+
+#ifndef CPU_PA_RISC1_0
+#define CPU_PA_RISC1_0 0x20B
+#endif /* CPU_PA_RISC1_0 */
+#ifndef CPU_PA_RISC1_1
+#define CPU_PA_RISC1_1 0x210
+#endif /* CPU_PA_RISC1_1 */
+#ifndef _PA_RISC1_0_ID
+#define _PA_RISC1_0_ID CPU_PA_RISC1_0
+#endif /* _PA_RISC1_0_ID */
+#ifndef _PA_RISC1_1_ID
+#define _PA_RISC1_1_ID CPU_PA_RISC1_1
+#endif /* _PA_RISC1_1_ID */
+#ifndef _PA_RISC_MAXID
+#define _PA_RISC_MAXID 0x2FF
+#endif /* _PA_RISC_MAXID */
+#ifndef _PA_RISC_ID
+#define _PA_RISC_ID(__m_num) \
+ (((__m_num) == _PA_RISC1_0_ID) || \
+ ((__m_num) >= _PA_RISC1_1_ID && (__m_num) <= _PA_RISC_MAXID))
+#endif /* _PA_RISC_ID */
+
struct container {
struct header f;
struct som_exec_auxhdr e;