glibc/manual
Joseph Myers eed3e1eb79 Make obsolete syscall wrappers into compat symbols (bug 18472).
Various Linux kernel syscalls have become obsolete over time.
Specifically, the following are obsolete in all kernel versions
supported by glibc, are not present for architectures more recently
added to the kernel, and as such, the wrapper functions for them
should be compat symbols, not in static libc and not available for new
links with shared libc.

* bdflush: in Linux 2.6, does nothing if present.

* create_module get_kernel_syms query_module: Linux 2.4 module
  interface, syscalls not present in Linux 2.6.

* uselib: part of the mechanism for loading a.out shared libraries,
  irrelevant with ELF.

This patch adds support for syscalls.list to list syscall aliases of
the form NAME@VERSION:OBSOLETED, with SHLIB_COMPAT conditionals being
generated for such aliases.  Those five syscalls are then made into
compat symbols (obsoleted in glibc 2.23, so future ports won't have
these symbols at all), with the header <sys/kdaemon.h> declaring
bdflush being removed.  When we move to 3.2 as minimum kernel version,
the same can be done for nfsservctl (removed in Linux 3.1) as well.

Tested for x86_64 and x86 (testsuite, as well as checking that the
symbols in question indeed become compat symbols, that they are indeed
omitted from static libc, and that the generated SHLIB_COMPAT
conditionals look right).

	[BZ #18472]
	* sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
	for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
	conditionals for them.
	* sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
	* sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
	sys/kdaemon.h.
	* sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
	compat-only syscall, obsoleted in glibc 2.23.
	(create_module): Likewise.
	(get_kernel_syms): Likewise.
	(query_module): Likewise.
	(uselib): Likewise.
	* manual/sysinfo.texi (System Parameters): Do not mention bdflush.
2015-12-14 22:52:15 +00:00
..
examples Split large string section; add truncation advice 2015-12-10 08:29:30 -08:00
Makefile manual: skip build when perl is unavailable 2015-08-21 17:10:59 -04:00
argp.texi manual/argp.texi (Specifying Argp Parsers): Fix typo. 2015-10-14 11:49:58 -04:00
arith.texi
charset.texi
check-safety.sh
conf.texi
contrib.texi
creature.texi
crypt.texi
ctype.texi
debug.texi
dir
errno.texi manual: complete example in error message documentation 2015-03-06 00:59:49 -05:00
fdl-1.3.texi
filesys.texi Fix manual argument order for posix_fallocate64 (Bug 19086). 2015-10-07 14:10:43 -04:00
freemanuals.texi
getopt.texi
header.texi
install-plain.texi
install.texi Require GCC 4.7 or later to build glibc. 2015-10-27 16:34:12 +00:00
intro.texi
io.texi
ipc.texi
job.texi
lang.texi Split large string section; add truncation advice 2015-12-10 08:29:30 -08:00
lgpl-2.1.texi
libc-texinfo.sh
libc.texinfo
libcbook.texi
libdl.texi
libm-err-tab.pl
llio.texi Fix exponents in manual. 2015-08-20 09:43:50 +02:00
locale.texi Split large string section; add truncation advice 2015-12-10 08:29:30 -08:00
macros.texi Fix exponents in manual. 2015-08-20 09:43:50 +02:00
maint.texi
math.texi
memory.texi Split large string section; add truncation advice 2015-12-10 08:29:30 -08:00
message.texi
nss.texi Document best practice for disconnected NSS modules. 2015-12-10 00:48:15 -05:00
nsswitch.texi
pattern.texi Avoid SIGFPE in wordexp [BZ #18100] 2015-03-23 16:12:38 +01:00
pipe.texi
platform.texi PowerPC: Extend Program Priority Register support 2015-08-19 17:43:26 -03:00
probes.texi
process.texi
resource.texi
search.texi
setjmp.texi
signal.texi
socket.texi
startup.texi
stdio-fp.c
stdio.texi Split large string section; add truncation advice 2015-12-10 08:29:30 -08:00
string.texi Split large string section; add truncation advice 2015-12-10 08:29:30 -08:00
summary.awk
sysinfo.texi Make obsolete syscall wrappers into compat symbols (bug 18472). 2015-12-14 22:52:15 +00:00
syslog.texi
terminal.texi
texinfo.tex
texis.awk
threads.texi Remove CPU set size checking from affinity functions [BZ #19143] 2015-11-24 17:21:01 +01:00
time.texi
tsort.awk
users.texi
xtract-typefun.awk