summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/elf.h
blob: adb8ec8f6ececd093af0c98656938d8753177eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_RISCV_ELF_H__
#define __ASM_RISCV_ELF_H__

#if __SIZEOF_POINTER__ == 8
#define ELF_CLASS	ELFCLASS64
#define CONFIG_PHYS_ADDR_T_64BIT
#else
#define ELF_CLASS	ELFCLASS32
#endif

/* Relocation types used by the dynamic linker */
#define R_RISCV_NONE		0
#define R_RISCV_32		1
#define R_RISCV_64		2
#define R_RISCV_RELATIVE	3

#endif /* __ASM_RISCV_ELF_H__ */