2.3.4-20
[glibc.git] / ChangeLog
blob95417faa1fc8207b5bc05476fae2c1bd65d4e491
1 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3         * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
5 2005-04-01  Ulrich Drepper  <drepper@redhat.com>
7         * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
8         * wcsmbs/wctob.c (wctob): Likewise.
9         * wcsmbs/wchar.h (btowc): Add optimized inline function.
10         (wctob): Likewise.
12 2005-03-31  Jakub Jelinek  <jakub@redhat.com>
14         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
15         equivalent, but shorter instructions.
16         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
18         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
19         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
20         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21         * sysdeps/x86_64/strchr.S: Likewise.
22         * sysdeps/x86_64/memset.S: Likewise.
23         * sysdeps/x86_64/strcspn.S: Likewise.
24         * sysdeps/x86_64/strcmp.S: Likewise.
25         * sysdeps/x86_64/elf/start.S: Likewise.
26         * sysdeps/x86_64/strspn.S: Likewise.
27         * sysdeps/x86_64/dl-machine.h: Likewise.
28         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
29         * sysdeps/x86_64/bsd-setjmp.S: Likewise.
30         * sysdeps/x86_64/strtok.S: Likewise.
32 2005-03-30  H.J. Lu  <hongjiu.lu@intel.com>
34         * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
35         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
36         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
37         * sysdeps/ia64/fpu/e_acosh.S: Likewise.
38         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
39         * sysdeps/ia64/fpu/e_acos.S: Likewise.
40         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
41         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
42         * sysdeps/ia64/fpu/e_asin.S: Likewise.
43         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
44         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
45         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
46         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
47         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
48         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
49         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
50         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
51         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
52         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
53         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
54         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
55         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
56         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
57         * sysdeps/ia64/fpu/e_expf.S: Likewise.
58         * sysdeps/ia64/fpu/e_exp.S: Likewise.
59         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
60         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
61         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
62         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
63         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
64         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
65         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
66         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
67         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
68         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
69         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
70         * sysdeps/ia64/fpu/e_log2.S: Likewise.
71         * sysdeps/ia64/fpu/e_logf.S: Likewise.
72         * sysdeps/ia64/fpu/e_logl.S: Likewise.
73         * sysdeps/ia64/fpu/e_log.S: Likewise.
74         * sysdeps/ia64/fpu/e_powf.S: Likewise.
75         * sysdeps/ia64/fpu/e_powl.S: Likewise.
76         * sysdeps/ia64/fpu/e_pow.S: Likewise.
77         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
78         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
79         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
80         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
81         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
82         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
83         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
84         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
85         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
86         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
87         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
88         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
89         * sysdeps/ia64/fpu/libm_error.c: Likewise.
90         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
91         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
92         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
93         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
94         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
95         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
96         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
97         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
98         * sysdeps/ia64/fpu/libm_support.h: Likewise.
99         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
100         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
101         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
102         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
103         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
104         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
105         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
106         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
107         * sysdeps/ia64/fpu/s_cos.S: Likewise.
108         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
109         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
110         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
111         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
112         * sysdeps/ia64/fpu/s_erf.S: Likewise.
113         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
114         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
115         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
116         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
117         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
118         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
119         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
120         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
121         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
122         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
123         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
124         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
125         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
126         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
127         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
128         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
129         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
130         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
131         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
132         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
133         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
134         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
135         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
136         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
137         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
138         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
139         * sysdeps/ia64/fpu/s_logb.S: Likewise.
140         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
141         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
142         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
143         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
144         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
145         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
146         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
147         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
148         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
149         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
150         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
151         * sysdeps/ia64/fpu/s_round.S: Likewise.
152         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
153         * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
154         * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
155         * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
156         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
157         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
158         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
159         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
160         * sysdeps/ia64/fpu/s_tan.S: Likewise.
161         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
162         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
163         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
164         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
165         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
166         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
168         * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
169         * sysdeps/ia64/fpu/libm_error_codes.h: New file.
171         * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
172         2005-03-21.
173         * sysdeps/ia64/fpu/import_file.awk: Likewise.
174         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
175         * sysdeps/ia64/fpu/Makefile: Likewise.
177 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
179         * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
180         avoid calling mbsrtowcs twice.
182 2005-03-29  Roland McGrath  <roland@redhat.com>
184         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
185         function, inline broken out of ...
186         (DL_SYSDEP_OSCHECK): ... here.  Use that.
187         Do the discovery and set GLRO(dl_osversion) if successful,
188         if __LINUX_KERNEL_VERSION <= 0.
189         * elf/dl-load.c: Don't include dl-osinfo.h here.
191 2005-03-29  Alfred M. Szmidt  <ams@gnu.org>
193         * manual/install.texi (Tools for Compilation): GNU binutils 2.15
194         is now needed.
196 2005-03-19  Bruno Haible  <bruno@clisp.org>
198         * intl/dcigettext.c (struct known_translation_t): Change type of
199         domainname field to 'const char *'.
200         (DCIGETTEXT): Remove const-cast.
202 2005-03-29  Thorsten Kukuk  <kukuk@suse.de>
204         [BZ #661]
205         * grp/initgroups.c (internal_getgrouplist): Check if we have
206         enough space before adding the primary group to the list.
208         * posix/tst-execle1.c (do_test): Fix execle arguments.
209         * posix/tst-execle2.c (do_test): Likewise.
211 2005-03-28  Roland McGrath  <roland@redhat.com>
213         * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
214         [__USE_GNU] (NL_LOCALE_NAME): New macro.
215         * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
216         return locale name string for the category.
218 2005-03-25  Jakub Jelinek  <jakub@redhat.com>
220         * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
221         <wcstol_l.c>.
223 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
225         * sysdeps/mips/atomicity.h: Remove unused file.
226         * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
227         * sysdeps/mips/dl-tls.h: New file.
228         * sysdeps/mips/libc-tls.c: New file.
229         * sysdeps/mips/tls-macros.h: New file.
230         * sysdeps/mips/bits/atomic.h: New file.
231         * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
232         * sysdeps/mips/elf/configure.in: New file.
233         * sysdeps/mips/elf/configure: Generated.
234         * sysdeps/mips/sys/asm.h: New file.
235         * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
236         * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
237         clone support.
238         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
239         (INTERNAL_SYSCALL_NCS): New.
240         (INTERNAL_SYSCALL): Update for non-constant support.
241         (internal_syscall0): Likewise.
242         (internal_syscall1): Likewise.
243         (internal_syscall2): Likewise.
244         (internal_syscall3): Likewise.
245         (internal_syscall4): Likewise.
246         (internal_syscall5): Likewise.
247         (internal_syscall6): Likewise.
248         (internal_syscall7): Likewise.
249         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
250         Update to match the kernel.
251         (SIGEV_CALLBACK): Likewise.
252         (SIGEV_THREAD_ID): Likewise.
254 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
256         [BZ #783]
257         * elf/tst-auditmod1.c: Add MIPS support.
258         * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
259         (La_mips_32_retval): New.
260         (La_mips_64_regs): New.
261         (La_mips_64_retval): New.
262         (struct audit_ifaces): Add MIPS entries.
263         * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
264         (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
265         ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
266         ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
267         (RTLD_START): Align the stack before calling _dl_init_internal.
268         Use .ent for _dl_start_user.
269         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
270         (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
271         (elf_machine_runtime_setup): Use "auto inline".
272         (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
273         (elf_machine_got_rel): Likewise.  Use RESOLVE_MAP.
274         * sysdeps/mips/dl-trampoline.c: New file.
275         * sysdeps/mips/bits/link.h: New file.
276         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
277         (internal_syscall5): Use register operands instead of non-lvalue
278         memory operands.
279         (internal_syscall6): Likewise.
280         (internal_syscall7): Likewise.
282 2005-03-27  Andreas Jaeger  <aj@suse.de>
284         * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
285         avoid warnings with older compiler.
286         (__builtin___memcpy_chk): Likewise.
287         (__builtin___memmove_chk: Likewise.
288         (__builtin___mempcpy_chk): Likewise.
289         (__builtin___memset_chk): Likewise.
290         (__builtin___stpcpy_chk): Likewise.
291         (__builtin___strcat_chk): Likewise.
292         (__builtin___strcpy_chk): Likewise.
293         (__builtin___strncat_chk): Likewise.
294         (__builtin___strncpy_chk): Likewise.
295         (__builtin_object_size): Likewise.
297 2005-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
299         * elf/tls-macros.h: Correct typo.
301 2005-03-23  Jakub Jelinek  <jakub@redhat.com>
303         * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
304         (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
306 2005-03-22  Roland McGrath  <roland@redhat.com>
308         * locale/setlocale.c: Comment typo.
310         * scripts/versions.awk: No errors for GLIBC_PRIVATE.
312         * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
314         * scripts/versions.awk: Print all errors and die at the end.
315         Use library name in versions array keys.
317 2005-03-22  Daniel Jacobowitz  <dan@codesourcery.com>
319         * elf/elf.h (PT_ARM_EXIDX): New macro.
321 2005-03-21  Thorsten Kukuk  <kukuk@suse.de>
323         * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
324         Convert correctly between long/int on 64bit big-endian.
326 2005-03-21  David Mosberger  <davidm@hpl.hp.com>
328         * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
329         with more than 8 output registers.  Fix this by passing original
330         ar.pfs to _mcount_ret_helper via r3.
332 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
334         [BZ #786]
335         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
336         GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
337         * elf/Makefile: Add rules to build and run tst-tls15.
338         * elf/tst-tls15.c: New test.
339         * elf/tst-tlsmod15a.c: New file.
340         * elf/tst-tlsmod15b.c: New file.
342 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
344         * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
346 2005-03-20  Alfred M. Szmidt  <ams@gnu.org>
348         * elf/dl-open.c (dl_open_worker): Fix typo.
350 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
352         * malloc/malloc.c (public_cALLOc): We cannot skip the memory
353         clearing if perturb_byte != 0.
355 2005-03-20  Jakub Jelinek  <jakub@redhat.com>
357         * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
358         instead of __off_t for last argument.
359         * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
360         * debug/tst-lfschk1.c: New test.
361         * debug/tst-lfschk2.c: New test.
362         * debug/tst-lfschk3.c: New test.
364 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
366         * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
367         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
368         and __USE_XOPEN guards to match linux/bits/termios.h.
369         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
370         (CMSPAR): Define.
371         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
373 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
375         * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
377 2005-02-27  Denis Barbier  <barbier@debian.org>
379         [BZ #38]
380         * locale/iso-4217.def: Add CSD currency.
382 2005-03-19  Ulrich Drepper  <drepper@redhat.com>
384         * inet/test-ifaddrs.c: Use test-skeleton.
385         * inet/test_ifindex.c: Likewise.
387         * elf/dl-lookup.c (add_dependency): Always search l_initfini if
388         the list exists.
390         * elf/Makefile: Add rules to build and run order2.
391         * elf/order2.c: New file.
392         * elf/order2mod1.c: New file.
393         * elf/order2mod2.c: New file.
394         * elf/order2mod3.c: New file.
395         * elf/order2mod4.c: New file.
397 2005-03-19  Jakub Jelinek  <jakub@redhat.com>
399         * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
400         it has been incremented before.
402 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
404         * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
405         function _dl_sort_fini.
406         (_dl_sort_fini): New function.
407         * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
408         * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
409         destructors to call them in the right order.
411 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
413         * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
414         (La_ppc64_retval): Correct size of lrc_fp.
415         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
416         Fix up ABI problems and complete function.
418 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
420         * math/test-misc.c (main): Add some more tests.
422 2005-03-17  Jakub Jelinek  <jakub@redhat.com>
424         * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
425         __wcrtomb.  Check return values of other __wcrtomb calls.
426         * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
427         Change mbclen type to size_t.
428         (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
429         Handle mb chars whose upper case doesn't have multibyte representation
430         in locale's charset.
432 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
434         * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
435         public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
436         #ifndef _LIBC.
438         [BZ #779]
439         * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
440         initialized.
442 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
444         * misc/sys/cdefs.h (__always_inline): Define.
445         * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
446         Use __always_inline instead of __inline.
447         * socket/bits/socket2.h (recv, recvfrom): Likewise.
448         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
449         * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
450         __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
451         __strcat_ichk, __strncat_ichk): Use __always_inline instead of
452         __inline__ __attribute__ ((__always_inline__)).
454 2005-03-09  Jakub Jelinek  <jakub@redhat.com>
456         * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
457         (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
458         readlink.  Add some more tests for read, pread, pread64, fgets and
459         fgets_unlocked.
461         * posix/bits/unistd.h (read, pread, pread64, readlink,
462         getcwd, getwd): Change macros into extern inline functions.
463         (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
464         __getcwd_alias, __getwd_alias): New prototypes.
465         * socket/bits/socket2.h (recv, recvfrom): Change macros into
466         extern inline functions.
467         (__recv_alias, __recvfrom_alias): New prototypes.
468         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
469         into extern inline functions.
470         (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
472         * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
473         to __pread.
474         * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
475         to __pread64.
477 2005-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
479         * configure.in: Use %function instead of @function.
481 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
483         * include/link.h (struct link_map): Remove l_opencount.  Add l_removed.
484         Change type of l_idx to int.
485         * elf/dl-close.c: Basically rewrite.  Do not use l_opencount to
486         determine whether a DSO has to be unloaded.  Instead compute this
487         in this function.
488         * elf/dl-deps.c: No need to manipulate l_opencount anymore.
489         * elf/dl-lookup.c: Likewise.
490         * elf/rtld.c: Likewise
491         * elf/dl-open.c: Likewise.  Use l_init_called to determine whether
492         object was just loaded.
493         * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
494         * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
495         is about to be unloaded as a match.
496         (_dl_map_object): Likewise.
497         * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
498         to be unloaded.
499         * elf/circleload1.c: Don't use l_opencount anymore.
500         * elf/neededtest.c: Likewise.
501         * elf/neededtest2.c: Likewise.
502         * elf/neededtest3.c: Likewise.
503         * elf/neededtest4.c: Likewise.
504         * elf/unload.c: Likewise.
505         * elf/unload2.c: Likewise.
506         * elf/loadtest.c: Likewise.
508         * elf/rtld.c: Preloading errors are now never fatal.
510 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
512         * elf/Makefile: Add rules to build and run unload5 test.
513         * elf/unload5.c: New file.
515 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
517         * elf/Makefile: Add rules to build and run unload4 test.
518         * elf/unload4.c: New file.
519         * elf/unload4mod1.c: New file.
520         * elf/unload4mod2.c: New file.
521         * elf/unload4mod3.c: New file.
522         * elf/unload4mod4.c: New file.
524 2005-03-17  Roland McGrath  <roland@redhat.com>
526         * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
528 2005-03-16  Richard Henderson  <rth@redhat.com>
530         * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
531         of internal.
532         (__hidden_def1, __hidden_dot_def1): Remove.
533         (__hidden_def2, __hidden_def3): Remove.
534         (__hidden_ver1): New.
535         (hidden_ver, hidden_def, hidden_weak): Use it.
536         (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
537         version of the macro.
539         * include/wchar.h (__wcscoll): Remove.
540         * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
541         * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
543 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
545         * elf/elf.h: Define MIPS TLS relocations.
547 2005-03-16  Ulrich Drepper  <drepper@redhat.com>
549         * elf/circleload1.c (main): Pretty printing.
551 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
553         * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
554         Patch by Dan Kegel <dank@kegel.com>.
556         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
557         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
558         Add inline keyword.
559         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
560         elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
561         attribute.
562         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
563         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.  Change
564         static inline into auto inline.
565         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
566         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
567         * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
568         Likewise.
569         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
570         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
571         Likewise.
573 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
575         [BZ #789]
576         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
577         Remove memory clobber.
579         * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
580         thread-safe.  Subtract GLRO(dl_hp_timing_overhead) from Diff.
582 2005-03-14  Jakub Jelinek  <jakub@redhat.com>
584         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
585         asm/types.h.
587 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
589         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
590         MAP_NONBLOCK.
591         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
592         Correct MAP_GROWSDOWN value.
594 2005-03-13  Roland McGrath  <roland@redhat.com>
596         * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
597         version if there is one.  Only #error if macros are then undefined.
598         * sysdeps/generic/tls-macros.h: New file.
600 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
602         * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
603         * sysdeps/hppa/configure: Regenerated.
605 2005-03-08  Roland McGrath  <roland@redhat.com>
607         * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
608         array types match exactly in C alias decls.
610 2005-03-07  Ulrich Drepper  <drepper@redhat.com>
612         * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
613         mallopt appropriately.
614         * malloc/malloc.h: Define M_PERTURB.
615         * malloc/malloc.c (perturb_byte): New variable.
616         (alloc_perturb, free_perturb): New macros.
617         (_int_malloc): Before returning, overwrite the memory if this is
618         requested.
619         (_int_free): Overwrite freed memory if requested.
620         (mALLOPt): Handle M_PERTURB.
621         * test-skeleton.c: Add call to mallopt with M_PERTURB command.
623         * elf/dl-close.c (_dl_close): Decrement l_opencount before
624         printing debug message.
625         * elf/dl-open.c (dl_open_worker): Always print the new opencount
626         in debug messages.
628 2005-03-06  Ulrich Drepper  <drepper@redhat.com>
630         * elf/dl-close.c (_dl_close): Unify debug message format.
632         * elf/dl-close.c (_dl_close): Print debug message just before
633         destroying a link map.
635         * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
636         * elf/dl-version.c (match_symbol): Likewise.
638         * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
640         * debug/recv_chk.c (__recv_chk): Always fail if request could
641         overflow the buffer.
642         * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
643         * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
644         we know the call succeeds.
645         (recvfrom): Likewise.
647 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
649         * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
650         warning.
651         * posix/regex_internal.c (re_string_reconstruct): Add cast to
652         avoid warning.
653         (build_wcs_upper_buffer): Change type of bug to plain char.
654         * locale/weightwc.h (findidx): Add casts to avoid warnings.
655         * time/mktime.c (ranged_convert): Initialize tm to make the
656         compiler happy.
657         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
658         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
659         * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
660         * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
661         * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
662         * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
663         * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
664         * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
665         * libio/iofwide.c: Add casts to avoid warnings.
666         * stdio-common/printf-prs.c (parse_printf_format): Introduce new
667         variable f to avoid warnings.
668         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
669         Fix a few casts to avoid warnings.
670         * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
671         to avoid warning.
673         * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
674         dynamically sized array.
675         (build_wcs_upper_buffer): Likewise.
677 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
679         * include/bits/unistd.h: New file.
680         * include/bits/socket2.h: New file.
682 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
684         * sunrpc/key_call.c: Remove doors support.
685         * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
686         * configure.in: Remove test for doors support which never existed.
687         * config.make.in: Remove have_doors entry.
689         * configure.in: Make sure at least gcc 3.4 is used.  Undo last change.
690         * config.make.in: Undo last change.
692         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
693         -mtune.
695 2005-03-05  Roland McGrath  <roland@redhat.com>
697         * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
698         (_dl_out_of_memory): Use rtld_hidden_proto.
699         * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
700         (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
701         * elf/dl-open.c (_dl_open): Likewise.
702         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
704         * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
706         * elf/dl-addr.c (_dl_addr): Add a cast.
708         * elf/unload3mod4.c: Declare foo.
709         * elf/testobj2.c: Include <stdio.h>.
711         * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
712         value constant, and use it in the defn.
713         * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
714         Use actual size for compat array decls.
716         * config.make.in (cc-mtune): New substituted variable.
717         * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
718         done only if libc_mtune_example is defined.
719         * sysdeps/i386/configure.in (libc_mtune_example): Set it.
720         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
722 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
724         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
725         unconditionally to (defined RTLD_BOOTSTRAP).
726         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
728 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
730         * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
731         $(inst_slibdir) in AS_NEEDED directive.
733 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
735         * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
737 2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
739         [BZ #776]
740         * iconv/iconvconfig.c: Fix comment for the output file.
741         (write_output): Clear padding in header.
743 2005-03-03  Ulrich Drepper  <drepper@redhat.com>
745         * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
746         loader is closed.  Fixes unload3.
747         * elf/tst-global1.c: New file.
748         * elf/Makefile (tests): Add tst-global1.
749         * elf/testobj2.c (p): New function.
751 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
753         * elf/Makefile: Add rules to build and run unload3 test.
754         * elf/unload3.c: New test.
755         * elf/unload3mod1.c: New file.
756         * elf/unload3mod2.c: New file.
757         * elf/unload3mod3.c: New file.
758         * elf/unload3mod4.c: New file.
760 2005-02-21  Alan Modra <amodra@bigpond.net.au>
762         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
763         use __uint128_t.
765 2005-03-01  Jakub Jelinek  <jakub@redhat.com>
767         * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
768         of __bos.
769         * socket/bits/socket2.h (recv, recvfrom): Likewise.
771 2005-03-01  Roland McGrath  <roland@redhat.com>
773         [BZ #721]
774         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
775         of [RESOLVE_MAP].
777 2005-03-01  Alfred M. Szmidt  <ams@gnu.org>
779         [BZ #777]
780         * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
781         Add missing initializer.
783         [BZ #777]
784         * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
785         USE_TLS && !USE___THREAD].
787 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
789         * csu/Makefile: Use printf instead of echo for some shells.
791 2005-02-28  Roland McGrath  <roland@redhat.com>
793         * debug/warning-nop.c (__nop): Rename to nop, make it static.
794         (__warndecl): Use alias attribute directly, instead of strong_alias
795         macro.  Add attribute_hidden.
797 2005-02-28  Ulrich Drepper  <drepper@redhat.com>
799         * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
800         determine the call will never trigger a failure.
801         * debug/read_chk.c (__read_chk): Always fail if the buffer is too
802         small.
803         * debug/readlink_chk.c (__readlink_chk): Likewise.
804         * debug/pread64_chk.c (__pread64_chk): Likewise.
805         * debug/pread_chk.c (__pread_chk): Likewise.
807         * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
808         * sysdeps/x86_64/memset_chk.S: Likewise.
810 2005-02-24  Roland McGrath  <roland@redhat.com>
812         * debug/Versions (libc: GLIBC_2.4): Remove
813         __memset_zero_constant_len_parameter.
814         * sysdeps/generic/memset_chk.c: Remove alias and warning.
815         * misc/sys/cdefs.h (__warndecl): New macro.
816         * debug/warning-nop.c: New file.
817         * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
818         arguments, instead of calling __memset_zero_constant_len_parameter.
819         Use __warndecl for __warn_memset_zero_len.
820         * debug/Makefile (routines): Add $(static-only-routines).
821         (static-only-routines): New variable.
823 2005-02-27  Ulrich Drepper  <drepper@redhat.com>
825         * po/tr.po: Update from translation team.
827 2005-02-26  Ulrich Drepper  <drepper@redhat.com>
829         * elf/dl-addr.c: Cleanups.  Move declaration next to first use.
831         * dlfcn/dlerror.c (check_free): New function.  Extract common code
832         from fini and free_key_mem.  Check whether this is libdl in the
833         base namespace.
835 2005-02-25  Ulrich Drepper  <drepper@redhat.com>
837         * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
838         to debug output.
840 2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
842         [BZ #758]
843         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
844         preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
845         like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
846         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
847         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
848         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
849         standard __NR prefix.
850         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
851         * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
852         the output file is compatible with both pre-2.6 and 2.6 kernel headers.
853         Extract separate syscall lists for each ABI.
855 2005-02-23  Ulrich Drepper  <drepper@redhat.com>
857         * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
859         [BZ #719]
860         * elf/Makefile: Run tst-tls9-static again.
862 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
864         [BZ #719]
865         * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
866         slotinfo array.
867         (__libc_setup_tls): Initialize length of DTV based on array length.
868         * elf/dl-load.c: Revert last change.
869         * sysdeps/generic/dl-tls.c: Revert last change.
871         * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
872         tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
873         tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
874         * posix/tst-execl1.c: New file.
875         * posix/tst-execl2.c: New file.
876         * posix/tst-execle1.c: New file.
877         * posix/tst-execle2.c: New file.
878         * posix/tst-execlp1.c: New file.
879         * posix/tst-execlp2.c: New file.
880         * posix/tst-execv1.c: New file.
881         * posix/tst-execv2.c: New file.
882         * posix/tst-execve1.c: New file.
883         * posix/tst-execve2.c: New file.
884         * posix/tst-execvp1.c: New file.
885         * posix/tst-execvp2.c: New file.
887 2005-02-22  Roland McGrath  <roland@redhat.com>
889         * include/signal.h: Revert last change.
890         (__sigemptyset): Use __builtin_memset instead of memset.
892 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
894         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
895         non-cancelable I/O functions.
897 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
899         [BZ #769]
900         * nscd/nscd-client.h: Include sys/uio.h.
901         (__readall, __readvall, writeall): New prototypes.
902         * nscd/connections.c (writeall): New function.
903         (handle_request): Use it.
904         * nscd/aicache.c (addhstaiX): Likewise.
905         * nscd/initgrcache.c (addinitgroupsX): Likewise.
906         * nscd/hstcache.c (cache_addhst): Likewise.
907         * nscd/grpcache.c (cache_addgr): Likewise.
908         * nscd/pwdcache.c (cache_addpw): Likewise.
909         * nscd/nscd_helper.c (__readall, __readvall): New functions.
910         * nscd/nscd_getai.c (__nscd_getai): Use them.
911         * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
912         * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
913         * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
914         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
916 2005-02-22  Roland McGrath  <roland@redhat.com>
918         * include/sys/socket.h: Declare __recv.
919         * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
920         * sysdeps/mach/hurd/recv.c: Likewise.
922         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
923         __backtrace_* decls.
925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
926         (INTERNAL_SYSCALL_ERROR_P): Evalute VAL.  Parenthesize ERR.
927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
929         * include/signal.h: Include <string.h> for memset decl.
931 2005-02-22  Andreas Schwab  <schwab@suse.de>
933         * posix/execvp.c (execvp): Fix invalid free.
935 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
937         * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
938         * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
939         librpcsvc.a objects.
941 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
943         * iconvdata/ibm930.h: Correct Yen mapping.
944         * iconvdata/ibm939.h: Likewise.
945         * iconvdata/testdata/IBM930..UTF8: Adjust test data.
946         * iconvdata/testdata/IBM939..UTF8: Likewise.
947         Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
949         * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
950         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
951         (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
952         ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
953         ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
954         ibm1158.c, and ibm1158.h.
955         * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
956         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
957         * iconvdata/gconv-modules: Likewise.
958         * iconvdata/ibm1025.c: New file.
959         * iconvdata/ibm1025.h: New file.
960         * iconvdata/ibm1122.c: New file.
961         * iconvdata/ibm1122.h: New file.
962         * iconvdata/ibm1137.c: New file.
963         * iconvdata/ibm1137.h: New file.
964         * iconvdata/ibm1153.c: New file.
965         * iconvdata/ibm1153.h: New file.
966         * iconvdata/ibm1154.c: New file.
967         * iconvdata/ibm1154.h: New file.
968         * iconvdata/ibm1155.c: New file.
969         * iconvdata/ibm1155.h: New file.
970         * iconvdata/ibm1156.c: New file.
971         * iconvdata/ibm1156.h: New file.
972         * iconvdata/ibm1157.c: New file.
973         * iconvdata/ibm1157.h: New file.
974         * iconvdata/ibm1158.c: New file.
975         * iconvdata/ibm1158.h: New file.
976         * iconvdata/testdata/IBM1025: New file.
977         * iconvdata/testdata/IBM1025..UTF8: New file.
978         * iconvdata/testdata/IBM1122: New file.
979         * iconvdata/testdata/IBM1122..UTF8: New file.
980         * iconvdata/testdata/IBM1137: New file.
981         * iconvdata/testdata/IBM1137..UTF8: New file.
982         * iconvdata/testdata/IBM1153: New file.
983         * iconvdata/testdata/IBM1153..UTF8: New file.
984         * iconvdata/testdata/IBM1154: New file.
985         * iconvdata/testdata/IBM1154..UTF8: New file.
986         * iconvdata/testdata/IBM1155: New file.
987         * iconvdata/testdata/IBM1155..UTF8: New file.
988         * iconvdata/testdata/IBM1156: New file.
989         * iconvdata/testdata/IBM1156..UTF8: New file.
990         * iconvdata/testdata/IBM1157: New file.
991         * iconvdata/testdata/IBM1157..UTF8: New file.
992         * iconvdata/testdata/IBM1158: New file.
993         * iconvdata/testdata/IBM1158..UTF8: New file.
994         Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
996 2005-02-10  Paolo Bonzini  <bonzini@gnu.org>
998         * posix/regcomp.c (lower_subexp): Do not optimize empty
999         subexpressions even with REG_NOSUB.
1000         * posix/rxspencer/tests: Add a previously failing testcase.
1002 2005-02-21  Alan Modra <amodra@bigpond.net.au>
1004         [BZ #719]
1005         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
1006         array index is within bounds.
1008 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
1010         [BZ #719]
1011         * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
1012         linked code.
1013         * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
1014         * elf/Makefile: Remove rules to build and run tst-tls9-static.
1016         [BZ #719]
1017         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
1018         THREAD_DTV multiple times, this minimally reduces code size on
1019         some archs.
1021 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
1023         [BZ #768]
1024         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
1025         NETDB_INTERNAL if buffer is too small.
1027         [BZ #768]
1028         * nscd/hstcache.c (INCR): Remove.
1029         (addhstbyX): Double buflen in each iteration rather than add INCR.
1030         * nscd/grpcache.c: Likewise.
1031         * nscd/pwdcache.c: Likewise.
1033 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
1035         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
1036         map if requested.
1037         * debug/chk_fail.c: Request backtrace and memory map dump.
1039         * Versions.def: Add GLIBC_2.4 for libc.
1040         * debug/fgets_chk.c: New file.
1041         * debug/fgets_u_chk.c: New file.
1042         * debug/getcwd_chk.c: New file.
1043         * debug/getwd_chk.c: New file.
1044         * debug/readlink_chk.c: New file.
1045         * debug/read_chk.c: New file.
1046         * debug/pread_chk.c: New file.
1047         * debug/pread64_chk.c: New file.
1048         * debug/recv_chk.c: New file.
1049         * debug/recvfrom_chk.c: New file.
1050         * debug/Versions: Add all new functions with version GLIBC_2.4.
1051         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
1052         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
1053         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
1054         * debug/tst-chk1.c: Add more tests.
1055         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
1056         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
1057         * posix/unistd.h: Include <bits/unistd.h> for fortification.
1058         * posix/bits/unistd.h: New file.
1059         * posix/Makefile (headers): Add bits/unistd.h.
1060         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
1061         * socket/bits/socket2.h: New file.
1062         * socket/Makefile (headers): Add bits/socket2.h.
1064         * string/bits/string3.h: Extend memset macro to check for zero 3rd
1065         parameter and use __memset_zero_constant_len_parameter in that case.
1066         * sysdeps/generic/memset_chk.c: Add
1067         __memset_zero_constant_len_parameter alias and linker warning.
1068         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
1069         with version GLIBC_2.4.
1071         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
1072         in __STD_TYPE definition.
1074 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
1076         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
1077         the error message rather than program name.
1079 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
1081         [BZ #767]
1082         * posix/unistd.h: symlink and readlink are unconditionally
1083         available in the 2001 spec.
1085 2005-02-16  Roland McGrath  <roland@redhat.com>
1087         * intl/dcigettext.c (_nl_find_msg): Add a cast.
1089         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
1090         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
1091         * nis/nis_clone_res.c (nis_clone_result): Likewise.
1093         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
1094         for END_OF_MESSAGE and CP.
1096         * resolv/res_send.c (send_dg): Add else branch for case impossible
1097         unless `poll' is buggy.
1099         * crypt/crypt_util.c (__setkey_r): Add a cast.
1101         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
1102         NBYTES, and unsigned char * for BYTES.
1104         * locale/programs/charmap.c (charmap_new_char): Use size_t and
1105         unsighed char * for NBYTES, BYTES parameters.
1107         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
1108         and cast it.
1109         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
1111         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
1113         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
1115         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
1116         (authdes_marshal): Don't use unsigned int for LEN.
1117         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
1118         (xdr_u_hyper): Likewise.
1119         (xdr_u_short): Don't use u_long for L.
1120         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
1122         * inet/rexec.c (rexec_af): Use socklen_t.
1123         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
1124         * sunrpc/rtime.c (rtime): Likewise.
1125         * resolv/res_send.c (send_vc, send_dg): Likewise.
1126         * nis/nis_callback.c (__nis_create_callback): Likewise.
1128         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
1130         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
1132         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
1134         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
1135         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
1136         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
1137         * intl/bindtextdom.c (INTUSE): Macro removed.
1138         (_nl_default_dirname): Use libc_hidden_proto.
1139         (set_binding_values): Don't use INTUSE.
1140         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
1141         (_libc_intl_domainname): Use libc_hidden_proto.
1142         * posix/regex_internal.h (gettext): Remove INTUSE on it.
1143         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
1144         rather than INTDEF.
1145         * include/libintl.h (_): Don't use *_internal name.
1147         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
1148         not uint32_t.
1149         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
1151         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
1153         [BZ #721]
1154         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
1155         of [RESOLVE_MAP].
1156         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
1157         * sysdeps/powerpc/powerpc32/dl-machine.h
1158         (elf_machine_rel, elf_machine_rel_relative): Removed.
1159         * sysdeps/powerpc/powerpc64/dl-machine.h
1160         (elf_machine_rel, elf_machine_rel_relative): Removed.
1162 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
1164         [BZ #721]
1165         * elf/dynamic-link.h: Don't declare nested auto functions that are
1166         not going to be defined.
1168 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1170         [BZ #284]
1171         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
1172         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
1174 2005-02-16  Roland McGrath  <roland@redhat.com>
1176         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
1177         inside [! SHARED] where it's used.
1179 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
1181         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
1182         functions and macros is unsigned.
1184 2005-02-11  Barry deFrese  <bddebian@comcast.net>
1186         [BZ #722]
1187         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
1188         * sysdeps/mach/hurd/setresuid.c: Likewise.
1190 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
1192         * misc/sys/syslog.h: Fix typo in comment.
1194 2005-02-14  Roland McGrath  <roland@redhat.com>
1196         [BZ #720]
1197         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
1198         if it wasn't originally.
1200 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
1202         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
1203         getpeername entry.
1204         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1205         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1207 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
1209         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
1210         matching line.
1212 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
1214         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
1215         with auto inline, and attribute always_inline.
1216         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
1217         (elf_machine_rel, elf_machine_rel_relative): Likewise.
1218         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1219         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
1220         (elf_machine_rel, elf_machine_rel_relative): Likewise.
1221         (elf_machine_tprel): Likewise.
1223 2005-02-14  Andreas Schwab  <schwab@suse.de>
1225         * manual/filesys.texi (Random Access Directory): Fix type of file
1226         position value for telldir and seekdir.
1227         (Attribute Meanings): Fix typo.
1229 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1231         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
1232         isn't defined.
1233         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
1234         if SHARED isn't defined.
1235         * elf/Makefile (tests-static): Add tst-array1-static.
1236         ($(objpfx)tst-array1-static.out): New target.
1237         * elf/tst-array1-static.c: New file.
1239 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
1241         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
1242         __libc_message to kill GCC warning about noreturn function returning.
1244         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
1245         before relocating ld.so again.
1247         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
1248         for already prelinked ld.so.
1250 2005-02-11  Roland McGrath  <roland@redhat.com>
1252         [BZ #715]
1253         * Makefile (installed-stubs): New variable.
1254         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
1255         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
1256         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
1257         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
1258         rule's target.
1259         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
1260         * include/stubs-biarch.h: New file.
1262         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
1264         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
1265         Emit defn for variable `biarch'.
1267         * include/stub-tag.h: Update comment.
1269         * scripts/soversions.awk: Fix default version set handling.
1271 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
1273         * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
1274         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Add __USE_MISC
1275         and __USE_XOPEN guards to match linux/bits/termios.h.
1276         (CMSPAR): Define.
1277         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Add __USE_MISC
1278         and __USE_XOPEN guards to match linux/bits/termios.h.
1279         (CMSPAR): Define.
1280         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
1281         and __USE_XOPEN guards to match linux/bits/termios.h.
1283 2005-02-10  Roland McGrath  <roland@redhat.com>
1285         [BZ #157]
1286         * include/libc-symbols.h (stub_warning): Emit a marker section called
1287         .gnu.glibc-stub.NAME.
1288         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
1289         Use objdump to collect those marker section names.
1290         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
1292         * Rules (subdir_objs, subdir_stubs): New phony targets.
1293         * Makefile (+subdir_targets): Add them.
1295         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
1296         soversions.i.
1298         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
1299         Reported by H.J. Lu <hongjiu.lu@intel.com>.
1301         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
1302         doing two.
1304 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
1306         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
1307         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
1308         * sysdeps/powerpc/bits/link.h: ... here.  New file.
1310 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
1312         [BZ #710]
1313         * stdlib/random_r.c (__initstate_r): Save old state.
1314         * stdlib/Makefile (tests): Add tst-random2.
1315         * stdlib/tst-random2.c: New test.
1316         Reported by Peter Bergner <bergner@vnet.ibm.com>.
1318 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
1320         * dlfcn/dlfcn.c (init): Put it in .init_array section.
1322 2005-02-10  Roland McGrath  <roland@redhat.com>
1324         [BZ #632]
1325         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
1326         from command line.
1327         Grok shlib-versions lines with WORDSIZE* in second column.
1328         Add new leading column to output, DEFAULT for existing output lines.
1329         Also emit lines with WORDSIZE* for alternate configurations.
1330         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
1331         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
1332         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
1333         of soversions.mk; replace inline shell script with use of ...
1334         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
1335         emit multiple sets of macros under #if.
1336         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
1337         (s390x-.*-.*): Likewise for s390.
1338         (powerpc64-.*-.*): Likewise for powerpc.
1339         (sparc64-.*-.*): Likewise for sparc.
1340         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
1341         for these mapping back to the above.
1343 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
1345         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
1347 2005-02-08  Andreas Schwab  <schwab@suse.de>
1349         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
1350         RESOLVE.
1352 2005-02-07  Richard Henderson  <rth@redhat.com>
1354         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
1356 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1358         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
1359         RESOLVE.
1361 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
1363         * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
1364         set correctly.
1366 2005-01-07  Richard Henderson  <rth@redhat.com>
1368         * math/math_private.h (__copysign): Define as builtin for gcc 4.
1369         (__copysignf, __copysignl): Likewise.
1370         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
1371         for gcc 4.0.
1372         (copysignf, copysignl, fabsf, fabs): Likewise.
1373         (__copysign, __copysignf, __copysignl): Remove.
1374         (__fabs, __fabsf): Remove.
1376 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
1378         [BZ #738]
1379         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
1380         avoid writing to it if none of the standard search directories exist.
1382 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
1384         [BZ #700]
1385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1386         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
1387         Load MSR as a doubleword.
1388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1389         (__novec_swapcontext, __swapcontext): Likewise.
1391 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
1393         * iconv/iconv_prog.c (main): Provide more help in case on an error.
1395         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
1397 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
1399         [BZ #741]
1400         * nscd/nscd.c (termination_handler): Avoid segfault if some database
1401         is not enabled.
1403         [BZ #741]
1404         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
1405         __nss_not_use_nscd_hosts and return -1.
1406         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
1407         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
1408         Avoid leaking sockets.
1410 2005-01-28  Andreas Schwab  <schwab@suse.de>
1411             H.J. Lu  <hongjiu.lu@intel.com>
1413         [BZ #677]
1414         * elf/dl-runtime.c (fixup): Change return type to
1415         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
1416         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
1417         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
1418         store and retrieve relocation values.
1419         (profile_fixup): Likewise.
1420         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
1421         l_reloc_result.
1422         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
1423         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
1424         (DL_FIXUP_MAKE_VALUE): Likewise.
1425         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
1426         (DL_FIXUP_VALUE_ADDR): Likewise.
1427         (DL_FIXUP_ADDR_VALUE): Likewise.
1428         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
1429         (DL_FIXUP_VALUE_TYPE): New.
1430         (DL_FIXUP_MAKE_VALUE): Likewise.
1431         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
1432         (DL_FIXUP_VALUE_ADDR): Likewise.
1433         (DL_FIXUP_ADDR_VALUE): Likewise.
1434         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
1435         (elf_machine_profile_plt): Removed.
1436         (elf_machine_fixup_plt): Change return type and type of value
1437         parameter to struct fdesc.
1438         (elf_machine_plt_value): Likewise.
1439         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
1440         argument for elf_machine_fixup_plt.
1442 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
1444         [BZ #742]
1445         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
1446         after the status string printed by killproc.
1448 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
1450         * manual/.cvsignore: Add dir-add.texi.
1452 2005-02-06  Richard Henderson  <rth@redhat.com>
1454         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
1455         all the time.
1457 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
1459         * configure.in (sysnames): Append sysdeps/generic for each add-on.
1460         * configure: Regenerated.
1462 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
1464         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
1465         (dtv_t): Change pointer type to be a struct which also contains
1466         information whether the memory pointed to is static TLS or not.
1468         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
1470         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
1471         (FALSEP): ... this.  Updated all references.
1473         [BZ #765]
1474         * libio/fmemopen.c: Include <stdint.h>.
1476 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
1478         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
1479         * nscd/connections.c (send_ro_fd): Likewise.
1481 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1483         * elf/tst-auditmod1.c: Add ia64 entries.
1484         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
1485         (La_ia64_retval): New.
1486         (audit_ifaces): Add ia64 entries.
1487         * sysdeps/ia64/bits/link.h: New file.
1488         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
1489         for dl_profile non-null.
1490         (ARCH_LA_PLTENTER): New.
1491         (ARCH_LA_PLTEXIT): New.
1492         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
1493         only 2 output registers. Allocate stack to save/restore
1494         8 incoming fp registers. Call _dl_fixup instead of fixup.
1495         (_dl_runtime_profile): Rewrite.
1497 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1499         * sysdeps/s390/bits/link.h: New file.
1500         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
1501         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
1502         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
1503         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
1504         relocation code.
1505         (elf_machine_runtime_setup): Test for dl_profile non-null.
1506         (elf_machine_rela): Remove code using RESOLVE.
1507         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
1508         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1509         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
1510         La_s390_64_regs, La_s390_64_retval): New.
1511         * elf/tst-auditmod1.c: Add s390 entries.
1513         [BZ #743]
1514         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
1515         strncat, memchr, strcmp): Add missing memory clobber.
1517 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
1519         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
1520         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
1522 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
1524         [BZ #558]
1525         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
1526         Initialize the node sets in dfa->inveclosures.
1527         (analyze): Initialize inveclosures only if it is needed.
1528         Check errors from calc_inveclosure.
1529         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
1530         the inveclosure node set.
1531         * posix/regexec.c (re_search_internal): If nmatch includes unused
1532         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
1534         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
1535         Do build a SIMPLE_BRACKET token.
1537         * posix/regexec.c (transit_state_mb): Do not examine nodes
1538         where ACCEPT_MB is not set.
1540 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
1542         * stdlib/tst-fmtmsg.c: Include stdlib.h.
1543         * stdio-common/tst-fmemopen2.c: Include string.h.
1544         * posix/execvp.c: Include stdbool.h.
1546 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
1548         Separate parsing and creation of the NFA.  Avoided recursion on
1549         the (very unbalanced) parse tree.
1550         [BZ #611]
1551         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
1552         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
1553         (optimize_subexps, duplicate_tree, calc_first, calc_next,
1554         mark_opt_subexp): Rewritten.
1555         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
1556         create_token_tree, free_tree, free_token): New.
1557         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
1558         postorder generic visitors.  Do not initialize the fields in the
1559         re_dfa_t that represent the transitions.
1560         (free_dfa_content): Use free_token.
1561         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
1562         include optimization of subexpressions.
1563         (create_initial_state): Fetch the DFA node index from the first node's
1564         bin_tree_t *.
1565         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
1566         Return on COMPLEX_BRACKET.
1567         (duplicate_node_closure): Fix comment.
1568         (duplicate_node): Do not initialize the fields in the
1569         re_dfa_t that represent the transitions.
1570         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
1571         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
1572         to use create_token_tree.
1573         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
1574         build_charclass_op): Use create_tree or create_token_tree instead
1575         of re_dfa_add_tree_node.
1576         (parse_dup_op): Likewise.  Also free the tree using free_tree for
1577         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
1578         to "a|".  Adjust invocation of mark_opt_subexp.
1579         (parse_sub_exp): Create a single SUBEXP node.
1580         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
1581         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
1582         DUPLICATED, and initialize the DFA fields representing the transitions.
1583         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
1584         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
1585         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
1586         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
1587         NEXT into pointers to trees.  Remove ECLOSURE.
1589 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
1591         [BZ #605]
1592         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
1593         that were already created.
1594         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
1595         in the token if needed.
1596         (create_ci_newstate, create_cd_newstate): Set accept_mb field
1597         from the tokens' field.
1598         * posix/regex_internal.h (re_token_t): Add accept_mb field.
1599         (ACCEPT_MB_NODE): Removed.
1600         * posix/regexec.c (proceed_next_node, transit_states_mb,
1601         build_sifted_states, check_arrival_add_next_nodes): Use
1602         accept_mb instead of ACCEPT_MB_NODE.
1604 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
1606         * debug/chk_fail.c (__chk_fail): Print program name in final message.
1608         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
1609         MSG_NOSIGNAL being in 2.2 kernels.
1611 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
1613         * sysdeps/unix/sysv/linux/i386/sysdep.h
1614         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
1616         [BZ #693]
1617         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
1618         (WORD_DELIM_CONSTRAINT): ...this.
1619         (NOT_WORD_DELIM_CONSTRAINT): Define.
1620         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
1621         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
1622         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
1623         anchor instead of INSIDE_WORD.
1624         (parse_expression): Handle NOT_WORD_DELIM constraint.
1625         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
1626         being inside word instead of not word delim.
1627         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
1628         characters.
1629         * posix/rxspencer/tests: Add some new tests.
1631 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
1633         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
1634         irrespective of Cflag.
1636         * manual/memory.texi (sbrk): Fix definition.
1637         * manual/string.texi (strcasestr): Fix example typo.
1639 2005-01-25  Roland McGrath  <roland@redhat.com>
1641         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
1643 2005-01-23  Roland McGrath  <roland@redhat.com>
1645         [BZ #737]
1646         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
1647         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
1648         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
1649         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
1650         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
1651         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
1653 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
1655         [BZ #731]
1656         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
1657         (free_mem): Don't free string.
1658         * stdlib/tst-fmtmsg.c: Include string.h.
1659         (main): Add some more tests.
1661 2005-01-25  Andreas Schwab  <schwab@suse.de>
1663         [BZ #736]
1664         * timezone/asia: Update from tzdata2005c.
1665         * timezone/backward: Likewise.
1666         * timezone/europe: Likewise.
1667         * timezone/leapseconds: Likewise.
1668         * timezone/northamerica: Likewise.
1669         * timezone/southamerica: Likewise.
1671         [BZ #736]
1672         * timezone/private.h: Update from tzcode2005c.
1673         * timezone/tzfile.h: Likewise.
1674         * timezone/zdump.c: Likewise.
1675         * timezone/zic.c: Likewise.
1677 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
1679         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
1680         RESOLVE.
1681         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
1682         using RESOLVE.
1683         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
1685 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
1687         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
1688         sym_map, not sym, against zero.
1690 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
1692         [BZ #671]
1693         * misc/syslog.c: Moved to...
1694         * sysdeps/generic/syslog.c: ...here.
1695         [NO_SIGIPE]: Don't install SIGPIPE handler.
1696         * sysdeps/unix/sysv/linux/syslog.c: New file.
1697         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1698         __ASSUME_MSG_NOSIGNAL.
1700 2005-01-22  Richard Henderson  <rth@redhat.com>
1702         * sysdeps/alpha/dl-trampoline.S: New file.
1703         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
1704         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
1705         (elf_machine_runtime_setup): Test for dl_profile non-null.
1706         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
1707         * sysdeps/alpha/bits/link.h: New file.
1708         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
1709         (struct audit_ifaces): Add alpha entries.
1710         * elf/tst-auditmod1.c: Add alpha entries.
1712 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
1714         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
1715         * sysdeps/ia64/dl-trampoline.S: New file.
1717         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
1718         La_x86_64_xmm definition.
1720         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
1721         pointer option.
1722         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
1723         CFLAGS-system.c for frame pointer option.
1725 2005-01-21  Roland McGrath  <roland@redhat.com>
1727         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
1728         * sysdeps/i386/dl-machine.h: Update decl.
1730 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
1732         [BZ #735]
1733         * elf/Makefile: Add rules to build and run tst-align2.
1734         * elf/tst-align2.c: New test.
1735         * elf/tst-alignmod2.c: New file.
1736         * sysdeps/powerpc/tst-stack-align.h: New file.
1737         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
1738         pointer before calling _dl_init.
1739         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
1741 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
1743         * posix/execl.c: Do not allocate potentially large buffers on the
1744         stack.
1745         * posix/execle.c: Likewise.
1746         * posix/execlp.c: Likewise.
1747         * posix/execvp.c: Likewise.
1748         (script_execute): Removed.
1749         (allocate_scripts_argv): New function.  Called at most once to
1750         allocate memory, not every time a script is run.  Adjust caller.
1752         * sysdeps/generic/wordexp.c (exec_comm): Add a few
1753         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
1754         exec_comm_child.
1755         (exec_comm_child): Can now be inlined.
1757         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
1758         * stdlib/Makefile: Likewise.
1760 2005-01-19  Roland McGrath  <roland@redhat.com>
1762         [BZ #681]
1763         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
1764         argument to execlp.
1765         Reported by Marcus Meissner <meissner@suse.de>.
1767 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
1769         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
1770         in assert.
1771         * iconv/strtab.c (strtabfinalize): Likewise.
1773         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
1775 2005-01-17  Roland McGrath  <roland@redhat.com>
1777         [BZ #745]
1778         * nscd/Makefile (LDLIBS-nscd): New variable.
1779         ($(objpfx)nscd): Use that instead of selinux-LIBS.
1781         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
1782         (link-extra-libs-static): Define to $(link-extra-libs).
1783         (link-extra-libs-bounded): Likewise.
1785 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
1787         * include/link.h: Remove stray definition of pltenter.
1789 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
1791         [BZ #734]
1792         * sysdeps/unix/rewinddir.c: Reset filepos.
1793         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
1795 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
1797         * elf/tst-auditmod1.c: Reduce duplication.
1799 2005-01-16  Andreas Schwab  <schwab@suse.de>
1801         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
1802         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1803         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
1804         GLRO(dl_profile) != NULL.
1805         * sysdeps/m68k/dl-trampoline.S: New file.
1806         * sysdeps/m68k/bits/link.h: New file.
1807         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
1808         variants.
1809         * elf/tst-auditmod1.c: Add m68k support.
1811 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
1813         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
1814         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
1816         [BZ #731]
1817         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
1818         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
1820 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
1822         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
1823         callers from libc anymore.
1825         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
1826         to _dl_map_object_deps.
1827         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
1828         protections when loading auditing modules.
1830         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
1832         * posix/getconf.c: Update copyright year.
1833         * nss/getent.c: Likewise.
1834         * nscd/nscd_nischeck.c: Likewise.
1835         * iconv/iconvconfig.c: Likewise.
1836         * iconv/iconv_prog.c: Likewise.
1837         * elf/ldconfig.c: Likewise.
1838         * catgets/gencat.c: Likewise.
1839         * csu/version.c: Likewise.
1840         * elf/ldd.bash.in: Likewise.
1841         * elf/sprof.c (print_version): Likewise.
1842         * locale/programs/locale.c: Likewise.
1843         * locale/programs/localedef.c: Likewise.
1844         * nscd/nscd.c (print_version): Likewise.
1845         * debug/xtrace.sh: Likewise.
1846         * malloc/memusage.sh: Likewise.
1847         * malloc/mtrace.pl: Likewise.
1848         * debug/catchsegv.sh: Likewise.
1850 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
1852         [BZ #733]
1853         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
1854         as backlog.
1855         * sunrpc/svc_unix.c (svcunix_create): Likewise.
1857         * grp/putgrent.c (putgrent): Don't write 0 as group
1858         ID if groupname starts with + or -.
1859         * pwd/putpwent.c (putpwent): Don't write 0 as user or
1860         group ID if user name starts with + or -.
1862 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1864         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
1865         * sysdeps/elf/tst-auditmod1.c: Add sh support.
1866         * sysdeps/sh/bits/link.h: New.
1867         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
1868         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
1869         (RTLD_START): Define __fpscr_values.
1870         * sysdeps/sh/dl-trampoline.S: New file.
1871         * sysdeps/sh/sh4/dl-trampoline.S: New file.
1872         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
1873         * sysdeps/sh/sh4/dl-machine.h: Remove.
1875 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
1877         [BZ #732]
1878         * time/tst-strptime.c (day_tests): Add 2 new tests.
1879         (test_tm, main): Issue an error instead of segfaulting if
1880         strptime returns NULL.
1882 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1884         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
1885         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
1887 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
1889         * malloc/malloc.h: Remove no-glibc support.
1891 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
1893         [BZ #650]
1894         * malloc/malloc.h: Always include features.h.
1896 2005-01-10  Roland McGrath  <roland@redhat.com>
1898         * sysdeps/ia64/fpu/e_logl.c: File removed.
1900         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
1902 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
1904         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
1905         recognition of last entry.
1907 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
1909         * elf/dl-runtime.c: Include <sys/param.h>.
1911         * elf/Makefile (headers): Add bits/link.h.
1913 2005-01-09  Andreas Schwab  <schwab@suse.de>
1915         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
1917 2005-01-09  Andreas Jaeger  <aj@suse.de>
1919         [BZ #732]
1920         * time/strptime_l.c (__strptime_internal): Add braces to avoid
1921         warning.
1923         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
1925         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
1927 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
1929         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
1931 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
1933         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
1934         those of all the regular objects.
1936         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
1937         use it to select the r_debug structure for that namespace.
1938         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
1939         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1940         * elf/dl-open.c (_dl_open): Likewise.
1941         * elf/rtld.c (dl_main): Likewise.
1942         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
1943         member.
1944         (_dl_debug_initialize): Add new parameter in declaration.
1946         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
1947         called for the auditing objects themselves.
1948         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1950 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
1952         * sysdeps/powerpc/powerpc64/dl-machine.h
1953         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
1954         GLRO(dl_profile) != NULL.
1955         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
1956         padding.
1957         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
1958         Extend _dl_prof_resolve to add pass extra parameters to
1959         _dl_profile_fixup and set up structure with register content.
1961         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
1962         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
1963         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
1964         Extend _dl_prof_resolve to add pass extra parameters to
1965         _dl_profile_fixup and set up structure with register content.
1966         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
1967         the register and result structures.
1968         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
1969         in the 32-bit register and result structures.
1971         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
1973         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
1974         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
1975         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1976         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
1977         * elf/tst-auditmod1.c: Add ppc32 support.
1978         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
1979         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
1981         * malloc/malloc.c (malloc_printerr): Print program name as part of
1982         error message.
1984         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
1985         * stdlib/stdlib.h: Make realloc with
1986         __attribute_warn_unused_result__ instead of __wur.
1987         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
1988         markers as in <stdlib.h>.
1990         * libio/stdio.h: Remove __wur from rename and remove.
1991         * posix/unistd.h: Remove __wur from dup2.
1993 2005-01-03  Andreas Jaeger  <aj@suse.de>
1995         * elf/Makefile (tests): Revert patch from 2005-01-03.
1997 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
1999         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
2000         make __libc_init_first hidden.
2002         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
2003         l_relocated of rtld map.
2004         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
2005         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
2006         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
2007         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
2008         * elf/tst-auditmod1.c: Add ppc64 support.
2009         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
2011 2005-01-06  Roland McGrath  <roland@redhat.com>
2013         [BZ #633]
2014         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
2015         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
2017 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
2019         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
2020         * sysdeps/generic/libc-start.c: Don't register program destructor here.
2022         * dlfcn/Makefile: Add rules to build dlfcn.c.
2023         (LDFLAGS-dl.so): Removed.
2024         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
2025         table.
2026         * dlfcn/dlmopen.c: Likewise for _dl_open.
2027         * dlfcn/dlopen.c: Likewise.
2028         * dlfcn/dlopenold.c: Likewise.
2029         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
2030         * elf/Makefile (routines): Remove dl-open and dl-close.
2031         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
2032         Add rules to build and run tst-audit1.
2033         * elf/tst-audit1.c: New file.
2034         * elf/tst-auditmod1.c: New file.
2035         * elf/Versions [libc]: Remove _dl_open and _dl_close.
2036         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
2037         * elf/dl-open.c: Likewise.
2038         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
2039         signaled by nonzero parameter.
2040         * elf/dl-init.c: Fix use of r_state.
2041         * elf/dl-load.c: Likewise.
2043         * elf/dl-close.c: Add auditing checkpoints.
2044         * elf/dl-open.c: Likewise.
2045         * elf/dl-fini.c: Likewise.
2046         * elf/dl-load.c: Likewise.
2047         * elf/dl-sym.c: Likewise.
2048         * sysdeps/generic/libc-start.c: Likewise.
2049         * elf/dl-object.c: Allocate memory for auditing information.
2050         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
2051         Correctly initialize slotinfo.
2052         * elf/dynamic-link.h: Adjust after removal of RESOLV.
2053         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
2054         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
2055         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
2056         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
2057         (_dl_profile_fixup): New parameters to point to register struct and
2058         variable for frame size.
2059         Add auditing checkpoints.
2060         (_dl_call_pltexit): New function.
2061         Don't define trampoline code here.
2062         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
2063         Remove all the functions from _rtld_global_ro which only _dl_open
2064         and _dl_close needed.
2065         Add auditing checkpoints.
2066         * elf/link.h: Define symbols for auditing interfaces.
2067         * include/link.h: Likewise.
2068         * include/dlfcn.h: Define __RTLD_AUDIT.
2069         Remove prototypes for _dl_open and _dl_close.
2070         Adjust access to argc and argv in libdl.
2071         * dlfcn/dlfcn.c: New file.
2072         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
2073         is gone.
2074         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
2075         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
2076         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
2077         Adjust for removal of RESOLVE.
2078         * sysdeps/x86_64/dl-machine.h: Likewise.
2079         * sysdeps/generic/dl-trampoline.c: New file.
2080         * sysdeps/i386/dl-trampoline.c: New file.
2081         * sysdeps/x86_64/dl-trampoline.c: New file.
2083         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
2084         Fix updating of DTV.
2085         * sysdeps/generic/libc-tls.c: Likewise.
2087         * sysdeps/arm/bits/link.h: Renamed to ...
2088         * sysdeps/arm/bits/linkmap.h: ...this.
2089         * sysdeps/generic/bits/link.h: Renamed to...
2090         * sysdeps/generic/bits/linkmap.h: ...this.
2091         * sysdeps/hppa/bits/link.h: Renamed to...
2092         * sysdeps/hppa/bits/linkmap.h: ...this.
2093         * sysdeps/i386/bits/link.h: Renamed to...
2094         * sysdeps/i386/bits/linkmap.h: ...this.
2095         * sysdeps/ia64/bits/link.h: Renamed to...
2096         * sysdeps/ia64/bits/linkmap.h: ...this.
2097         * sysdeps/s390/bits/link.h: Renamed to...
2098         * sysdeps/s390/bits/linkmap.h: ...this.
2099         * sysdeps/sh/bits/link.h: Renamed to...
2100         * sysdeps/sh/bits/linkmap.h: ...this.
2101         * sysdeps/x86_64/bits/link.h: Renamed to...
2102         * sysdeps/x86_64/bits/linkmap.h: ...this.
2104         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
2106 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
2108         [BZ #602]
2109         * math/libm-test.inc (rint_test_tonearest): New test.
2110         (rint_test_towardzero): New test.
2111         (rint_test_downward): New test.
2112         (rint_test_upward): New test.
2113         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
2114         Remove redundant const values.
2115         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
2116         Remove redundant const values.  Use float const.
2117         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
2118         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
2119         Use float const.
2120         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
2121         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
2122         Use float const.
2123         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
2124         Remove redundant const values.
2125         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
2126         Remove redundant const values.  Use float const.
2127         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
2128         Remove redundant const values.
2129         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
2130         Remove redundant const values.  Use float const.
2131         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
2132         alignment.  Fix -0.0 case.  Remove redundant const values.
2133         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
2134         alignment.  Fix -0.0 case.  Remove redundant const values.
2135         Use float const.
2136         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
2137         alignment.  Fix -0.0 case.
2138         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
2139         alignment.  Fix -0.0 case.  Use float const.
2140         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
2141         alignment.  Fix -0.0 case.
2142         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
2143         alignment.  Fix -0.0 case.  Use float const.
2144         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
2145         alignment.  Fix -0.0 case.  Remove redundant const values.
2146         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
2147         alignment.  Fix -0.0 case.  Remove redundant const values.
2148         Use float const.
2149         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
2150         alignment.  Fix -0.0 case.
2151         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
2152         alignment.  Fix -0.0 case.  Remove redundant const values.
2153         Use float const.
2155 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
2157         * misc/sys/cdefs.h: Define __wur.
2158         * libio/stdio.h: Use __wur for a number of interfaces.
2159         * posix/unistd.h: Likewise.
2160         * stdlib/stdlib.h: Likewise.
2162 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
2164         [BZ #592]
2165         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
2166         libc_hidden_proto instead of HIDDEN_PROTO.
2167         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
2168         (__libm_error_support): If ASSEMBLER and in libc, define to
2169         HIDDEN_JUMPTARGET(__libm_error_support).
2171 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
2173         [BZ #592]
2174         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
2175         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
2176         with $(duplicated-routines).
2177         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
2178         "m_" prefix.
2180 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
2182         [BZ #592]
2183         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
2184         undefine "ret" macro.  Add __libm_error_support hidden definitions.
2186         [BZ #592]
2187         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
2188         missing portion of copyright statement.
2189         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2190         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2192         [BZ #592]
2193         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
2194         missing portion of copyright statement.
2195         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
2196         (__ieee754_gamma): Likewise.
2197         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2198         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2200 2004-12-09  H. J. Lu <hjl@lucon.org>
2202         [BZ #592]
2203         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
2204         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
2205         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
2206         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
2207         * sysdeps/ia64/fpu/e_expl.S: Likewise.
2208         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
2210 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
2212         [BZ #592]
2213         * sysdeps/ia64/fpu/README: New file.
2214         * sysdeps/ia64/fpu/gen_import_file_list: New file.
2215         * sysdeps/ia64/fpu/import_check: Likewise.
2216         * sysdeps/ia64/fpu/import_diffs: Likewise.
2217         * sysdeps/ia64/fpu/import_file.awk: Likewise.
2218         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
2219         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
2221         [BZ #592]
2222         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
2223         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2224         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2225         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2226         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2227         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2228         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2229         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2230         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2231         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2232         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2233         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2234         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2235         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2236         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2237         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2238         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2239         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2240         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2241         * sysdeps/ia64/fpu/e_log.S: Likewise.
2242         * sysdeps/ia64/fpu/e_log2.S: Likewise.
2243         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
2244         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
2245         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2246         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2247         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2248         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2249         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2250         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2251         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2252         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2253         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2254         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2255         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2256         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2257         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2258         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2259         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2260         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2261         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2262         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
2263         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2264         * sysdeps/ia64/fpu/s_atan.S: Likewise.
2265         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
2266         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
2267         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
2268         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
2269         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
2270         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
2271         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
2272         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
2273         * sysdeps/ia64/fpu/s_cos.S: Likewise.
2274         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
2275         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2276         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
2277         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
2278         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
2279         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
2280         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
2281         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
2282         * sysdeps/ia64/fpu/s_floor.S: Likewise.
2283         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
2284         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
2285         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
2286         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
2287         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2288         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2289         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2290         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2291         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2292         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2293         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2294         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2295         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2296         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2297         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2298         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2299         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2300         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2301         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2302         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2303         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2304         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2305         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2306         * sysdeps/ia64/fpu/s_round.S: Likewise.
2307         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2308         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2309         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2310         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2311         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2312         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2313         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2314         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2315         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2316         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2317         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2319         [BZ #592]
2320         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
2321         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
2322         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
2323         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
2324         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
2325         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
2326         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
2327         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
2328         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
2329         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
2330         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
2331         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
2332         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
2333         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
2334         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
2335         * sysdeps/ia64/fpu/e_logl.S: Likewise.
2336         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
2337         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
2338         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
2339         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
2340         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
2341         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
2342         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
2343         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
2344         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
2345         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
2346         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
2347         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
2348         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
2349         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2350         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
2351         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2352         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
2353         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
2354         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
2355         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
2356         * sysdeps/ia64/fpu/s_erf.S: Likewise.
2357         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
2358         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
2359         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
2360         * sysdeps/ia64/fpu/s_erff.S: Likewise.
2361         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
2362         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
2363         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
2364         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
2365         * sysdeps/ia64/fpu/s_fma.S: Likewise.
2366         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
2367         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
2368         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
2369         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
2370         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
2371         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
2372         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
2373         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
2374         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
2375         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
2376         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
2377         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
2378         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
2379         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
2380         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
2381         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
2382         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
2383         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
2384         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2385         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2386         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2387         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
2388         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
2389         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
2391         [BZ #592]
2392         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
2393         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
2394         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
2395         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
2396         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
2397         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
2398         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
2399         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
2400         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
2401         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
2402         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
2403         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
2404         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
2405         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
2406         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
2407         * sysdeps/ia64/fpu/w_expl.c: Likewise.
2408         * sysdeps/ia64/fpu/e_expl.S: Likewise.
2409         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
2410         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
2411         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
2412         * sysdeps/ia64/fpu/w_log2.c: Likewise.
2413         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
2414         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
2415         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
2416         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
2417         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
2419         [BZ #592]
2420         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
2421         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2422         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2423         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2424         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2425         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2426         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2428         [BZ #592]
2429         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
2430         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
2431         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
2433         [BZ #592]
2434         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
2436         [BZ #592]
2437         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
2438         alias for use by libm_error.c
2440         [BZ #592]
2441         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
2442         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
2443         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
2444         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
2445         libm_scalbn{,f,l}, libm_scalblnf.
2446         (sysdep_routines): Remove libm_frexp4{,f,l}.
2447         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
2448         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
2449         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
2450         -DSIZE_LONG_LONG_INT_64.
2452 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
2454         [BZ #729]
2455         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
2456         l_text_end are set for a VDSO with a single PT_LOAD entry.
2458 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
2460         [BZ #730]
2461         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
2462         invalid to disable optimizations in fileops which won't work here.
2463         (_IO_cookie_jumps): Use it.
2464         (_IO_old_cookie_jumps): Likewise.
2465         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
2466         not the return value.
2467         * stdio-common/Makefile (tests): Add tst-fmemopen2.
2468         * stdio-common/tst-fmemopen2.c: New file.
2470         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
2472 2005-01-05  Roland McGrath  <roland@redhat.com>
2474         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
2475         * sysdeps/i386/configure.in: ... here.  New file.
2477 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
2479         [BZ #727]
2480         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
2481         initialize __environ again.
2482         * stdlib/Makefile: Add rules to build and run tst-putenv.
2483         * stdlib/tst-putenv.c: New file.
2484         * stdlib/tst-putenvmod.c: New file.
2486         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
2487         define unnecessary wrappers or aliases of static functions.
2489 2005-01-03  Andreas Jaeger  <aj@suse.de>
2491         * csu/Makefile (generated): Add start.os and start.ob.
2493         * elf/Makefile (tests): Change rule for tst-pie1 so that make
2494         clean works.
2496 2004-12-29  Roland McGrath  <roland@redhat.com>
2498         [BZ #626]
2499         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
2500         than always up; when nearest is zero, round up to one.
2502 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
2504         * po/es.po: Update from translation team.
2506         [BZ #726]
2507         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
2509 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
2511         [BZ #744]
2512         * include/signal.h: Define __sigemptyset.
2514 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
2516         * posix/regex_internal.h (struct re_dfastate_t): Make
2517         word_trtable a pointer to the 512-item transition table.
2518         * posix/regexec.c (build_trtable): Fill in either state->trtable
2519         or state->word_trtable.  Return a boolean indicating success.
2520         (transit_state): Expect state->trtable to be a 256-item
2521         transition table.  Reorganize code to have less tests in
2522         the common case, and to save an indentation level.
2523         * posix/regex_internal.c (free_state): Free word_trtable.
2525 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
2527         [BZ #723]
2528         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
2529         calling fn is 16 byte aligned.
2530         * sysdeps/i386/tst-stack-align.h: New file.
2532         [BZ #725]
2533         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
2534         (ecvt_r): Special case denormals.
2535         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
2536         * misc/tst-efgcvt.c: Include float.h.
2537         (ecvt_tests): Add 2 new tests.
2539 2004-12-20  Roland McGrath  <roland@frob.com>
2541         * version.h (RELEASE, VERSION): development, 2.3.90
2542         * include/features.h (__GLIBC_MINOR__): Now 4.
2545 See ChangeLog.15 for earlier changes.