Back to index

cell-binutils  2.17cvs20070401
Classes | Defines
hp300hpux.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hp300hpux_exec_bytes
struct  hp300hpux_nlist_bytes
struct  hp300hpux_reloc
struct  hp300hpux_header_extension

Defines

#define EXEC_BYTES_SIZE   64
#define EXTERNAL_NLIST_SIZE   10
#define EXTERNAL_EXTENSION_HEADER_SIZE   (16*4)
#define HPUX_DOT_O_MAGIC   0x106
#define OMAGIC   0x107 /* object file or impure executable. */
#define NMAGIC   0x108 /* Code indicating pure executable. */
#define ZMAGIC   0x10B /* demand-paged executable. */
#define N_HEADER_IN_TEXT(x)   0
#define HP98x6_ID   0x0A
#define HP9000S200_ID   0x0C
#define N_BADMAG(x)   ((_N_BADMAG (x)) || (_N_BADMACH (x)))
#define N_DATADDR(x)
#define _N_BADMACH(x)   (((N_MACHTYPE (x)) != HP9000S200_ID) && ((N_MACHTYPE (x)) != HP98x6_ID))
#define _N_BADMAG(x)
#define _N_HDROFF(x)   (SEGMENT_SIZE - (sizeof (struct exec)))
#define N_DATOFF(x)   ( N_TXTOFF(x) + N_TXTSIZE(x) )
#define N_PASOFF(x)   ( N_DATOFF(x) + (x).a_data)
#define N_SYMOFF(x)   ( N_PASOFF(x) /* + (x).a_passize*/ )
#define N_SUPOFF(x)   ( N_SYMOFF(x) + (x).a_syms )
#define N_TRELOFF(x)   ( N_SUPOFF(x) /* + 0 (x).a_supsize*/ )
#define N_DRELOFF(x)   ( N_TRELOFF(x) + (x).a_trsize )
#define N_EXTHOFF(x)   ( N_DRELOFF(x) /* + 0 (x).a_drsize */)
#define N_STROFF(x)   ( 0 /* no string table */ )
#define N_GNU_TRELOFF(x)   (N_DATOFF(x) + (x).a_data)
#define N_GNU_DRELOFF(x)   (N_GNU_TRELOFF(x) + (x).a_trsize)
#define N_GNU_SYMOFF(x)   (N_GNU_DRELOFF(x) + (x).a_drsize)
#define TARGET_PAGE_SIZE   0x1000
#define SEGMENT_SIZE   0x1000
#define TEXT_START_ADDR   0
#define N_SHARED_LIB(x)   ( 0 /* no shared libraries */ )

Class Documentation

struct hp300hpux_exec_bytes

Definition at line 4 of file hp300hpux.h.

Class Members
unsigned char e_bss
unsigned char e_data
unsigned char e_drelocs
unsigned char e_drsize
unsigned char e_entry
unsigned char e_extension
unsigned char e_info
unsigned char e_passize
unsigned char e_spare1
unsigned char e_spare2
unsigned char e_spare5
unsigned char e_spare6
unsigned char e_supsize
unsigned char e_syms
unsigned char e_text
unsigned char e_trsize
struct hp300hpux_nlist_bytes

Definition at line 25 of file hp300hpux.h.

Class Members
unsigned char e_almod
unsigned char e_length
unsigned char e_shlib
unsigned char e_type
unsigned char e_value
struct hp300hpux_reloc

Definition at line 35 of file hp300hpux.h.

Class Members
unsigned char r_address
unsigned char r_index
unsigned char r_length
unsigned char r_type
struct hp300hpux_header_extension

Definition at line 43 of file hp300hpux.h.

Class Members
unsigned char e_extension
unsigned char e_header
unsigned char e_size
unsigned char e_syms
unsigned char e_version
unsigned char unique_headers

Define Documentation

#define _N_BADMACH (   x)    (((N_MACHTYPE (x)) != HP9000S200_ID) && ((N_MACHTYPE (x)) != HP98x6_ID))

Definition at line 81 of file hp300hpux.h.

#define _N_BADMAG (   x)
Value:
(N_MAGIC(x) != HPUX_DOT_O_MAGIC \
                        && N_MAGIC(x) != OMAGIC         \
                     && N_MAGIC(x) != NMAGIC            \
                     && N_MAGIC(x) != ZMAGIC )

