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 ptrace.h: add __ prefix to ptrace_peeksiginfo_args 2014-01-06 08:07:33 -05:00
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 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
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 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getdents64.c
getmsg.c
getrlimit64.c
gettimeofday.c PowerPC: Fix gettimeofday ifunc selection 2014-01-20 12:29:51 -06:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
init-first.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ioctl.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ipc_priv.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
kernel_termios.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
kernel-features.h [PATCH 4/6] Split powerpc out of main Linux kernel-features.h. 2014-07-17 17:53:52 +00:00
ldconfig.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ldd-rewrite.sed
ldsodefs.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
libc-start.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Makefile Clean up gnu/lib-names.h generation (bug 14171). 2014-09-26 17:33:04 +00:00
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_r.c
readdir64.c
readelflib.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
rt-sysdep.c
sched_getcpu.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sem_post.c powerpc: remove linux lowlevellock.h 2014-10-06 16:08:32 -05:00
sigcontextinfo.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
syscall.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
syscalls.list
sysdep.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
test-gettimebasefreq.c Fix missing newline in test output 2014-07-09 11:07:24 +02:00
time.c PowerPC: Fix gettimeofday ifunc selection 2014-01-20 12:29:51 -06:00
Versions PowerPC: use _dl_static_init to set GLRO(gl_pagesize) 2013-07-23 07:39:57 -05:00