Allow the use of SOURCE_DATE_EPOCH in the timestamps for members of static archives.
[binutils-gdb.git] / include / elf / i370.h
blob37a5caad964b91d001277188ad64718184380d3c
1 /* i370 ELF support for BFD.
2 Copyright (C) 2000-2023 Free Software Foundation, Inc.
4 This file is part of BFD, the Binary File Descriptor library.
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 3 of the License, or
9 (at your option) any later version.
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.
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., 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
21 /* This file holds definitions specific to the i370 ELF ABI. Note
22 that most of this is not actually implemented by BFD. */
24 #ifndef _ELF_I370_H
25 #define _ELF_I370_H
27 #include "elf/reloc-macros.h"
29 /* Processor specific section headers, sh_type field */
31 #define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \
32 entries in this section \
33 based on the address \
34 specified in the associated \
35 symbol table entry. */
37 #define EF_I370_RELOCATABLE 0x00010000 /* i370 -mrelocatable flag */
38 #define EF_I370_RELOCATABLE_LIB 0x00008000 /* i370 -mrelocatable-lib flag */
40 /* i370 relocations
41 Note that there is really just one relocation that we currently
42 support (and only one that we seem to need, at the moment), and
43 that is the 31-bit address relocation. Note that the 370/390
44 only supports a 31-bit (2GB) address space. */
46 START_RELOC_NUMBERS (i370_reloc_type)
47 RELOC_NUMBER (R_I370_NONE, 0)
48 RELOC_NUMBER (R_I370_ADDR31, 1)
49 RELOC_NUMBER (R_I370_ADDR32, 2)
50 RELOC_NUMBER (R_I370_ADDR16, 3)
51 RELOC_NUMBER (R_I370_REL31, 4)
52 RELOC_NUMBER (R_I370_REL32, 5)
53 RELOC_NUMBER (R_I370_ADDR12, 6)
54 RELOC_NUMBER (R_I370_REL12, 7)
55 RELOC_NUMBER (R_I370_ADDR8, 8)
56 RELOC_NUMBER (R_I370_REL8, 9)
57 RELOC_NUMBER (R_I370_COPY, 10)
58 RELOC_NUMBER (R_I370_RELATIVE, 11)
59 END_RELOC_NUMBERS (R_I370_max)
61 #endif /* _ELF_I370_H */