* Copyright (c) 1991 The Regents of the University of California.
* %sccs.include.redist.c%
* @(#)a.out.h 5.9 (Berkeley) %G%
/* Valid magic number check. */
((ex).a_magic != NMAGIC && (ex).a_magic != OMAGIC && \
/* Address of the bottom of the text segment. */
/* Address of the bottom of the data segment. */
(N_TXTADDR(ex) + ((ex).a_magic == OMAGIC ? (ex).a_text \
: __LDPGSZ + ((ex).a_text - 1 & ~(__LDPGSZ - 1))))
/* Text segment offset. */
((ex).a_magic == ZMAGIC ? __LDPGSZ : sizeof(struct exec))
/* Data segment offset. */
(N_TXTOFF(ex) + ((ex).a_magic != ZMAGIC ? (ex).a_text : \
__LDPGSZ + ((ex).a_text - 1 & ~(__LDPGSZ - 1))))
/* Symbol table offset. */
(N_TXTOFF(ex) + (ex).a_text + (ex).a_data + (ex).a_trsize + \
/* String table offset. */
#define N_STROFF(ex) (N_SYMOFF(ex) + (ex).a_syms)
int r_address
; /* offset in text or data segment */
unsigned int r_symbolnum
: 24, /* ordinal number of add symbol */
r_pcrel
: 1, /* 1 if value should be pc-relative */
r_length
: 2, /* log base 2 of value's width */
r_extern
: 1, /* 1 if need to add symbol to value */
#define N_TXTADDR(X) 0x400000