mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
sys: centralize SV_* flags definitions for several FreeBSD ABIs
(cherry picked from commit f69d974bf6)
This commit is contained in:
1 parent
15f2dc698a
commit
e29de8c40b
9 files changed
+13
-24
No files matched your search
@@ -78,9 +78,7 @@ struct sysentvec elf64_freebsd_sysvec_la48 = {
|
||||
.sv_setregs = exec_setregs,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_ASLR | SV_LP64 | SV_SHP |
|
||||
SV_TIMEKEEP | SV_RNG_SEED_VER | SV_DSO_SIG |
|
||||
SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_DSO_SIG | SV_LP64,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
@@ -121,9 +119,7 @@ struct sysentvec elf64_freebsd_sysvec_la57 = {
|
||||
.sv_setregs = exec_setregs,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_ASLR | SV_LP64 | SV_SHP |
|
||||
SV_TIMEKEEP | SV_RNG_SEED_VER | SV_DSO_SIG |
|
||||
SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_DSO_SIG | SV_LP64,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
|
||||
@@ -84,9 +84,7 @@ struct sysentvec elf32_freebsd_sysvec = {
|
||||
.sv_setregs = exec_setregs,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags =
|
||||
SV_ASLR | SV_SHP | SV_TIMEKEEP | SV_RNG_SEED_VER |
|
||||
SV_ABI_FREEBSD | SV_ILP32 | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_ILP32,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
|
||||
@@ -99,8 +99,7 @@ static struct sysentvec elf64_freebsd_sysvec = {
|
||||
.sv_setregs = exec_setregs,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_SHP | SV_TIMEKEEP | SV_ABI_FREEBSD | SV_LP64 |
|
||||
SV_ASLR | SV_RNG_SEED_VER | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_LP64,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
|
||||
@@ -126,9 +126,7 @@ struct sysentvec ia32_freebsd_sysvec = {
|
||||
.sv_setregs = ia32_setregs,
|
||||
.sv_fixlimit = ia32_fixlimit,
|
||||
.sv_maxssiz = &ia32_maxssiz,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_ASLR | SV_ILP32 |
|
||||
SV_SHP | SV_TIMEKEEP | SV_RNG_SEED_VER |
|
||||
SV_DSO_SIG | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_DSO_SIG | SV_ILP32,
|
||||
.sv_set_syscall_retval = ia32_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = ia32_fetch_syscall_args,
|
||||
.sv_syscallnames = freebsd32_syscallnames,
|
||||
|
||||
@@ -74,8 +74,7 @@ struct sysentvec elf32_freebsd_sysvec = {
|
||||
.sv_setregs = exec_setregs,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_ASLR | SV_ILP32 |
|
||||
SV_SHP | SV_TIMEKEEP | SV_RNG_SEED_VER | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_ILP32,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
|
||||
@@ -123,8 +123,7 @@ struct sysentvec elf32_freebsd_sysvec = {
|
||||
.sv_fixlimit = NULL,
|
||||
#endif
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_ILP32 | SV_SHP | SV_ASLR |
|
||||
SV_TIMEKEEP | SV_RNG_SEED_VER | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_ILP32,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_shared_page_base = FREEBSD32_SHAREDPAGE,
|
||||
|
||||
@@ -85,8 +85,7 @@ struct sysentvec elf64_freebsd_sysvec_v1 = {
|
||||
.sv_setregs = exec_setregs_funcdesc,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_LP64 | SV_SHP | SV_ASLR |
|
||||
SV_TIMEKEEP | SV_RNG_SEED_VER | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_LP64,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
@@ -129,8 +128,7 @@ struct sysentvec elf64_freebsd_sysvec_v2 = {
|
||||
.sv_setregs = exec_setregs,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_LP64 | SV_SHP | SV_ASLR |
|
||||
SV_TIMEKEEP | SV_RNG_SEED_VER | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_LP64,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
|
||||
@@ -82,8 +82,7 @@ static struct sysentvec elf64_freebsd_sysvec = {
|
||||
.sv_setregs = exec_setregs,
|
||||
.sv_fixlimit = NULL,
|
||||
.sv_maxssiz = NULL,
|
||||
.sv_flags = SV_ABI_FREEBSD | SV_LP64 | SV_SHP | SV_TIMEKEEP |
|
||||
SV_ASLR | SV_RNG_SEED_VER | SV_SIGSYS,
|
||||
.sv_flags = SV_ABI_FREEBSD_FLAGS | SV_LP64,
|
||||
.sv_set_syscall_retval = cpu_set_syscall_retval,
|
||||
.sv_fetch_syscall_args = cpu_fetch_syscall_args,
|
||||
.sv_syscallnames = syscallnames,
|
||||
|
||||
@@ -187,6 +187,9 @@ struct sysentvec {
|
||||
#define SV_ABI_FREEBSD 9
|
||||
#define SV_ABI_UNDEF 255
|
||||
|
||||
#define SV_ABI_FREEBSD_FLAGS (SV_ABI_FREEBSD | SV_ASLR | SV_SHP | \
|
||||
SV_TIMEKEEP | SV_RNG_SEED_VER | SV_SIGSYS)
|
||||
|
||||
/* sv_coredump flags */
|
||||
#define SVC_PT_COREDUMP 0x00000001 /* dump requested by ptrace(2) */
|
||||
#define SVC_NOCOMPRESS 0x00000002 /* disable compression. */
|
||||
|
||||
Reference in new issue
Block a user