* sysdeps/arm/dl-machine.h: Include <tls.h>.
(elf_machine_type_class, elf_machine_rel, elf_machine_rela): Handle
TLS relocations.
* sysdeps/unix/sysv/linux/arm/Makefile: Build __aeabi_read_tp.
* sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL_RAW): Renamed
from INTERNAL_SYSCALL.
(INTERNAL_SYSCALL, INTERNAL_SYSCALL_ARM): New macros.
* sysdeps/arm/dl-tls.h, sysdeps/arm/elf/configure.in,
sysdeps/arm/elf/configure, sysdeps/arm/libc-tls.c,
sysdeps/arm/linuxthreads/tls.h, sysdeps/arm/tls-macros.h,
sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S,
sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: New files.
2005-10-05 20:15:22 +00:00
|
|
|
ifeq ($(subdir),elf)
|
2013-02-12 18:44:10 +00:00
|
|
|
sysdep-rtld-routines += aeabi_read_tp libc-do-syscall
|
* sysdeps/arm/dl-machine.h: Include <tls.h>.
(elf_machine_type_class, elf_machine_rel, elf_machine_rela): Handle
TLS relocations.
* sysdeps/unix/sysv/linux/arm/Makefile: Build __aeabi_read_tp.
* sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL_RAW): Renamed
from INTERNAL_SYSCALL.
(INTERNAL_SYSCALL, INTERNAL_SYSCALL_ARM): New macros.
* sysdeps/arm/dl-tls.h, sysdeps/arm/elf/configure.in,
sysdeps/arm/elf/configure, sysdeps/arm/libc-tls.c,
sysdeps/arm/linuxthreads/tls.h, sysdeps/arm/tls-macros.h,
sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S,
sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: New files.
2005-10-05 20:15:22 +00:00
|
|
|
endif
|
|
|
|
|
1998-10-16 16:18:30 +00:00
|
|
|
ifeq ($(subdir),misc)
|
2002-10-13 Roland McGrath <roland@frob.com>
* posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
setresgid): Declare them.
* NEWS: Mention it.
* include/unistd.h
(__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
add libc_hidden_proto.
* posix/Versions (libc: GLIBC_2.3.2): New set. Add
getresuid, getresgid, setresuid, setresgid here.
* Versions.def (libc): Define GLIBC_2.3.2 set.
* sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
Add libc_hidden_def.
* sysdeps/generic/getresgid.c (__getresgid): Likewise.
* sysdeps/generic/setresgid.c: New file.
* sysdeps/generic/setresuid.c: New file.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
(sysdep_routines): Don't add getresuid and getresgid here.
* sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
(sysdep_routines): Don't add setresuid and setresgid here.
* sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
* sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
* posix/Makefile (routines): Add them all here instead.
* sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
__getresuid. Add libc_hidden_def for that, and weak alias to old name.
* sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
__getresgid. Add libc_hidden_def for that, and weak alias to old name.
* sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
[! __NR_setresuid]: Include generic file.
* sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
__setresgid. Add libc_hidden_def for that, and weak alias to old name.
[! __NR_setresuid]: Include generic file.
* sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
Caller is - now, not EXTRA.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
(setresuid, setresgid, getresuid, getresgid): Likewise.
* sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
Add these calls here.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
* sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
(sysdep_routines): Add setfsuid and setfsgid here.
* sysdeps/unix/sysv/linux/arm/Makefile: Not here.
* sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
* sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2002-10-14 01:02:53 +00:00
|
|
|
sysdep_routines += ioperm
|
2019-05-29 14:53:09 +00:00
|
|
|
sysdep_headers += sys/elf.h
|
1998-10-16 16:18:30 +00:00
|
|
|
endif
|
1998-10-21 15:40:22 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),signal)
|
2003-09-03 03:16:54 +00:00
|
|
|
sysdep_routines += sigrestorer
|
1998-10-21 15:40:22 +00:00
|
|
|
endif
|
2000-08-27 01:01:17 +00:00
|
|
|
|
2012-03-05 22:58:13 +00:00
|
|
|
ifeq ($(subdir),stdlib)
|
|
|
|
gen-as-const-headers += ucontext_i.sym
|
|
|
|
endif
|
2012-04-21 15:38:55 +00:00
|
|
|
|
|
|
|
# Add a syscall function to each library that needs one.
|
|
|
|
|
2012-11-14 23:06:40 +00:00
|
|
|
ifeq ($(subdir),crypt)
|
|
|
|
libcrypt-sysdep_routines += libc-do-syscall
|
|
|
|
endif
|
|
|
|
|
2012-04-21 15:38:55 +00:00
|
|
|
ifeq ($(subdir),rt)
|
2014-06-26 22:08:29 +00:00
|
|
|
librt-sysdep_routines += libc-do-syscall
|
|
|
|
librt-shared-only-routines += libc-do-syscall
|
2012-04-21 15:38:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),resolv)
|
|
|
|
libanl-sysdep_routines += libc-do-syscall
|
|
|
|
libanl-shared-only-routines += libc-do-syscall
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),csu)
|
|
|
|
sysdep_routines += libc-do-syscall
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),nscd)
|
|
|
|
nscd-modules += libc-do-syscall
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),nss)
|
|
|
|
libnss_db-sysdep_routines += libc-do-syscall
|
|
|
|
libnss_db-shared-only-routines += libc-do-syscall
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),posix)
|
|
|
|
LDFLAGS-tst-rfc3484 += $(common-objpfx)csu/libc-do-syscall.o
|
|
|
|
LDFLAGS-tst-rfc3484-2 += $(common-objpfx)csu/libc-do-syscall.o
|
|
|
|
LDFLAGS-tst-rfc3484-3 += $(common-objpfx)csu/libc-do-syscall.o
|
|
|
|
endif
|
2012-05-30 18:55:55 +00:00
|
|
|
|
2012-11-21 21:04:33 +00:00
|
|
|
abi-variants := soft hard
|
|
|
|
|
|
|
|
ifeq (,$(filter $(default-abi),$(abi-variants)))
|
|
|
|
Unknown ABI, must be one of $(abi-variants)
|
2012-05-30 18:55:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
abi-includes :=
|
|
|
|
abi-soft-condition := !defined __ARM_PCS_VFP
|
|
|
|
abi-hard-condition := defined __ARM_PCS_VFP
|