Definition at line 84 of file hp300hpux.h.

#define _N_HDROFF (   x)    (SEGMENT_SIZE - (sizeof (struct exec)))

Definition at line 90 of file hp300hpux.h.

#define EXEC_BYTES_SIZE   64

Definition at line 23 of file hp300hpux.h.

#define EXTERNAL_EXTENSION_HEADER_SIZE   (16*4)

Definition at line 52 of file hp300hpux.h.

#define EXTERNAL_NLIST_SIZE   10

Definition at line 33 of file hp300hpux.h.

#define HP9000S200_ID   0x0C

Definition at line 71 of file hp300hpux.h.

#define HP98x6_ID   0x0A

Definition at line 70 of file hp300hpux.h.

#define HPUX_DOT_O_MAGIC   0x106

Definition at line 59 of file hp300hpux.h.

#define N_BADMAG (   x)    ((_N_BADMAG (x)) || (_N_BADMACH (x)))

Definition at line 73 of file hp300hpux.h.

#define N_DATADDR (   x)
Value:
((N_MAGIC (x) == OMAGIC || N_MAGIC (x) == HPUX_DOT_O_MAGIC)           \
   ? (N_TXTADDR (x) + N_TXTSIZE (x))                                  \
   : (N_SEGSIZE (x) + ((N_TXTADDR (x) + N_TXTSIZE (x) - 1)            \
                     & ~ (bfd_vma) (N_SEGSIZE (x) - 1))))

Definition at line 75 of file hp300hpux.h.

#define N_DATOFF (   x)    ( N_TXTOFF(x) + N_TXTSIZE(x) )

Definition at line 100 of file hp300hpux.h.

#define N_DRELOFF (   x)    ( N_TRELOFF(x) + (x).a_trsize )

Definition at line 105 of file hp300hpux.h.

#define N_EXTHOFF (   x)    ( N_DRELOFF(x) /* + 0 (x).a_drsize */)

Definition at line 106 of file hp300hpux.h.

#define N_GNU_DRELOFF (   x)    (N_GNU_TRELOFF(x) + (x).a_trsize)

Definition at line 111 of file hp300hpux.h.

#define N_GNU_SYMOFF (   x)    (N_GNU_DRELOFF(x) + (x).a_drsize)

Definition at line 112 of file hp300hpux.h.

#define N_GNU_TRELOFF (   x)    (N_DATOFF(x) + (x).a_data)

Definition at line 110 of file hp300hpux.h.

#define N_HEADER_IN_TEXT (   x)    0

Definition at line 64 of file hp300hpux.h.

#define N_PASOFF (   x)    ( N_DATOFF(x) + (x).a_data)

Definition at line 101 of file hp300hpux.h.

#define N_SHARED_LIB (   x)    ( 0 /* no shared libraries */ )

Definition at line 119 of file hp300hpux.h.

#define N_STROFF (   x)    ( 0 /* no string table */ )

Definition at line 107 of file hp300hpux.h.

#define N_SUPOFF (   x)    ( N_SYMOFF(x) + (x).a_syms )

Definition at line 103 of file hp300hpux.h.

#define N_SYMOFF (   x)    ( N_PASOFF(x) /* + (x).a_passize*/ )

Definition at line 102 of file hp300hpux.h.

#define N_TRELOFF (   x)    ( N_SUPOFF(x) /* + 0 (x).a_supsize*/ )

Definition at line 104 of file hp300hpux.h.

#define NMAGIC   0x108 /* Code indicating pure executable. */

Definition at line 61 of file hp300hpux.h.

#define OMAGIC   0x107 /* object file or impure executable. */

Definition at line 60 of file hp300hpux.h.

#define SEGMENT_SIZE   0x1000

Definition at line 115 of file hp300hpux.h.

#define TARGET_PAGE_SIZE   0x1000

Definition at line 114 of file hp300hpux.h.

#define TEXT_START_ADDR   0

Definition at line 116 of file hp300hpux.h.

#define ZMAGIC   0x10B /* demand-paged executable. */

Definition at line 62 of file hp300hpux.h.