RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
score
cpu
microblaze
include
machine
elf_machdep.h
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
3
/*
4
* Copyright (C) 2023 On-Line Applications Research Corporation (OAR)
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
* POSSIBILITY OF SUCH DAMAGE.
26
*/
27
28
#ifndef _MICROBLAZE_ELF_MACHDEP_H_
29
#define _MICROBLAZE_ELF_MACHDEP_H_
30
31
#define ELF64_MACHDEP_ID EM_MICROBLAZE
32
#define ELF32_MACHDEP_ID EM_MICROBLAZE
33
34
#define ELF64_MACHDEP_ENDIANNESS ELFDATA2LSB
35
#define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB
36
37
#define ELF32_MACHDEP_ID_CASES \
38
case EM_MICROBLAZE: \
39
break;
40
41
#define ELF64_MACHDEP_ID_CASES \
42
case EM_MICROBLAZE: \
43
break;
44
45
#define KERN_ELFSIZE 32
46
#define ARCH_ELFSIZE 32
/* MD native binary size */
47
48
/* Processor specific relocation types */
49
50
#define R_MICROBLAZE_NONE 0
51
#define R_MICROBLAZE_32 1
52
#define R_MICROBLAZE_32_PCREL 2
53
#define R_MICROBLAZE_64_PCREL 3
54
#define R_MICROBLAZE_32_PCREL_LO 4
55
#define R_MICROBLAZE_64 5
56
#define R_MICROBLAZE_32_LO 6
57
#define R_MICROBLAZE_SRO32 7
58
#define R_MICROBLAZE_SRW32 8
59
#define R_MICROBLAZE_64_NONE 9
60
#define R_MICROBLAZE_32_SYM_OP_SYM 10
61
#define R_MICROBLAZE_GNU_VTINHERIT 11
62
#define R_MICROBLAZE_GNU_VTENTRY 12
63
#define R_MICROBLAZE_GOTPC_64 13
64
#define R_MICROBLAZE_GOT_64 14
65
#define R_MICROBLAZE_PLT_64 15
66
#define R_MICROBLAZE_REL 16
67
#define R_MICROBLAZE_JUMP_SLOT 17
68
#define R_MICROBLAZE_GLOB_DAT 18
69
#define R_MICROBLAZE_GOTOFF_64 19
70
#define R_MICROBLAZE_GOTOFF_32 20
71
#define R_MICROBLAZE_COPY 21
72
#define R_MICROBLAZE_TLS 22
73
#define R_MICROBLAZE_TLSGD 23
74
#define R_MICROBLAZE_TLSLD 24
75
#define R_MICROBLAZE_TLSDTPMOD32 25
76
#define R_MICROBLAZE_TLSDTPREL32 26
77
#define R_MICROBLAZE_TLSDTPREL64 27
78
#define R_MICROBLAZE_TLSGOTTPREL32 28
79
#define R_MICROBLAZE_TLSTPREL32 29
80
81
#define R_TYPE( name ) R_MICROBLAZE_##name
82
83
#endif
/* _MICROBLAZE_ELF_MACHDEP_H_ */
Generated by
1.18.0