glibc/misc/Versions
Joseph Myers d051b143f7 Fix sem_* tdelete, tfind, tsearch, twalk namespace (bug 18536).
The sem_* functions bring in references to tdelete, tfind, tsearch and
twalk.  But the t* functions are XSI-shaded, while sem_* aren't.  This
patch fixes this by using __t* instead, exporting those functions from
libc at version GLIBC_PRIVATE (since sem_* are in libpthread) and
using libc_hidden_* for the benefit of calls within libc.

Tested for x86_64 and x86 (testsuite, and comparison of disassembly of
installed stripped shared libraries).  libpthread gets changes from
PLT reordering; addresses in libc change because of PLT / dynamic
symbol table changes.

	[BZ #18536]
	* misc/tsearch.c (__tsearch): Use libc_hidden_def.
	(__tfind): Likewise.
	(__tdelete): Likewise.
	(__twalk): Likewise.
	* misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
	__twalk to GLIBC_PRIVATE.
	* include/search.h (__tsearch): Use libc_hidden_proto.
	(__tfind): Likewise.
	(__tdelete): Likewise.
	(__twalk): Likewise.
	* nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
	Call __tdelete instead of tdelete.
	* nptl/sem_open.c (check_add_mapping): Call __tfind instead of
	tfind.  Call __tsearch instead of tsearch.
	* sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
	* conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
	Remove variable.
	(test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
2015-06-17 20:11:58 +00:00

159 lines
2.7 KiB
Plaintext

libc {
GLIBC_2.0 {
# global variables
___brk_addr; __curbrk; __progname; __progname_full;
# interface of malloc functions
__sbrk; __getpagesize;
# functions used in other libraries
__select;
# variables in normal name space
error_message_count; error_one_per_line; error_print_progname;
# variables in normal name space
loc1; loc2; locs;
program_invocation_name; program_invocation_short_name;
# a*
acct; addmntent; advance;
# b*
brk;
# c*
chflags; chroot; closelog;
# d*
daemon; dirname;
# e*
ecvt; ecvt_r; endfsent; endmntent; endttyent; endusershell;
# e*
err; error; error_at_line; errx;
# f*
fchflags; fcvt; fcvt_r; fdatasync; fsync; ftruncate;
# g*
gcvt; get_avphys_pages; get_nprocs; get_nprocs_conf; get_phys_pages;
getfsent; getfsfile; getfsspec; gethostid; gethostname; getmntent;
getmntent_r; getpagesize; getpass; getttyent; getttynam; getusershell;
gtty;
# h*
hasmntopt; hcreate; hcreate_r; hdestroy; hdestroy_r; hsearch; hsearch_r;
# i*
insque; ioctl;
# j*
jrand48; jrand48_r; lfind; lsearch;
# m*
madvise; mkstemp; mktemp; mlock; mlockall; mmap; mount; mprotect; msync;
munlock; munlockall; munmap;
# o*
openlog;
# p*
ptrace;
# q*
qecvt; qecvt_r; qfcvt; qfcvt_r; qgcvt;
# r*
readv; reboot; remque; revoke;
# s*
sbrk; select; setdomainname; setfsent; sethostent; sethostid; sethostname;
setlogmask; setmntent; setregid; setreuid; setttyent; setusershell; sstk;
stty; sync; syscall; syslog;
# t*
tdelete; tfind; truncate; tsearch; ttyslot; twalk;
# u*
ualarm; usleep; ustat; utimes;
# v*
verr; verrx; vhangup; vsyslog; vwarn; vwarnx;
# w*
warn; warnx;
# w*
writev;
}
GLIBC_2.1 {
# f*
ftruncate64;
# m*
mmap64;
# t*
tdestroy; truncate64;
}
GLIBC_2.2 {
# g*
getloadavg;
# m*
mincore; mkdtemp; mkstemp64;
# p*
posix_madvise;
}
GLIBC_2.3 {
# f*
fgetxattr; flistxattr; fremovexattr; fsetxattr;
futimes;
# g*
getxattr;
# l*
listxattr;
lgetxattr; llistxattr; lremovexattr; lsetxattr;
lutimes;
# r*
removexattr;
# s*
setxattr;
}
GLIBC_2.3.3 {
remap_file_pages;
}
GLIBC_2.4 {
futimesat;
__syslog_chk; __vsyslog_chk;
}
GLIBC_2.7 {
mkostemp; mkostemp64;
}
GLIBC_2.10 {
preadv; preadv64; pwritev; pwritev64;
}
GLIBC_2.11 {
mkstemps; mkstemps64; mkostemps; mkostemps64;
}
GLIBC_2.14 {
syncfs;
}
GLIBC_2.16 {
__getauxval; getauxval;
}
GLIBC_PRIVATE {
__madvise;
__mktemp;
__libc_ifunc_impl_list;
__tdelete; __tfind; __tsearch; __twalk;
}
}