mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
elf: Move 32/64bit generic mapping from risc-v/arch_elf.c to elfxx.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
5849cf71d8
commit
813b652ba5
+9
-7
@@ -215,15 +215,11 @@
|
||||
#define PT_SHLIB 5
|
||||
#define PT_PHDR 6
|
||||
|
||||
/* Processor specific values for the Phdr p_type field. */
|
||||
|
||||
#define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */
|
||||
|
||||
/* GCC specific */
|
||||
|
||||
#define PT_GNU_EH_FRAME 0x6474e550 /* GCC exception handler frame */
|
||||
#define PT_GNU_STACK 0x6474e551 /* Stack executability */
|
||||
#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
|
||||
#define PT_GNU_EH_FRAME 0x6474e550 /* GCC exception handler frame */
|
||||
#define PT_GNU_STACK 0x6474e551 /* Stack executability */
|
||||
#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
|
||||
|
||||
#define PT_LOPROC 0x70000000
|
||||
#define PT_HIPROC 0x7fffffff
|
||||
@@ -366,4 +362,10 @@
|
||||
|
||||
#define NT_VERSION 1 /* Contains a version string. */
|
||||
|
||||
#ifdef CONFIG_ENDIAN_BIG
|
||||
# define ELF_DATA ELFDATA2MSB
|
||||
#else
|
||||
# define ELF_DATA ELFDATA2LSB
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_ELF_H */
|
||||
|
||||
Reference in New Issue
Block a user