(SHT_GNU_LIBLIST): Added.
[glibc.git] / ChangeLog
blobce2df740a297e6af81104b3c9ac01427d0368ae0
1 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
3         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4         bits/errno.h
6 2001-10-07  Roland McGrath  <roland@frob.com>
8         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
10 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12         * elf/elf.h: Add more ELFOSABI_* constants.
14 2001-10-04  Ben Collins  <bcollins@debian.org>
16         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
17         decleration of __need_wchar_t.
19 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
21         * string/bits/string2.h (__strsep_g): Add prototype.
22         (__strsep): Use it.
23         * string/Versions (__strsep): Remove.
24         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
26 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
28         * manua/llio.texi: Clarify file references added by mmap.
29         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
31 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
33         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
34         Add sc_loadrs and sc_rbs_bas to match current kernel.
36 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
38         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
40         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
42 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
44         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
45         object has been bumped because of relocation dependency, avoid
46         duplicates in l_scope.
47         (show_scope): Fix typos.
48         * elf/Makefile: Add rules to build and run reldep6.
49         * elf/reldep6.c: New file.
50         * elf/reldep6mod0.c: New file.
51         * elf/reldep6mod1.c: New file.
52         * elf/reldep6mod2.c: New file.
53         * elf/reldep6mod3.c: New file.
54         * elf/reldep6mod4.c: New file.
56 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
58         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
59         sparc64_fixup_plt.
60         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
61         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
62         for non-lazy binding. Fix .plt[32768+] handling.
63         (elf_machine_plt_value): Don't add addend.
64         (elf_machine_rela): Call sparc64_fixup_plt instead of
65         elf_machine_fixup_plt.
66         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
67         dynamic linker at 0xfffff800XXXXXXXX.
69         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
71 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
73         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
75 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
77         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
78         declare __cmsg_data field if its size would be bigger than 0.
79         (CMSG_DATA): Adjust accordingly.
80         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
81         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
82         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
83         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
84         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
85         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
86         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
88 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
90         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
91         * iconvdata/testdata/IBM1160: New file.
92         * iconvdata/testdata/IBM1160..UTF8: New file.
93         * iconvdata/testdata/IBM1161: New file.
94         * iconvdata/testdata/IBM1161..UTF8: New file.
95         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
97 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
99         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
100         UL_SETFSIZE computations better.
102         * rt/Makefile: Remove use of filter for librt again.
104         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
105         UL_SETFSIZE computations better.
107         * string/Versions: Export __strsep for GLIBC_2.2.5.
108         * string/bits/string2.h: Define all __STRING_INLINE functions if
109         _FORCE_INLINES is defined.
110         Use int instead of char of parameter types.
111         (__strsep): Don't use __strsep_g.  Don't define it.
112         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
113         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
114         __strcpy_small.
115         (__stpcpy_a_small): Renamed from __stpcpy_small.
116         (__strcspn_c1): Don't define if _FORCE_INLINES.
117         (__strspn_c1): Likewise.
119 2001-09-22  Ben Collins  <bcollins@debian.org>
121         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
122         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
123         * sysdeps/ia64/bits/sigaction.h: Likewise.
124         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
126 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
128         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
130 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
132         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
134 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
136         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
138 2001-09-20  H.J. Lu  <hjl@gnu.org>
140         * include/dlfcn.h (__RTLD_SPROF): New definiton.
141         * elf/dl-open.c (dl_open_worker): Return immediately after loading
142         for __RTLD_SPROF.
143         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
144         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
146 2001-09-20  H.J. Lu  <hjl@gnu.org>
148         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
149         don't add 1.
151 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
153         * nss/getent.c: Accept -s parameter to overwrite rules in
154         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
156         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
157         with as many ".0" as necessary to form a complete address
158         inet_network understands.
160         * nss/getent.c: Various cleanups.  Use simpler and fewer function
161         calls.
163 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
165         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
166         _JMPBUF_UNWINDS.
167         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
169 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
171         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
172         IBM1161.
173         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
174         * iconvdata/ibm1160.c: New file.
175         * iconvdata/ibm1160.h: New file.
176         * iconvdata/ibm1161.c: New file.
177         * iconvdata/ibm1161.h: New file.
178         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
180 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
182         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
183         difference between base address and first PT_LOAD's virtual address,
184         not the base address.
186 2001-09-11  Tom Rix  <trix@redhat.com>
188         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
189         ifdef for __getopt_clean_environment.
190         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
192 2001-09-22  Andreas Jaeger  <aj@suse.de>
194         * elf/reldep4.c (main): Add proper prototype to fix warning.
196         * elf/reldep5.c (main): Remove unused variable.
198         * math/math_private.h: Add prototypes.
200 2001-09-21  Andreas Jaeger  <aj@suse.de>
202         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
203         * sysdeps/x86_64/Dist: New file.
204         * sysdeps/x86_64/soft-fp/Dist: New file.
206         * sysdeps/gnu/Dist: Remove eval.c.
208 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
210         * malloc/memusage.c (realloc): Don't count already allocated
211         memory in the sums.
212         (me): Always use dlsym() to find the real implementations.
214         * malloc/memusage.sh: Make -n option actually do something.
216 2001-09-20  Andreas Jaeger  <aj@suse.de>
218         * elf/elf.h (R_390_NUM): Correct value.
220         * Versions.def: Add missing versions 2.2.3 for libthread_db and
221         libpthread.
223         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
224         for x86-64, install x86-64 into */lib64.
226         * shlib-versions: Add x86-64.
228         * elf/elf.h: Add x86-64 relocations.
230 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
232         * po/fr.po: Update from translation team.
234 2001-09-19  Andreas Jaeger  <aj@suse.de>
236         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
237         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
238         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
239         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
240         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
241         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
242         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
243         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
244         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
245         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
246         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
247         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
248         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
249         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
250         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
251         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
252         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
253         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
254         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
255         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
256         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
257         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
258         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
259         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
260         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
261         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
262         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
263         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
264         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
265         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
266         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
267         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
268         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
269         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
270         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
271         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
272         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
273         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
274         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
275         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
276         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
277         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
278         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
279         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
280         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
281         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
282         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
283         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
284         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
285         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
286         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
287         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
288         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
289         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
290         * sysdeps/unix/x86_64/sysdep.S: New file.
291         * sysdeps/unix/x86_64/sysdep.h: New file.
292         * sysdeps/x86_64/Implies: New file.
293         * sysdeps/x86_64/Makefile: New file.
294         * sysdeps/x86_64/Versions: New file.
295         * sysdeps/x86_64/__longjmp.S: New file.
296         * sysdeps/x86_64/abort-instr.h: New file.
297         * sysdeps/x86_64/atomicity.h: New file.
298         * sysdeps/x86_64/bits/endian.h: New file.
299         * sysdeps/x86_64/bits/setjmp.h: New file.
300         * sysdeps/x86_64/bits/string.h: New file.
301         * sysdeps/x86_64/bp-asm.h: New file.
302         * sysdeps/x86_64/bsd-_setjmp.S: New file.
303         * sysdeps/x86_64/bsd-setjmp.S: New file.
304         * sysdeps/x86_64/dl-machine.h: New file.
305         * sysdeps/x86_64/elf/initfini.c: New file.
306         * sysdeps/x86_64/elf/start.S: New file.
307         * sysdeps/x86_64/ffs.c: New file.
308         * sysdeps/x86_64/ffsll.c: New file.
309         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
310         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
311         * sysdeps/x86_64/fpu/e_acosl.c: New file.
312         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
313         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
314         * sysdeps/x86_64/fpu/e_expl.c: New file.
315         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
316         * sysdeps/x86_64/fpu/e_log10l.S: New file.
317         * sysdeps/x86_64/fpu/e_log2l.S: New file.
318         * sysdeps/x86_64/fpu/e_logl.S: New file.
319         * sysdeps/x86_64/fpu/e_powl.S: New file.
320         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
321         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
322         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
323         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
324         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
325         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
326         * sysdeps/x86_64/fpu/fegetenv.c: New file.
327         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
328         * sysdeps/x86_64/fpu/fegetround.c: New file.
329         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
330         * sysdeps/x86_64/fpu/fesetenv.c: New file.
331         * sysdeps/x86_64/fpu/fesetround.c: New file.
332         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
333         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
334         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
335         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
336         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
337         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
338         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
339         * sysdeps/x86_64/fpu/s_atanl.c: New file.
340         * sysdeps/x86_64/fpu/s_cosl.S: New file.
341         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
342         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
343         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
344         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
345         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
346         * sysdeps/x86_64/fpu/s_logbl.c: New file.
347         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
348         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
349         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
350         * sysdeps/x86_64/fpu/s_rintl.c: New file.
351         * sysdeps/x86_64/fpu/s_significandl.c: New file.
352         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
353         * sysdeps/x86_64/fpu/s_sinl.S: New file.
354         * sysdeps/x86_64/fpu/s_tanl.S: New file.
355         * sysdeps/x86_64/gmp-mparam.h: New file.
356         * sysdeps/x86_64/hp-timing.c: New file.
357         * sysdeps/x86_64/hp-timing.h: New file.
358         * sysdeps/x86_64/htonl.S: New file.
359         * sysdeps/x86_64/memusage.h: New file.
360         * sysdeps/x86_64/setjmp.S: New file.
361         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
362         * sysdeps/x86_64/stackinfo.h: New file.
363         * sysdeps/x86_64/sysdep.h: New file.
364         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
366         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
367         L Moshier.
369 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
371         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
372         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
374 2001-09-18  Andreas Schwab  <schwab@suse.de>
376         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
377         list, now that l_scope is a pointer.
379         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
380         scope list.
382 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
384         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
385         (elf_machine_rela_relative): Add a missing declaration.
387 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
389         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
390         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
391         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
392         ldd-rewrite scripts.
394 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
396         * elf/ldd.bash.in: Update copyright message.
398 2001-09-17  H.J. Lu  <hjl@gnu.org>
400         * hurd/hurdmalloc.c (bcopy): Removed.
401         (realloc): Replace bcopy with memcpy.
402         * hurd/path-lookup.c (file_name_path_scan): Likewise.
403         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
404         * sunrpc/rpcinfo.c (pmapdump): Likewise.
406         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
407         (gethostbyaddr): Likewise.
408         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
410 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
412         * sysdeps/gnu/eval.c: Removed.
414 2001-09-18  Andreas Jaeger  <aj@suse.de>
416         * sysdeps/i386/fpu/s_logbl.S: Move to ...
417         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
419         * sysdeps/i386/fpu/s_rintl.S: Move to ...
420         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
422         * sysdeps/i386/fpu/s_significandl.S: Move to ...
423         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
425 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
427         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
428         nrules value.
430 2001-09-14  H.J. Lu  <hjl@gnu.org>
432         * sysdeps/mips/fpu/libm-test-ulps: Updated.
434 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
436         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
437         Patch by Florian La Roche <laroche@redhat.com>.
439         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
441         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
442         ETHER_CRC_LEN.
444 2001-09-14  Andreas Schwab  <schwab@suse.de>
446         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
447         Sumner <bls@sgi.com>.
448         * posix/execlp.c: Likewise.
450 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
452         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
453         is already found earlier in the search scope.
455 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
457         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
458         filter.
460 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
462         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
464 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
466         * config.h.in: Enforce optimization to be used.
467         * Makeconfig (preprocess-versions): Define ASSEMBLER.
468         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
469         * posix/Makefile (annexc-CFLAGS): Define to -O.
470         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
472 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
474         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
475         Patch by Stephan Kulow.
477 2001-09-08  Ben Collins  <bcollins@debian.org>
479         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
480         usage of RESOLVE() (r_type, not reloc->r_type).
482 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
484         * elf/dl-object.c: Avoid allocating extra memory block for name.
485         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
486         allocated separately.
487         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
489 2001-09-08  H.J. Lu  <hjl@gnu.org>
491         * po/zh_TW.po: Fix a typo.
493 2001-09-07  Tom Rix  <trix@redhat.com>
495         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
497 2001-08-26  Tom Rix  <trix@redhat.com>
499         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
500         command line options.
501         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
502         * sysdeps/unix/sysv/aix/start.c: Removed.
503         * sysdeps/unix/sysv/aix/start-libc.c: New file.
504         * sysdeps/unix/sysv/aix/init-first.c: New file.
505         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
507 2001-09-08  Ben Collins  <bcollins@debian.org>
509         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
510         * sysdeps/generic/dl-machine.h: Likewise.
511         * sysdeps/hppa/dl-fptr.c: Likewise.
512         * sysdeps/ia64/dl-fptr.c: Likewise.
513         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
514         * sysdeps/mips/dl-machine.h: Likewise.
515         * sysdeps/mips/mips64/dl-machine.h: Likewise.
516         * sysdeps/powerpc/dl-machine.c: Likewise.
518 2001-09-07  Ben Collins  <bcollins@debian.org>
520         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
522         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
524 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
526         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
527         dependencies if necessary.
529         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
530         loaded directly) determine length if l_initfini list by iterating
531         over its elements.  Minor optimizations.
532         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
533         for dependency objects.
534         If object was already loaded check whether any of the dependencies
535         is already on the relocation dependency list.  If yes, remove the
536         latter.  Minor optimizations.
537         * elf/dl-lookup.c (add_dependency): Add check for self reference of
538         maps here.  Search l_initfini list only if the object was loaded
539         directly and not only as a dependency.
540         (_dl_lookup_symbol): Add relocation dependency also if object
541         is not in global scope.  Remove test for self-reference here.
542         (_dl_lookup_versioned_symbol): Likewise.
543         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
544         element of first name record.
545         * elf/loadtest.c: Add some more test to recognize early if an object
546         wasn't unloaded.
547         * elf/Makefile: Add rules to build and run reldep5.
548         * elf/reldep5.c: New file.
549         * elf/reldepmod5.c: New file.
550         * elf/reldepmod6.c: New file.
552         * elf/reldep2.c: Fix typo.
554 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
556         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
557         elements.  Change l_scope to be a pointer only.
558         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
559         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
560         here add searchlist of newly open file to the dependency's scope.
561         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
562         only searchlist from its scope.  Free own scope array if necessary.
563         * elf/Makefile (tests): Add dblload and dblunload now.
565 2001-09-06  Andreas Jaeger  <aj@suse.de>
567         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
568         Stephen L Moshier.
570 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
572         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
573         they both fail.
574         * elf/dblload.c: New file.
575         * elf/dblloadmod1.c: New file.
576         * elf/dblloadmod2.c: New file.
577         * elf/dblloadmod3.c: New file.
578         * elf/dblunload.c: New file.
580 2001-09-04  Richard Henderson  <rth@redhat.com>
582         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
583         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
585 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
587         Correct very misleading message for error in failed runtime relocation.
588         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
589         place of the error.
590         (_dl_signal_cerror): Likewise.
591         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
592         * elf/dl-close.c: Likewise.
593         * elf/dl-deps.c: Likewise.
594         * elf/dl-load.c: Likewise.
595         * elf/dl-lookup.c: Likewise.
596         * elf/dl-open.c: Likewise.
597         * elf/dl-reloc.c: Likewise.
598         * elf/dl-sym.c: Likewise.
599         * elf/dl-version.c: Likewise.
600         * sysdeps/generic/dl-sysdep.c: Likewise.
602 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
604         * iconv/strtab.c (strtabinit): Initialize null Strent.
605         (newstring): Move len == 0 handling...
606         (strtabadd): ...here.
607         If len == 1, return null Strent.
608         When inserting a suffix of an existing string, check if
609         it is not equal to some suffix already recorded.
610         Copy left and right members over if adding longer string.
612 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
614         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
616         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
617         (__syscall_gethostname): Add prototype.
619 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
621         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
623 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
625         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
627 2001-08-27  Roland McGrath  <roland@frob.com>
629         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
630         short, copy that much into NAME anyway before returning error.
632 2001-09-01  Richard Henderson  <rth@redhat.com>
634         * sysdeps/alpha/elf/Dist: Remove file.
635         * sysdeps/alpha/elf/Makefile: Remove file.
636         * sysdeps/alpha/elf/crtbegin.S: Remove file.
637         * sysdeps/alpha/elf/crtend.S: Remove file.
638         * sysdeps/alpha/elf/initfini.c: New file.
640 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
642         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
643         * iconv/tst-iconv3.c: Likewise.
645 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
647         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
649 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
651         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
652         export it.
653         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
654         * iconv/iconv_prog.c (insert_cache): New function.
655         (print_known_names): If cache is used call insert_cache to use the
656         information from the cache [PR libc/2509].
658 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
660         * time/strptime.c (strptime_internal): Recognize 'l' format and
661         handle it like 'I' for symmetry with strftime.
663 2001-08-31  Richard Henderson  <rth@redhat.com>
665         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
666         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
667         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
668         (print_statistics): Make scalar unsigned long long.
669         * sysdeps/alpha/hp-timing.h: New file.
671 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
673         * stdio-common/perror.c (perror): Save errno early, pass it
674         down to perror_internal.
675         (perror_internal): Add errnum argument.
677 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
679         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
680         Don't add old memory content for R_ALPHA_REFQUAD.
682 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
684         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
685         memory correctly.
687         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
688         instead of open, __close instead of close, __getpagesize instead
689         of getpagesize.
691         * string/argz-stringify.c (__argz_stringify): Use __strnlen
692         instead of strnlen.
693         * include/string.h (strndupa): Redefine here to use __strnlen
694         instead of strnlen.
695         * string/strndup.c (__strndup): Use __strnlen not strnlen.
697         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
698         connected).
700 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
702         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
703         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
704         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
705         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
706         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
707         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
708         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
710 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
712         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
714 2001-08-30  Andreas Jaeger  <aj@suse.de>
716         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
717         contributed Stephen L Moshier.
719 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
721         * sunrpc/etc.rpc (sgi_fam): Add.
723 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
725         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
727 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
729         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
730         first is from a previous call.
731         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
733 2001-08-29  Andreas Schwab  <schwab@suse.de>
735         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
737 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
739         * config.make.in (INSTALL_SCRIPT): Define.
740         * Makeconfig (INSTALL_SCRIPT): Define.
741         * Makerules (do-install-script): New macro to install scripts using
742         INSTALL_SCRIPT.
743         (install-bin-script): New rule to install scripts with
744         do-install-script.
745         (install-bin-script-nosubdir): New rule.
746         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
747         (distinfo-vars): Add $(install-bin-script).
748         * Rules (others): Likewise.
749         * Makefile (glibcbug): Install with install-bin-script.
750         * debug/Makefile (xtrace): Likewise.
751         (catchsegv): Likewise.
752         * elf/Makefile (ldd): Likewise.
753         * malloc/Makefile (mtrace): Likewise.
754         * timezone/Makefile (tzselect): Likewise.
756 2001-08-29  H.J. Lu  <hjl@gnu.org>
758         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
759         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
760         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
762 2001-08-29  Andreas Schwab  <schwab@suse.de>
764         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
766 2001-08-28  H.J. Lu  <hjl@gnu.org>
768         * Makeconfig (combreloc-LDFLAGS): New variable.
769         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
770         * config.make.in (have-z-combreloc): New variable.
771         * configure.in: Substitute libc_cv_z_combreloc.
773 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
775         * po/sv.po: Update from translation team.
776         * po/fr.po: Likewise.
777         * po/da.po: Likewise.
779 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
781         * Makerules: Fix a typo: MD% -> MD5.
783 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
785         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
786         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
788 2001-08-28  Andreas Jaeger  <aj@suse.de>
790         * manual/libc-texinfo.sh: Add entry about free manuals.
792         * manual/contrib.texi (Contributors): Fix cross reference.
794         * manual/libc.texinfo (Copying): Include freemanuals.
796         * manual/Makefile (appendices): Add freemanuals.
798         * manual/freemanuals.texi: New file.
799         Patch by Brian Youmans <3diff@gnu.org>.
801         * manual/libm-err-tab.pl: Pretty print more platforms, print a
802         smaller table.
804         * manual/math.texi (Errors in Math Functions): Fix grammar, start
805         table on separate page.
806         Patch by Brian Youmans <3diff@gnu.org>.
808 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
810         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
811         the connection went down after we first used it try to connect
812         again and resend the message before printing to the console.
813         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
815 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
817         * string/tst-strlen.c (main): Test strnlen (, -1) too.
818         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
819         bit set.
821 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
823         * iconv/strtab.c (searchstring): Use correct length for comparison.
824         (strtabadd): Account total size correct if new string has old string as
825         substring.
827 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
829         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
831 2001-08-27  Andreas Jaeger  <aj@suse.de>
833         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
835         * math/libm-test.inc (j0_test): Add extra tests.
836         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
837         not x, in Hankel approximation.
838         Patches by Stephen L Moshier.
840 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
842         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
843         link_map.
845         * configure.in: Fix test for .rela.dyn section.
847         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
849 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
851         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
852         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
853         Pass type_class to _dl_lookup_*.
854         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
855         Pass around just type_class instead of noexec, noplt pair.
856         (_dl_lookup_versioned_symbol): Likewise.
857         (_dl_lookup_symbol_skip): Pass around just type_class instead of
858         noexec, noplt pair.
859         (_dl_lookup_versioned_symbol_skip): Likewise.
860         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
861         * elf/do-lookup.h (do_lookup): Likewise.
862         * include/link.h (struct link_map): Replace noexec and noplt fields
863         in l_lookup_cache with type_class field.
864         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
865         ELF_RTYPE_CLASS_COPY): Define.
866         Adjust prototypes for _dl_lookup_symbol and
867         _dl_lookup_versioned_symbol.
868         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
869         elf_machine_lookup_noexec_p): Remove.
870         (elf_machine_type_class): Define.
871         * sysdeps/arm/dl-machine.h: Likewise.
872         * sysdeps/hppa/dl-machine.h: Likewise.
873         * sysdeps/cris/dl-machine.h: Likewise.
874         * sysdeps/i386/dl-machine.h: Likewise.
875         * sysdeps/ia64/dl-machine.h: Likewise.
876         * sysdeps/m68k/dl-machine.h: Likewise.
877         * sysdeps/mips/mips64/dl-machine.h: Likewise.
878         * sysdeps/mips/dl-machine.h: Likewise.
879         * sysdeps/powerpc/dl-machine.h: Likewise.
880         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
881         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
882         * sysdeps/sh/dl-machine.h: Likewise.
883         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
884         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
886 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
888         * manual/message.texi (Advanced gettext functions): Change
889         description of plural forms for Slovak.
890         Reported by Marcel Telka <marcel@telka.sk>.
892         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
893         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
895 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
897         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
898         typo.  Patch by Florian La Roche <laroche@redhat.com>.
900 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
902         * include/link.h (struct link_map): Add l_lookup_cache element.
903         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
904         (RESOLVE_MAP): Likewise.
905         (_dl_relocate_object): Remove cache initialization.
906         * elf/dl-lookup.c: Rip out cache handling code.
907         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
908         declarations.
910         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
911         remove some __builtin_expect.
912         (_dl_lookup_versioned_symbol): Likewise.
914         * config.h.in: Add HAVE_Z_COMBRELOC.
915         * configure.in: Add test for -z combreloc.
917         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
918         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
919         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
920         case to almost no code.
922 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
924         * po/tr.po: Update from translation team.
926 2001-08-24  Andreas Jaeger  <aj@suse.de>
928         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
929         make clean works.
931 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
933         * elf/rtld.c (print_statistics): Printf % after percent values.
934         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
936         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
937         don't have to compute the hash value and initialize current_value.
938         Move reference_name variable to where it is needed.
939         (_dl_lookup_versioned_symbol): Likewise.
941 2001-08-24  Roland McGrath  <roland@frob.com>
943         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
944         Just test that strerror returns non-null for a few errno codes.
946 2001-08-23  Roland McGrath  <roland@frob.com>
948         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
949         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
951         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
953         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
954         __mach_reply_port.
956 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
958         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
959         returns NULL.
961         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
962         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
963         doesn't do it.
964         * elf/rtld.c: Include <sys/param.h>.
965         * elf/dl-reloc.c: Likewise.
967 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
969         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
970         empty to prevent junk from being generated.
971         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
973 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
975         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
976         records.  Rename endrel to relative, initialize it to r, and use it
977         in elf_machine_rel_relative calls.  Point r after relative relocs.
979 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
981         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
982         of R_386_NONE.
984 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
986         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
987         necessary.  Undefine newly defined macros at the end.
988         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
989         Rename from elf_machine_rel_relative.
990         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
991         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
992         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
993         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
994         Likewise.
995         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
996         Likewise.
997         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
998         Fix argument types.
999         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1000         Fix argument types.
1001         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1002         Likewise.  Fix argument types.
1003         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1004         Likewise.  Fix argument types.
1005         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1006         Fix argument types.
1007         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1008         ElfW(Rel) in argument.
1009         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1010         function.
1012 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
1014         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1016 2001-08-24  Andreas Jaeger  <aj@suse.de>
1018         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1019         Stephen L Moshier <moshier@mediaone.net>.
1021 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1023         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1024         first if RELCOUNT is set.
1026         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1027         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1028         elf_machine_rel_relative.
1029         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1030         Minor optimizations.
1031         * sysdeps/arm/dl-machine.h: Likewise.
1032         * sysdeps/cris/dl-machine.h: Likewise.
1033         * sysdeps/hppa/dl-machine.h: Likewise.
1034         * sysdeps/i386/dl-machine.h: Likewise.
1035         * sysdeps/ia64/dl-machine.h: Likewise.
1036         * sysdeps/m68k/dl-machine.h: Likewise.
1037         * sysdeps/mips/dl-machine.h: Likewise.
1038         * sysdeps/powerpc/dl-machine.h: Likewise.
1039         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1040         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1041         * sysdeps/sh/dl-machine.h: Likewise.
1042         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1043         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1045 2001-08-23  Roland McGrath  <roland@frob.com>
1047         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1049         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1050         sysdeps/mach version.  Implement counting ("recursive") mutexes
1051         on top of cthreads mutexes.
1052         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1054         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1055         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1056         (__libc_cleanup_region_start, __libc_cleanup_region_end,
1057         __libc_clean_end): Define these to call the cleanup function after
1058         normal exit when they're supposed to.
1060         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1061         Take new first arg DOIT, a boolean saying whether to really install
1062         any cleanup handler.
1063         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1064         (__libc_cleanup_end): Likewise.
1065         * sysdeps/generic/bits/libc-lock.h: Same changes.
1066         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1067         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1068         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1069         Likewise.
1070         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1071         * sysdeps/generic/bits/stdio-lock.h
1072         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1074 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1076         * elf/ldconfig.c (search_dir): Remove stale symlinks.
1078 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1080         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1081         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1082         lookups in cache.
1083         (_dl_lookup_versioned_symbol): Likewise.
1084         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1085         relocation lookup.
1086         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1087         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1088         (lookup_cache, lookup_cache_versioned): Add declarations.
1090 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1092         * stdlib/tst-random.c (main): Swap parameters in fail call.
1093         Patch by Pete Bevin <pete@petebevin.com>.
1095 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1097         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1099 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1101         * malloc/obstack.c: Indent preprocessor directives.
1102         Patch by Jim Meyering <meyering@ascend.com>.
1104         * po/ja.po: Update from translation team.
1106 2001-08-23  Roland McGrath  <roland@frob.com>
1108         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1110         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1111         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1113 2001-08-22  Roland McGrath  <roland@frob.com>
1115         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1116         __libc_lock_define_recursive.
1117         * elf/dl-open.c: Don't declare it here any more.
1118         * elf/dl-close.c: Likewise.
1119         * elf/dl-lookup.c: Likewise.
1120         * elf/dl-iteratephdr.c: Likewise.
1121         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1122         __libc_lock_unlock_recursive.
1123         * elf/dl-close.c (_dl_close): Likewise
1124         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1125         * elf/dl-open.c (_dl_open): Likewise
1127         * sysdeps/generic/bits/libc-lock.h
1128         (__libc_lock_define_recursive): New macro.
1129         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1130         (_IO_lock_lock): Use __libc_lock_lock_recursive.
1131         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1133         * conform/conformtest.pl (checknamespace): Sort the output list.
1135         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1136         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1137         definitions conditional on [__USE_XOPEN].
1139         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1140         these unconditionally, not only use [__USE_BSD], so as to match
1141         the sysdeps/unix/sysv/linux files.
1143 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1145         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1146         avoid warnings.
1148         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1149         DL_LOOKUP_ADDRESS.
1151 2001-08-22  Roland McGrath  <roland@frob.com>
1153         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1154         conditionalization of sa_handler/sa_sigaction member types to
1155         match the sysdeps/unix/sysv/linux file.
1157 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1159         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1160         symbol sizes a bit better.
1162         * sysdeps/ia64/strncpy.S: Complete rewrite.
1163         Contributed by Jakub Jelinek <jakub@redhat.com>.
1165         * string/stratcliff.c (main): Add strncpy test.
1167 2001-08-22  Roland McGrath  <roland@frob.com>
1169         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1170         and don't declare unsetenv or _environ directly.
1171         (unsetenv): Return int, not void.  Use __environ instead of _environ.
1173 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
1175         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1176         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1177         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1178         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1179         test for cmsg struct size.
1181 2001-04-23  Paul Eggert  <eggert@twinsun.com>
1183         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1184         Rename __argc to ___argc in prototypes to avoid compatibility
1185         problems with systems that reserve the identifier "__argc".
1186         Similarly for __argv.
1188 2001-08-21  Roland McGrath  <roland@frob.com>
1190         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
1192         * mach/Makefile (tests): Removed.
1193         * mach/hello.c: File removed.
1195 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1197         * po/sv.po: Update from translation team.
1199         * stdio-common/vfscanf.c: Fix handling of %l[].
1200         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
1202         * libio/Makefile (tests): Add tst-sscanf.
1203         * libio/tst-sscanf.c: New file.
1205         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
1206         * malloc/mtrace.c (tr_where): dli_sname always points to a
1207         non-empty string if != NULL.
1208         Reported by Tim Janik <timj@gtk.org>.
1210 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
1212         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1213         buf.  Free resources on failure.
1214         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1215         (makefd_xprt): Likewise.
1216         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1217         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1218         * sunrpc/auth_unix.c (authunix_create): Likewise.
1220 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
1222         * string/strnlen.c: Remove.
1223         * sysdeps/generic/strnlen.c: New.
1224         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1226 2001-08-21  Roland McGrath  <roland@frob.com>
1228         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1229         as a macro, not an extern inline function.
1231         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1232         * Versions.def (libc): Add GLIBC_2.2.5 set.
1233         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1234         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1236 2001-08-20  Roland McGrath  <roland@frob.com>
1238         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1239         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1241 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1243         * string/bits/string2.h: Remove strnlen optimization here.
1244         * sysdeps/i386/i486/bits/string.h: Add it here.
1246 2001-08-21  Wolfram Gloger  <wg@malloc.de>
1248         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1250 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1252         * po/gl.po: Update from translation team.
1254 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1256         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1257         * misc/err.c (convert_and_print): Likewise.
1259         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1260         function calls.
1262 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1264         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1265         change of the gregset_t type.
1266         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1268 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1270         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1272 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1274         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1276         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
1278 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
1280         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1281         before calling the cthreads initialization code.
1283 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1285         * argp/argp-help.c: Fix two problems introduced in last change.
1287         * include/dirent.h: Include <dirstream.h> first.
1289 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
1291         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1293         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1294         * sunrpc/xdr_rec.c: Likewise.
1295         * sunrpc/xdr_mem.c: Likewise.
1296         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1297         * sunrpc/rpc_cmsg.c: Likewise.
1298         * sunrpc/getrpcport.c (getrpcport): Likewise.
1299         * sunrpc/clnt_simp.c (callrpc): Likewise.
1300         * sunrpc/clnt_gen.c (clnt_create): Likewise.
1301         * string/envz.c: Likewise.
1303         * po/ko.po: Update from translation team.
1305         * argp/argp-help.c: Handle wide oriented stderr stream.
1307 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
1309         * sysdeps/generic/strtol.c: Little optimizations.  Add some
1310         __builtin_expect.
1312         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1314         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1315         * wcsmbs/wcwidth.c (wcwdith): Likewise.
1316         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1318         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1320         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1322         * time/time.h (struct timespec): Use __time_t for tv_sec element.
1324         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
1325         wchar_t for function declarations and defintions.
1327         * misc/sys/select.h: Define __need_time_t before including <time.h>.
1328         Define suseconds_t if it hasn't happened yet.
1330         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1332         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1334         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1335         <stddef.h>.
1337         * conform/data/stddef.h-data: Remove wint_t.
1339         * conform/conformtest.pl: Change namespace test to take #undef
1340         lines into account.
1342         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1344         * conform/data/sys/socket.h-data: Add sockatmark.
1346 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1348         * io/fts.c: Update from recent BSD source.
1350 2001-08-17  Roland McGrath  <roland@frob.com>
1352         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1353         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1354         Likewise.
1356 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1358         * locale/duplocale.c (__duplocale): Also initialize the special
1359         __ctype_* elements.
1361         * conform/data/netdb.h-data: Adjust gai_strerror return type.
1363 2001-08-17  Andreas Jaeger  <aj@suse.de>
1365         * misc/getpass.c: Include wchar.h for prototypes.
1366         * malloc/obstack.c: Likewise.
1368 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1370         * sunrpc/svc_simple.c (universal): Use __write instead of write.
1372         * wcsmbs/wcscoll.c: Also define __wcscoll.
1373         * include/wchar.h: Declare __wcscoll.
1375         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1376         * libio/vwprintf.c: Likewise.
1377         * libio/wprintf.c: Likewise.
1379         * iconv/gconv_cache.c: Use __munmap instead of munmap.
1381 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
1383         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1384         instead of mbrtowc.
1385         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1386         wcslen, and __wcscoll instead of wcscoll.
1388         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1390         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1391         __getuid instead of getuid.
1393         * stdio-common/perror.c (perror): Use __close instead of close.
1394         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1395         * libio/freopen.c (freopen): Likewise.
1396         * libio/freopen64.c (freopen64): Likewise.
1398         * libio/tst-ungetwc2.c (main): Define str const.
1400         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1401         * libio/fwprintf.c: Also define __fwprintf.
1402         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1403         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1404         * assert/assert-perr.c: Likewise.
1405         * assert/assert.c: Likewise.
1406         * gmon/gmon.c: Likewise.
1407         * inet/rcmd.c: Likewise.
1408         * malloc/obstack.c: Likewise.
1409         * misc/err.c: Likewise.
1410         * misc/error.c: Likewise.
1411         * misc/getpass.c: Likewise.
1412         * posix/getopt.c: Likewise.
1413         * resolv/res_hconf.c: Likewise.
1414         * stdio-common/perror.c: Likewise.
1415         * stdio-common/psignal.c: Likewise.
1416         * stdlib/fmtmsg.c: Likewise.
1417         * sunrpc/auth_unix.c: Likewise.
1418         * sunrpc/clnt_perr.c: Likewise.
1419         * sunrpc/clnt_tcp.c: Likewise.
1420         * sunrpc/clnt_udp.c: Likewise.
1421         * sunrpc/clnt_unix.c: Likewise.
1422         * sunrpc/svc_simple.c: Likewise.
1423         * sunrpc/svc_tcp.c: Likewise.
1424         * sunrpc/svc_udp.c: Likewise.
1425         * sunrpc/svc_unix.c: Likewise.
1426         * sunrpc/xdr.c: Likewise.
1427         * sunrpc/xdr_array.c: Likewise.
1428         * sunrpc/xdr_rec.c: Likewise.
1429         * sunrpc/xdr_ref.c: Likewise.
1430         * sysdeps/generic/wordexp.c: Likewise.
1432         * po/it.po: Update from translation team.
1434         * misc/err.c: Handle wide oriented stderr stream.
1436 2001-08-14  Tom Rix  <trix@redhat.com>
1438         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1439         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1441 2001-08-13  Tom Rix  <trix@redhat.com>
1443         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1444         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1445         and __intptr_t.
1447 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1449         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1450         Store the access registers to the ucontext structure.
1451         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1452         Likewise.
1454         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1455         Load the access registers from the ucontext structure.
1456         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1457         Likewise.
1459         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1460         offsets to the new ucontext layout.
1461         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1463         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1464         of the ucontext structure.
1465         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1467 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1469         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1470         (error_at_line): Likewise.
1472         * stdio-common/perror.c (perror): Implement according to standard.
1473         The stream orientation must not be changed if the stream was not
1474         oriented before the call.
1475         * stdio-common/Makefile (tests): Add tst-perror.
1476         * stdio-common/tst-perror.c: New file.
1479 See ChangeLog.12 for earlier changes.