]> sourceware.org Git - glibc.git/commit
Linux: Use system call tables during build
authorFlorian Weimer <fweimer@redhat.com>
Thu, 2 Jan 2020 09:18:22 +0000 (10:18 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 2 Jan 2020 09:18:23 +0000 (10:18 +0100)
commita1bd5f86739926469bbe0054b93305ff5905b070
tree48f6c1da68ce82fb7207fedc529dc98bf2092e04
parent4cf0d223052dabb9caed29e1e91e1d61933e14fb
Linux: Use system call tables during build

Use <arch-syscall.h> instead of <asm/unistd.h> to obtain the system
call numbers.  A few direct includes of <asm/unistd.h> need to be
removed (if the system call numbers are already provided indirectly
by <sysdep.h>) or replaced with <sys/syscall.h>.

Current Linux headers for alpha define the required system call names,
so most of the _NR_* hacks are no longer needed.  For the 32-bit arm
architecture, eliminate the INTERNAL_SYSCALL_ARM macro, now that we
have regular system call names for cacheflush and set_tls.  There are
more such cleanup opportunities for other architectures, but these
cleanups are required to avoid macro redefinition errors during the
build.

For ia64, it is desirable to use <asm/break.h> directly to obtain
the break number for system calls (which is not a system call number
itself).  This requires replacing __BREAK_SYSCALL with
__IA64_BREAK_SYSCALL because the former is defined as an alias in
<asm/unistd.h>, but not in <asm/break.h>.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
21 files changed:
NEWS
sysdeps/ia64/start.S
sysdeps/microblaze/backtrace_linux.c
sysdeps/unix/sysv/linux/alpha/kernel-features.h
sysdeps/unix/sysv/linux/alpha/sysdep.h
sysdeps/unix/sysv/linux/arm/dl-machine.h
sysdeps/unix/sysv/linux/arm/sysdep.h
sysdeps/unix/sysv/linux/arm/tls.h
sysdeps/unix/sysv/linux/hppa/clone.S
sysdeps/unix/sysv/linux/ia64/brk.S
sysdeps/unix/sysv/linux/ia64/clone2.S
sysdeps/unix/sysv/linux/ia64/syscall.S
sysdeps/unix/sysv/linux/ia64/sysdep.S
sysdeps/unix/sysv/linux/ia64/sysdep.h
sysdeps/unix/sysv/linux/include/sys/syscall.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/mips/vfork.S
sysdeps/unix/sysv/linux/nios2/sysdep.h
sysdeps/unix/sysv/linux/riscv/flush-icache.c
sysdeps/unix/sysv/linux/sparc/sparc32/clone.S
sysdeps/unix/sysv/linux/sparc/sparc64/clone.S
sysdeps/unix/sysv/linux/sys/syscall.h
This page took 0.048924 seconds and 5 git commands to generate.