| 1 | /* i370 ELF support for BFD.
|
|---|
| 2 | Copyright 2000, 2002 Free Software Foundation, Inc.
|
|---|
| 3 |
|
|---|
| 4 | This file is part of BFD, the Binary File Descriptor library.
|
|---|
| 5 |
|
|---|
| 6 | This program is free software; you can redistribute it and/or modify
|
|---|
| 7 | it under the terms of the GNU General Public License as published by
|
|---|
| 8 | the Free Software Foundation; either version 2 of the License, or
|
|---|
| 9 | (at your option) any later version.
|
|---|
| 10 |
|
|---|
| 11 | This program is distributed in the hope that it will be useful,
|
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 14 | GNU General Public License for more details.
|
|---|
| 15 |
|
|---|
| 16 | You should have received a copy of the GNU General Public License
|
|---|
| 17 | along with this program; if not, write to the Free Software
|
|---|
| 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|---|
| 19 |
|
|---|
| 20 | /* This file holds definitions specific to the i370 ELF ABI. Note
|
|---|
| 21 | that most of this is not actually implemented by BFD. */
|
|---|
| 22 |
|
|---|
| 23 | #ifndef _ELF_I370_H
|
|---|
| 24 | #define _ELF_I370_H
|
|---|
| 25 |
|
|---|
| 26 | #include "elf/reloc-macros.h"
|
|---|
| 27 |
|
|---|
| 28 | /* Processor specific section headers, sh_type field */
|
|---|
| 29 |
|
|---|
| 30 | #define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \
|
|---|
| 31 | entries in this section \
|
|---|
| 32 | based on the address \
|
|---|
| 33 | specified in the associated \
|
|---|
| 34 | symbol table entry. */
|
|---|
| 35 |
|
|---|
| 36 | #define EF_I370_RELOCATABLE 0x00010000 /* i370 -mrelocatable flag */
|
|---|
| 37 | #define EF_I370_RELOCATABLE_LIB 0x00008000 /* i370 -mrelocatable-lib flag */
|
|---|
| 38 | /* Processor specific section flags, sh_flags field */
|
|---|
| 39 |
|
|---|
| 40 | #define SHF_EXCLUDE 0x80000000 /* Link editor is to exclude \
|
|---|
| 41 | this section from executable \
|
|---|
| 42 | and shared objects that it \
|
|---|
| 43 | builds when those objects \
|
|---|
| 44 | are not to be furhter \
|
|---|
| 45 | relocated. */
|
|---|
| 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 */
|
|---|