1 |
/* i370 ELF support for BFD. |
/* i370 ELF support for BFD. |
2 |
Copyright 2000 Free Software Foundation, Inc. |
Copyright 2000, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of BFD, the Binary File Descriptor library. |
This file is part of BFD, the Binary File Descriptor library. |
5 |
|
|
23 |
#ifndef _ELF_I370_H |
#ifndef _ELF_I370_H |
24 |
#define _ELF_I370_H |
#define _ELF_I370_H |
25 |
|
|
26 |
|
#include "elf/reloc-macros.h" |
27 |
|
|
28 |
/* Processor specific section headers, sh_type field */ |
/* Processor specific section headers, sh_type field */ |
29 |
|
|
30 |
#define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \ |
#define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \ |
43 |
builds when those objects \ |
builds when those objects \ |
44 |
are not to be furhter \ |
are not to be furhter \ |
45 |
relocated. */ |
relocated. */ |
|
#endif /* _ELF_I370_H */ |
|
46 |
|
|
47 |
|
/* i370 relocations |
48 |
|
Note that there is really just one relocation that we currently |
49 |
|
support (and only one that we seem to need, at the moment), and |
50 |
|
that is the 31-bit address relocation. Note that the 370/390 |
51 |
|
only supports a 31-bit (2GB) address space. */ |
52 |
|
|
53 |
|
START_RELOC_NUMBERS (i370_reloc_type) |
54 |
|
RELOC_NUMBER (R_I370_NONE, 0) |
55 |
|
RELOC_NUMBER (R_I370_ADDR31, 1) |
56 |
|
RELOC_NUMBER (R_I370_ADDR32, 2) |
57 |
|
RELOC_NUMBER (R_I370_ADDR16, 3) |
58 |
|
RELOC_NUMBER (R_I370_REL31, 4) |
59 |
|
RELOC_NUMBER (R_I370_REL32, 5) |
60 |
|
RELOC_NUMBER (R_I370_ADDR12, 6) |
61 |
|
RELOC_NUMBER (R_I370_REL12, 7) |
62 |
|
RELOC_NUMBER (R_I370_ADDR8, 8) |
63 |
|
RELOC_NUMBER (R_I370_REL8, 9) |
64 |
|
RELOC_NUMBER (R_I370_COPY, 10) |
65 |
|
RELOC_NUMBER (R_I370_RELATIVE, 11) |
66 |
|
END_RELOC_NUMBERS (R_I370_max) |
67 |
|
|
68 |
|
#endif /* _ELF_I370_H */ |