2004-01-16 05:04:59 +00:00
|
|
|
ifeq ($(subdir),stdlib)
|
|
|
|
gen-as-const-headers += ucontext-offsets.sym
|
|
|
|
endif
|
|
|
|
|
1997-01-23 04:24:10 +00:00
|
|
|
ifeq ($(subdir),misc)
|
2000-01-23 08:52:50 +00:00
|
|
|
sysdep_headers += alpha/ptrace.h alpha/regdef.h sys/io.h
|
Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/alpha/Makefile,
sysdeps/unix/sysv/linux/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/fpu_control.c,
sysdeps/unix/sysv/linux/alpha/fpu_control.h,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/alpha/setfpucw.c,
sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
sysdeps/unix/sysv/linux/alpha/speed.c,
sysdeps/unix/sysv/linux/alpha/start.S,
sysdeps/unix/sysv/linux/alpha/syscall.S,
sysdeps/unix/sysv/linux/alpha/syscalls.list,
sysdeps/unix/sysv/linux/alpha/sysdep.S,
sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
1996-03-19 19:51:23 +00:00
|
|
|
|
1996-06-16 03:49:08 +00:00
|
|
|
sysdep_routines += ieee_get_fp_control ieee_set_fp_control \
|
2016-08-25 20:42:44 +00:00
|
|
|
ioperm
|
1998-02-04 10:17:52 +00:00
|
|
|
|
|
|
|
# Support old timeval32 entry points
|
Linux/Alpha: don't use timeval32 system calls.
Linux/Alpha has two versions of several system call wrappers that take
or return data of type "struct timeval" (possibly nested inside a
larger structure). The GLIBC_2.0 version is a compat symbol that
calls __NR_osf_foo or __NR_old_foo and uses a struct timeval with a
32-bit tv_sec field. The GLIBC_2.1 version is used for current code,
calls __NR_foo, and uses a struct timeval with a 64-bit tv_sec field.
This patch changes all of the compat symbols of this type to be
wrappers around their GLIBC_2.1 counterparts; the compatibility system
calls will no longer be used. It serves as a proposal for part of how
we do the transition to 64-bit time_t on systems that currently use
32-bit time_t:
* The patched glibc will NOT use system calls that involve 32-bit
time_t to implement its compatibility symbols. This will make both
our lives and the kernel maintainers' lives easier. The primary
argument I've seen against it is that the kernel could warn about
uses of the old system calls, helping people find old binaries that
need to be recompiled. I think there are several other ways we
could accomplish this, e.g. scripts to scan the filesystem for
binaries with references to the old symbol versions, or issuing
diagnostics ourselves.
* The compat symbols do NOT report failure after the Y2038 deadline.
An earlier revision of this patch had them return -1 and set errno
to EOVERFLOW, but Adhemerval pointed out that many of them have
already performed side effects at the point where we discover the
overflow, so that would break more than it fixes. Also, we don't
want people to be _checking_ for EOVERFLOW from these functions; we
want them to recompile with 64-bit time_t. So it's not actually
useful for them to report failure to the calling code.
* What they do do, when they encounter overflow, is saturate the
overflowed "struct timeval"(s): tv_sec is set to INT32_MAX and
tv_nsec is set to 999999. That means time stops advancing for
programs with 32-bit time_t when they reach the deadline. That's
obviously going to break stuff, but I think wrapping around is
probably going to break _more_ stuff. I'd be interested to hear
arguments against, if anyone has one.
The new header file tv32-compat.h is currently Alpha-specific but I
mean for it to be reused to aid in writing wrappers for all affected
architectures. I only put it in sysdeps/unix/sysv/linux/alpha for now
because I haven't checked whether the various "foo32" structures it
defines agree with the ABI for ports other than Linux/Alpha.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2019-08-19 18:18:08 +00:00
|
|
|
sysdep_routines += osf_adjtime osf_gettimeofday osf_settimeofday \
|
1998-02-04 10:17:52 +00:00
|
|
|
osf_getitimer osf_setitimer osf_utimes \
|
2003-06-20 16:24:36 +00:00
|
|
|
osf_getrusage osf_wait4
|
1998-10-12 12:56:56 +00:00
|
|
|
|
|
|
|
CFLAGS-ioperm.c = -Wa,-mev6
|
Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/alpha/Makefile,
sysdeps/unix/sysv/linux/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/fpu_control.c,
sysdeps/unix/sysv/linux/alpha/fpu_control.h,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/alpha/setfpucw.c,
sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
sysdeps/unix/sysv/linux/alpha/speed.c,
sysdeps/unix/sysv/linux/alpha/start.S,
sysdeps/unix/sysv/linux/alpha/syscall.S,
sysdeps/unix/sysv/linux/alpha/syscalls.list,
sysdeps/unix/sysv/linux/alpha/sysdep.S,
sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
1996-03-19 19:51:23 +00:00
|
|
|
endif
|
1998-10-21 15:40:22 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),signal)
|
2003-09-03 03:14:43 +00:00
|
|
|
sysdep_routines += rt_sigaction
|
1998-10-21 15:40:22 +00:00
|
|
|
endif
|
2006-02-01 03:13:49 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),math)
|
|
|
|
# These 2 routines are normally in libgcc{.a,_s.so.1}.
|
|
|
|
# However, alpha -mlong-double-128 libgcc relies on
|
|
|
|
# glibc providing _Ots* routines and without these files
|
|
|
|
# glibc relies on __multc3/__divtc3 only provided
|
|
|
|
# by libgcc if configured with -mlong-double-128.
|
|
|
|
# Provide these routines here as well.
|
|
|
|
libm-routines += multc3 divtc3
|
|
|
|
endif # math
|
2014-05-22 15:51:13 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),nptl)
|
alpha: Use Linux generic sigaction implementation
Alpha rt_sigaction syscall uses a slight different kernel ABI than
generic one:
arch/alpha/kernel/signal.c
90 SYSCALL_DEFINE5(rt_sigaction, int, sig, const struct sigaction __user *, act,
91 struct sigaction __user *, oact,
92 size_t, sigsetsize, void __user *, restorer)
Similar as sparc, the syscall expects a restorer function. However
different than sparc, alpha defines the restorer as the 5th argument
(sparc defines as the 4th).
This patch removes the arch-specific alpha sigaction implementation,
adapt the Linux generic one to different restore placements (through
STUB macro), and make alpha use the Linux generic kernel_sigaction
definition.
Checked on alpha-linux-gnu and x86_64-linux-gnu (for sanity).
* sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
__syscall_rt_sigaction.
* sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
(kernel_sigaction): Use Linux generic defintion.
(STUB): Define.
(__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
(__syscall_rt_sigaction): Remove implementation.
(__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
hidden.
* sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
INTERNAL_SYSCALL): Remove definitions.
* sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
action and signal set size.
* sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
* sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2018-12-11 18:57:49 +00:00
|
|
|
# pull in __syscall_error routine, __sigprocmask, sigaction stubs.
|
2016-09-14 14:02:06 +00:00
|
|
|
libpthread-routines += sysdep sigprocmask rt_sigaction
|
|
|
|
libpthread-shared-only-routines += sysdep sigprocmask rt_sigaction
|
2014-05-22 15:51:13 +00:00
|
|
|
endif
|
2017-03-17 02:42:16 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),conform)
|
|
|
|
# For bug 21260.
|
|
|
|
conformtest-xfail-conds += alpha-linux
|
|
|
|
endif
|