source: branches/libc-0.6/src/binutils/include/aout/aoutemx.h

Last change on this file was 2002, checked in by bird, 20 years ago

N_EXP - EMX extension for export declarations.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 861 bytes
Line 
1/* traditional EMX a.out format differences for i386 running OS/2 or DOS */
2
3#define SEGMENT_SIZE 0x10000
4
5#define N_HEADER_IN_TEXT(x) 0
6
7#define N_TXTSIZE(x) ((x).a_text)
8#define N_TXTOFF(x) \
9 (N_MAGIC(x) != ZMAGIC ? EXEC_BYTES_SIZE : /* object file or NMAGIC */\
10 0x400 + (x).a_hdrofs \
11 )
12
13#define N_DATOFF(x) (N_TXTOFF(x) + N_TXTSIZE(x))
14
15/* Address of text segment in memory after it is loaded. */
16#define N_TXTADDR(x) \
17 (N_MAGIC(x) != ZMAGIC ? 0 : SEGMENT_SIZE)
18#define N_DATADDR(x) \
19 (N_MAGIC(x) == OMAGIC ? \
20 (N_TXTADDR (x) + (x).a_text) : \
21 ((N_TXTADDR(x) + (x).a_text + SEGMENT_SIZE - 1) & ~(SEGMENT_SIZE - 1)))
22
23/* EMX-specific symbols. */
24#define N_IMP1 0x68 /* Import reference (emx specific) */
25#define N_IMP2 0x6a /* Import definition (emx specific) */
26#define N_EXP 0x6c /* Export definition (emx specific) */
Note: See TracBrowser for help on using the repository browser.