glibc/sysdeps
Joseph Myers f7b425175c Support and use mixed compat/non-compat aliases in syscalls.list.
This patch enables syscalls.list entries to specify both compat and
non-compat symbol versions for the same syscall definition, making use
of this for setrlimit / chown / lchown where the inability to specify
such aliases showed up in the course of work on bug 14138.

The change to make-syscalls.sh is minimal: adding a SHARED conditional
on the compat_symbol calls.  It remains the case that if a compat
symbol version is specified, the syscall is only built for the shared
library at all if an explicit symbol version is given for a non-compat
symbol (so it's necessary to specify "lchown@@GLIBC_2.0
chown@GLIBC_2.0" rather than just "lchown chown@GLIBC_2.0").  It also
remains the case, as already commented in make-syscalls.sh, that no
SHLIB_COMPAT conditionals are generated, so there would be problems if
the same syscalls.list file, with compat symbols, were used for both
configurations that should have those symbols and configurations for
which they should be conditioned out with SHLIB_COMPAT.

Tested for x86.

	* sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
	compat_symbol calls on [SHARED].
	* sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
	* sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
	Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
	* sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
	(oldsetrlimit): Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
	(lchown): New syscall entry.
	(oldsetrlimit): Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
	* sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
	(oldsetrlimit): Remove.
	(setrlimit): Add setrlimit@GLIBC_2.0 alias.
2014-10-06 22:58:59 +00:00
..
aarch64 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
alpha Require autoconf 2.69 2014-09-29 07:53:36 -07:00
arm Require autoconf 2.69 2014-09-29 07:53:36 -07:00
generic Add __safe_fatal and use it in __pthread_unwind forwarder fallback. 2014-07-31 14:00:33 -07:00
gnu Add new Linux 3.16 constants to netinet/udp.h. 2014-09-12 12:13:08 +00:00
hppa Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
i386 i386 TLS_INIT_TP might produce bogus asm changing stack pointer [BZ #17319] 2014-08-28 09:53:08 +02:00
ia64 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
ieee754 Fix missing <math_private.h> in ldbl-96 fma 2014-08-04 10:20:20 +02:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
mach Require autoconf 2.69 2014-09-29 07:53:36 -07:00
microblaze Move architecture shlib-versions files to Linux-specific directories. 2014-07-17 14:31:12 +00:00
mips Remove extra whitespace from end of line. 2014-10-01 13:46:51 -07:00
nptl Check value of futex before updating in __lll_timedlock 2014-08-12 12:57:27 +01:00
posix Remove _POSIX_REGEX_VERSION 2014-09-15 10:16:14 +05:30
powerpc PowerPC: memset optimization for POWER8/PPC64 2014-09-10 07:39:46 -04:00
pthread Restore subdir conditional for tst-timer dependency. 2014-07-03 18:52:51 -07:00
s390 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
sh Remove unnecessary uses of NOT_IN_libc 2014-08-21 10:26:46 +05:30
sparc Get rid of sparc specific NPTL internaltypes.h header. 2014-07-09 22:19:09 -07:00
tile tile: fix copyright header blocks in just-committed files 2014-10-06 13:47:02 -04:00
unix Support and use mixed compat/non-compat aliases in syscalls.list. 2014-10-06 22:58:59 +00:00
wordsize-32 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 Run tst-ld-sse-use.sh with bash. 2014-09-29 23:24:37 +00:00
x86_64 Remove unnecessary uses of NOT_IN_libc 2014-08-21 10:26:46 +05:30