Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
9d056df
Documentation
LICENSES
arch
alpha
arc
arm
arm64
c6x
csky
abiv1
abiv2
boot
configs
include
asm
Kbuild
addrspace.h
atomic.h
barrier.h
cache.h
cacheflush.h
cmpxchg.h
elf.h
fixmap.h
highmem.h
io.h
irqflags.h
mmu.h
mmu_context.h
page.h
pgalloc.h
pgtable.h
processor.h
segment.h
shmparam.h
spinlock.h
spinlock_types.h
switch_to.h
syscall.h
syscalls.h
thread_info.h
tlb.h
tlbflush.h
traps.h
unistd.h
vdso.h
uapi
kernel
lib
mm
Kconfig
Kconfig.debug
Makefile
h8300
hexagon
ia64
m68k
microblaze
mips
nds32
nios2
openrisc
parisc
powerpc
riscv
s390
sh
sparc
um
unicore32
x86
xtensa
.gitignore
Kconfig
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Breadcrumbs
linux
/
arch
/
csky
/
include
/
asm
/
elf.h
Blame
Blame
Latest commit
History
History
85 lines (69 loc) · 2.46 KB
Breadcrumbs
linux
/
arch
/
csky
/
include
/
asm
/
elf.h
Top
File metadata and controls
Code
Blame
85 lines (69 loc) · 2.46 KB
Raw
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #ifndef __ASM_CSKY_ELF_H #define __ASM_CSKY_ELF_H #include <asm/ptrace.h> #include <abi/regdef.h> #define ELF_ARCH 252 /* CSKY Relocations */ #define R_CSKY_NONE 0 #define R_CSKY_32 1 #define R_CSKY_PCIMM8BY4 2 #define R_CSKY_PCIMM11BY2 3 #define R_CSKY_PCIMM4BY2 4 #define R_CSKY_PC32 5 #define R_CSKY_PCRELJSR_IMM11BY2 6 #define R_CSKY_GNU_VTINHERIT 7 #define R_CSKY_GNU_VTENTRY 8 #define R_CSKY_RELATIVE 9 #define R_CSKY_COPY 10 #define R_CSKY_GLOB_DAT 11 #define R_CSKY_JUMP_SLOT 12 #define R_CSKY_ADDR_HI16 24 #define R_CSKY_ADDR_LO16 25 #define R_CSKY_PCRELJSR_IMM26BY2 40 typedef unsigned long elf_greg_t; typedef struct user_fp elf_fpregset_t; #define ELF_NGREG (sizeof(struct pt_regs) / sizeof(elf_greg_t)) typedef elf_greg_t elf_gregset_t[ELF_NGREG]; /* * This is used to ensure we don't load something for the wrong architecture. */ #define elf_check_arch(x) ((x)->e_machine == ELF_ARCH) /* * These are used to set parameters in the core dumps. */ #define USE_ELF_CORE_DUMP #define ELF_EXEC_PAGESIZE 4096 #define ELF_CLASS ELFCLASS32 #define ELF_PLAT_INIT(_r, load_addr) { _r->a0 = 0; } #ifdef __cskyBE__ #define ELF_DATA ELFDATA2MSB #else #define ELF_DATA ELFDATA2LSB #endif /* * This is the location that an ET_DYN program is loaded if exec'ed. Typical * use of this is to invoke "./ld.so someprog" to test out a new version of * the loader. We need to make sure that it is out of the way of the program * that it will "exec", and that there is sufficient room for the brk. */ #define ELF_ET_DYN_BASE 0x0UL #include <abi/elf.h> /* Similar, but for a thread other than current. */ struct task_struct; extern int dump_task_regs(struct task_struct *tsk, elf_gregset_t *elf_regs); #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs) #define ELF_HWCAP (0) /* * This yields a string that ld.so will use to load implementation specific * libraries for optimization. This is more specific in intent than poking * at uname or /proc/cpuinfo. */ #define ELF_PLATFORM (NULL) #define SET_PERSONALITY(ex) set_personality(PER_LINUX) #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 struct linux_binprm; extern int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp); #endif /* __ASM_CSKY_ELF_H */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
You can’t perform that action at this time.