45f7069a0b0fec1012b7b4be4763d4347ab2a8b7
1 /* ARM ELF support for BFD.
2 Copyright (C) 1998 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 2 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 Foundation,
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
23 #include "elf/reloc-macros.h"
25 /* Processor specific flags for the ELF header e_flags field. */
26 #define EF_ARM_RELEXEC 0x01
27 #define EF_ARM_HASENTRY 0x02
29 /* ARM-specific values for sh_flags */
30 #define SHF_ENTRYSECT 0x10000000 /* Section contains an entry point */
31 #define SHF_COMDEF 0x80000000 /* Section may be multiply defined in the input to a link step */
33 /* ARM-specific program header flags */
34 #define PF_ARM_SB 0x10000000 /* Segment contains the location addressed by the static base */
36 /* Relocation types. */
37 START_RELOC_NUMBERS (elf_arm_reloc_type
)
38 RELOC_NUMBER (R_ARM_NONE
, 0)
39 RELOC_NUMBER (R_ARM_PC24
, 1)
40 RELOC_NUMBER (R_ARM_ABS32
, 2)
41 RELOC_NUMBER (R_ARM_REL32
, 3)
42 RELOC_NUMBER (R_ARM_ABS8
, 4)
43 RELOC_NUMBER (R_ARM_ABS16
, 5)
44 RELOC_NUMBER (R_ARM_ABS12
, 6)
45 RELOC_NUMBER (R_ARM_THM_ABS5
, 7)
46 RELOC_NUMBER (R_ARM_THM_PC22
, 8)
47 RELOC_NUMBER (R_ARM_SBREL32
, 9)
48 RELOC_NUMBER (R_ARM_AMP_VCALL9
, 10)
49 RELOC_NUMBER (R_ARM_THM_PC11
, 11) /* cygnus extension to abi: thumb unconditional branch */
50 RELOC_NUMBER (R_ARM_THM_PC9
, 12) /* cygnus extension to abi: thumb conditional branch */
51 FAKE_RELOC (FIRST_INVALID_RELOC
, 13)
52 FAKE_RELOC (LAST_INVALID_RELOC
, 249)
53 RELOC_NUMBER (R_ARM_RSBREL32
, 250)
54 RELOC_NUMBER (R_ARM_THM_RPC22
, 251)
55 RELOC_NUMBER (R_ARM_RREL32
, 252)
56 RELOC_NUMBER (R_ARM_RABS32
, 253)
57 RELOC_NUMBER (R_ARM_RPC24
, 254)
58 RELOC_NUMBER (R_ARM_RBASE
, 255)
This page took 0.034902 seconds and 4 git commands to generate.