Disable support for compat syscalls on arm64. These symbols were never

shipped since arm64 exists only on 11+.

Submitted by:	brooks
Reviewed by:	emaste, imp
This commit is contained in:
Andrew Turner 2016-04-06 16:09:10 +00:00
parent 33bed970fa
commit 4798b7f381
5 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# $FreeBSD$
CFLAGS+= -DNO_COMPAT7
SRCS+= _ctx_start.S \
fabs.S \
flt_rounds.c \

View File

@ -1,5 +1,7 @@
# $FreeBSD$
MIASM:= ${MIASM:Nfreebsd[467]_*}
SRCS+= __vdso_gettc.c
#MDASM= ptrace.S

View File

@ -42,7 +42,9 @@
#define AEABI_ENTRY(x) ENTRY(__aeabi_ ## x ## _vfp)
#define AEABI_END(x) END(__aeabi_ ## x ## _vfp)
#else
#define AEABI_ENTRY(x) ENTRY(__aeabi_ ## x)
#define AEABI_ENTRY(x) \
.set __fbsd_ ## x, __aeabi_ ## x; \
ENTRY(__aeabi_ ## x)
#define AEABI_END(x) END(__aeabi_ ## x)
#endif

View File

@ -29,7 +29,9 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#ifndef NO_COMPAT7
#define _WANT_SEMUN_OLD
#endif
#include <sys/types.h>
#include <sys/ipc.h>
@ -38,8 +40,10 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
int __semctl(int semid, int semnum, int cmd, union semun *arg);
#ifndef NO_COMPAT7
int freebsd7___semctl(int semid, int semnum, int cmd, union semun_old *arg);
int freebsd7_semctl(int semid, int semnum, int cmd, ...);
#endif
int
semctl(int semid, int semnum, int cmd, ...)
@ -61,6 +65,7 @@ semctl(int semid, int semnum, int cmd, ...)
return (__semctl(semid, semnum, cmd, semun_ptr));
}
#ifndef NO_COMPAT7
int
freebsd7_semctl(int semid, int semnum, int cmd, ...)
{
@ -82,3 +87,4 @@ freebsd7_semctl(int semid, int semnum, int cmd, ...)
}
__sym_compat(semctl, freebsd7_semctl, FBSD_1.0);
#endif

View File

@ -38,9 +38,11 @@
#define __sym_compat(sym,impl,verid) \
.symver impl, sym@verid
#ifndef NO_COMPAT7
__sym_compat(__semctl, freebsd7___semctl, FBSD_1.0);
__sym_compat(msgctl, freebsd7_msgctl, FBSD_1.0);
__sym_compat(shmctl, freebsd7_shmctl, FBSD_1.0);
#endif
#undef __sym_compat