1 /* Arm specific symbolic name handling.
2 Copyright (C) 2002-2009 Red Hat, Inc.
3 This file is part of elfutils.
5 This file is free software; you can redistribute it and/or modify
6 it under the terms of either
8 * the GNU Lesser General Public License as published by the Free
9 Software Foundation; either version 3 of the License, or (at
10 your option) any later version
14 * the GNU General Public License as published by the Free
15 Software Foundation; either version 2 of the License, or (at
16 your option) any later version
18 or both in parallel, as here.
20 elfutils is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received copies of the GNU General Public License and
26 the GNU Lesser General Public License along with this program. If
27 not, see <http://www.gnu.org/licenses/>. */
37 #include "libebl_CPU.h"
41 arm_segment_type_name (int segment, char *buf __attribute__ ((unused)),
42 size_t len __attribute__ ((unused)))
52 /* Return symbolic representation of section type. */
54 arm_section_type_name (int type,
55 char *buf __attribute__ ((unused)),
56 size_t len __attribute__ ((unused)))
62 case SHT_ARM_PREEMPTMAP:
63 return "ARM_PREEMPTMAP";
64 case SHT_ARM_ATTRIBUTES:
65 return "ARM_ATTRIBUTES";
71 /* Check whether machine flags are valid. */
73 arm_machine_flag_check (GElf_Word flags)
75 switch (flags & EF_ARM_EABIMASK)
77 case EF_ARM_EABI_UNKNOWN:
78 case EF_ARM_EABI_VER1:
79 case EF_ARM_EABI_VER2:
80 case EF_ARM_EABI_VER3:
81 case EF_ARM_EABI_VER4:
82 case EF_ARM_EABI_VER5:
88 return ((flags &~ (EF_ARM_EABIMASK
100 | EF_ARM_MAVERICK_FLOAT
101 | EF_ARM_SYMSARESORTED
102 | EF_ARM_DYNSYMSUSESEGIDX
103 | EF_ARM_MAPSYMSFIRST
106 | EF_ARM_LE8)) == 0);
109 /* Check for the simple reloc types. */
111 arm_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)