OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [gdb-5.3/] [include/] [coff/] [i386.h] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* coff information for Intel 386/486.
2
 
3
   Copyright 2001 Free Software Foundation, Inc.
4
 
5
   This program is free software; you can redistribute it and/or modify
6
   it under the terms of the GNU General Public License as published by
7
   the Free Software Foundation; either version 2 of the License, or
8
   (at your option) any later version.
9
 
10
   This program is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
   GNU General Public License for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with this program; if not, write to the Free Software
17
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
18
 
19
#define L_LNNO_SIZE 2
20
#define INCLUDE_COMDAT_FIELDS_IN_AUXENT
21
#include "coff/external.h"
22
 
23
/* Bits for f_flags:
24
        F_RELFLG        relocation info stripped from file
25
        F_EXEC          file is executable (no unresolved external references)
26
        F_LNNO          line numbers stripped from file
27
        F_LSYMS         local symbols stripped from file
28
        F_AR32WR        file has byte ordering of an AR32WR machine (e.g. vax).  */
29
 
30
#define F_RELFLG        (0x0001)
31
#define F_EXEC          (0x0002)
32
#define F_LNNO          (0x0004)
33
#define F_LSYMS         (0x0008)
34
 
35
#define I386MAGIC       0x14c
36
#define I386PTXMAGIC    0x154
37
#define I386AIXMAGIC    0x175
38
 
39
/* This is Lynx's all-platform magic number for executables. */
40
 
41
#define LYNXCOFFMAGIC   0415
42
 
43
#define I386BADMAG(x) (  ((x).f_magic != I386MAGIC) \
44
                       && (x).f_magic != I386AIXMAGIC \
45
                       && (x).f_magic != I386PTXMAGIC \
46
                       && (x).f_magic != LYNXCOFFMAGIC)
47
 
48
#define OMAGIC          0404    /* object files, eg as output */
49
#define ZMAGIC          0413    /* demand load format, eg normal ld output */
50
#define STMAGIC         0401    /* target shlib */
51
#define SHMAGIC         0443    /* host   shlib */
52
 
53
/* define some NT default values */
54
/*  #define NT_IMAGE_BASE        0x400000 moved to internal.h */
55
#define NT_SECTION_ALIGNMENT 0x1000
56
#define NT_FILE_ALIGNMENT    0x200
57
#define NT_DEF_RESERVE       0x100000
58
#define NT_DEF_COMMIT        0x1000
59
 
60
/********************** RELOCATION DIRECTIVES **********************/
61
 
62
struct external_reloc
63
{
64
  char r_vaddr[4];
65
  char r_symndx[4];
66
  char r_type[2];
67
};
68
 
69
#define RELOC struct external_reloc
70
#define RELSZ 10
71
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.