Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / arm / reloc.h
blobb938037a06b258b30201b3afc47dd7f3a825fe15
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2013 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GRUB_ARM_RELOC_H
20 #define GRUB_ARM_RELOC_H 1
22 grub_err_t grub_arm_reloc_abs32 (grub_uint32_t *addr, Elf32_Addr sym_addr);
24 int
25 grub_arm_thm_call_check_offset (grub_int32_t offset, int is_thumb);
26 grub_int32_t
27 grub_arm_thm_call_get_offset (grub_uint16_t *target);
28 grub_err_t
29 grub_arm_thm_call_set_offset (grub_uint16_t *target, grub_int32_t offset);
31 grub_int32_t
32 grub_arm_thm_jump19_get_offset (grub_uint16_t *target);
33 void
34 grub_arm_thm_jump19_set_offset (grub_uint16_t *target, grub_int32_t offset);
35 int
36 grub_arm_thm_jump19_check_offset (grub_int32_t offset);
38 grub_int32_t
39 grub_arm_jump24_get_offset (grub_uint32_t *target);
40 int
41 grub_arm_jump24_check_offset (grub_int32_t offset);
42 void
43 grub_arm_jump24_set_offset (grub_uint32_t *target,
44 grub_int32_t offset);
46 #endif