glibc/sysdeps/unix/sysv/linux/powerpc
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
..
bits PowerPC: Fix termios definitions 2014-08-06 14:31:54 -04:00
powerpc32 Support and use mixed compat/non-compat aliases in syscalls.list. 2014-10-06 22:58:59 +00:00
powerpc64 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
sys
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
Makefile Clean up gnu/lib-names.h generation (bug 14171). 2014-09-26 17:33:04 +00:00
Versions
arch-fork.h Split arch-fork.h from fork.h 2014-05-16 11:17:41 -07:00
configure Move architecture cases out of sysdeps/unix/sysv/linux/configure.ac. 2014-06-24 20:53:03 +00:00
configure.ac Move architecture cases out of sysdeps/unix/sysv/linux/configure.ac. 2014-06-24 20:53:03 +00:00
dl-brk.S
dl-cache.h
dl-static.c
dl-sysdep.c Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
get_clockfreq.c Fix powerpc32 __get_clockfreq for non-power4 (bug 17263). 2014-08-13 16:06:18 +00:00
get_timebase_freq.c
getdents64.c
getmsg.c
getrlimit64.c
gettimeofday.c
init-first.c
ioctl.c
ipc_priv.h
kernel-features.h [PATCH 4/6] Split powerpc out of main Linux kernel-features.h. 2014-07-17 17:53:52 +00:00
kernel_termios.h
ldconfig.h
ldd-rewrite.sed
ldsodefs.h
libc-start.c
nldbl-abi.h
oldgetrlimit64.c
profil-counter.h
pt-longjmp.c PowerPC: Move remaining nptl/sysdeps/unix/sysv/linux/powerpc/ files. 2014-05-26 11:45:14 -05:00
pthread_attr_setstack.c PowerPC: Move remaining nptl/sysdeps/unix/sysv/linux/powerpc/ files. 2014-05-26 11:45:14 -05:00
pthread_attr_setstacksize.c PowerPC: Move remaining nptl/sysdeps/unix/sysv/linux/powerpc/ files. 2014-05-26 11:45:14 -05:00
pthread_spin_unlock.c powerpc: remove linux lowlevellock.h 2014-10-06 16:08:32 -05:00
putmsg.c
readdir64.c
readdir64_r.c
readelflib.c
rt-sysdep.c
sched_getcpu.c
sem_post.c powerpc: remove linux lowlevellock.h 2014-10-06 16:08:32 -05:00
sigcontextinfo.h
syscall.S
syscalls.list
sysdep.c
test-gettimebasefreq.c Fix missing newline in test output 2014-07-09 11:07:24 +02:00
time.c