2005-02-21 Alan Modra <amodra@bigpond.net.au>
[glibc.git] / ChangeLog
bloba52a9ca85ef10e319a1e4a985f9108359e0cbe4d
1 2005-02-21  Alan Modra <amodra@bigpond.net.au>
3         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
4         array index is within bounds.
6 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
8         * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
9         linked code.
10         * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
11         * elf/Makefile: Remove rules to build and run tst-tls9-static.
13         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
14         THREAD_DTV multiple times, this minimally reduces code size on
15         some archs.
17 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
19         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
20         NETDB_INTERNAL if buffer is too small.
22         * nscd/hstcache.c (INCR): Remove.
23         (addhstbyX): Double buflen in each iteration rather than add INCR.
24         * nscd/grpcache.c: Likewise.
25         * nscd/pwdcache.c: Likewise.
27 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
29         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
30         map if requested.
31         * debug/chk_fail.c: Request backtrace and memory map dump.
33         * Versions.def: Add GLIBC_2.4 for libc.
34         * debug/fgets_chk.c: New file.
35         * debug/fgets_u_chk.c: New file.
36         * debug/getcwd_chk.c: New file.
37         * debug/getwd_chk.c: New file.
38         * debug/readlink_chk.c: New file.
39         * debug/read_chk.c: New file.
40         * debug/pread_chk.c: New file.
41         * debug/pread64_chk.c: New file.
42         * debug/recv_chk.c: New file.
43         * debug/recvfrom_chk.c: New file.
44         * debug/Versions: Add all new functions with version GLIBC_2.4.
45         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
46         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
47         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
48         * debug/tst-chk1.c: Add more tests.
49         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
50         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
51         * posix/unistd.h: Include <bits/unistd.h> for fortification.
52         * posix/bits/unistd.h: New file.
53         * posix/Makefile (headers): Add bits/unistd.h.
54         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
55         * socket/bits/socket2.h: New file.
56         * socket/Makefile (headers): Add bits/socket2.h.
58         * string/bits/string3.h: Extend memset macro to check for zero 3rd
59         parameter and use __memset_zero_constant_len_parameter in that case.
60         * sysdeps/generic/memset_chk.c: Add
61         __memset_zero_constant_len_parameter alias and linker warning.
62         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
63         with version GLIBC_2.4.
65         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
66         in __STD_TYPE definition.
68 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
70         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
71         the error message rather than program name.
73 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
75         * posix/unistd.h: symlink and readlink are unconditionally
76         available in the 2001 spec.
78 2005-02-16  Roland McGrath  <roland@redhat.com>
80         * intl/dcigettext.c (_nl_find_msg): Add a cast.
82         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
83         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
84         * nis/nis_clone_res.c (nis_clone_result): Likewise.
86         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
87         for END_OF_MESSAGE and CP.
89         * resolv/res_send.c (send_dg): Add else branch for case impossible
90         unless `poll' is buggy.
92         * crypt/crypt_util.c (__setkey_r): Add a cast.
94         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
95         NBYTES, and unsigned char * for BYTES.
97         * locale/programs/charmap.c (charmap_new_char): Use size_t and
98         unsighed char * for NBYTES, BYTES parameters.
100         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
101         and cast it.
102         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
104         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
106         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
108         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
109         (authdes_marshal): Don't use unsigned int for LEN.
110         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
111         (xdr_u_hyper): Likewise.
112         (xdr_u_short): Don't use u_long for L.
113         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
115         * inet/rexec.c (rexec_af): Use socklen_t.
116         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
117         * sunrpc/rtime.c (rtime): Likewise.
118         * resolv/res_send.c (send_vc, send_dg): Likewise.
119         * nis/nis_callback.c (__nis_create_callback): Likewise.
121         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
123         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
125         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
127         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
128         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
129         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
130         * intl/bindtextdom.c (INTUSE): Macro removed.
131         (_nl_default_dirname): Use libc_hidden_proto.
132         (set_binding_values): Don't use INTUSE.
133         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
134         (_libc_intl_domainname): Use libc_hidden_proto.
135         * posix/regex_internal.h (gettext): Remove INTUSE on it.
136         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
137         rather than INTDEF.
138         * include/libintl.h (_): Don't use *_internal name.
140         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
141         not uint32_t.
142         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
144         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
146         [BZ #721]
147         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
148         of [RESOLVE_MAP].
149         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
150         * sysdeps/powerpc/powerpc32/dl-machine.h
151         (elf_machine_rel, elf_machine_rel_relative): Removed.
152         * sysdeps/powerpc/powerpc64/dl-machine.h
153         (elf_machine_rel, elf_machine_rel_relative): Removed.
155 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
157         [BZ #721]
158         * elf/dynamic-link.h: Don't declare nested auto functions that are
159         not going to be defined.
161 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
163         [BZ #284]
164         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
165         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
167 2005-02-16  Roland McGrath  <roland@redhat.com>
169         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
170         inside [! SHARED] where it's used.
172 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
174         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
175         functions and macros is unsigned.
177 2005-02-11  Barry deFrese  <bddebian@comcast.net>
179         [BZ #722]
180         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
181         * sysdeps/mach/hurd/setresuid.c: Likewise.
183 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
185         * misc/sys/syslog.h: Fix typo in comment.
187 2005-02-14  Roland McGrath  <roland@redhat.com>
189         [BZ #720]
190         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
191         if it wasn't originally.
193 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
195         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
196         getpeername entry.
197         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
198         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
200 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
202         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
203         matching line.
205 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
207         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
208         with auto inline, and attribute always_inline.
209         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
210         (elf_machine_rel, elf_machine_rel_relative): Likewise.
211         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
212         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
213         (elf_machine_rel, elf_machine_rel_relative): Likewise.
214         (elf_machine_tprel): Likewise.
216 2005-02-14  Andreas Schwab  <schwab@suse.de>
218         * manual/filesys.texi (Random Access Directory): Fix type of file
219         position value for telldir and seekdir.
220         (Attribute Meanings): Fix typo.
222 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
224         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
225         isn't defined.
226         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
227         if SHARED isn't defined.
228         * elf/Makefile (tests-static): Add tst-array1-static.
229         ($(objpfx)tst-array1-static.out): New target.
230         * elf/tst-array1-static.c: New file.
232 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
234         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
235         __libc_message to kill GCC warning about noreturn function returning.
237         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
238         before relocating ld.so again.
240         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
241         for already prelinked ld.so.
243 2005-02-11  Roland McGrath  <roland@redhat.com>
245         [BZ #715]
246         * Makefile (installed-stubs): New variable.
247         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
248         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
249         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
250         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
251         rule's target.
252         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
253         * include/stubs-biarch.h: New file.
255         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
257         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
258         Emit defn for variable `biarch'.
260         * include/stub-tag.h: Update comment.
262         * scripts/soversions.awk: Fix default version set handling.
264 2005-02-10  Roland McGrath  <roland@redhat.com>
266         [BZ #157]
267         * include/libc-symbols.h (stub_warning): Emit a marker section called
268         .gnu.glibc-stub.NAME.
269         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
270         Use objdump to collect those marker section names.
271         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
273         * Rules (subdir_objs, subdir_stubs): New phony targets.
274         * Makefile (+subdir_targets): Add them.
276         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
277         soversions.i.
279         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
280         Reported by H.J. Lu <hongjiu.lu@intel.com>.
282         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
283         doing two.
285 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
287         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
288         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
289         * sysdeps/powerpc/bits/link.h: ... here.  New file.
291 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
293         [BZ #710]
294         * stdlib/random_r.c (__initstate_r): Save old state.
295         * stdlib/Makefile (tests): Add tst-random2.
296         * stdlib/tst-random2.c: New test.
297         Reported by Peter Bergner <bergner@vnet.ibm.com>.
299 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
301         * dlfcn/dlfcn.c (init): Put it in .init_array section.
303 2005-02-10  Roland McGrath  <roland@redhat.com>
305         [BZ #632]
306         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
307         from command line.
308         Grok shlib-versions lines with WORDSIZE* in second column.
309         Add new leading column to output, DEFAULT for existing output lines.
310         Also emit lines with WORDSIZE* for alternate configurations.
311         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
312         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
313         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
314         of soversions.mk; replace inline shell script with use of ...
315         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
316         emit multiple sets of macros under #if.
317         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
318         (s390x-.*-.*): Likewise for s390.
319         (powerpc64-.*-.*): Likewise for powerpc.
320         (sparc64-.*-.*): Likewise for sparc.
321         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
322         for these mapping back to the above.
324 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
326         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
328 2005-02-08  Andreas Schwab  <schwab@suse.de>
330         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
331         RESOLVE.
333 2005-02-07  Richard Henderson  <rth@redhat.com>
335         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
337 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
339         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
340         RESOLVE.
342 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
344         * elf/dl-load.c (_dl_map_object_from_fd): Makre sure registers are
345         set correctly.
347 2005-01-07  Richard Henderson  <rth@redhat.com>
349         * math/math_private.h (__copysign): Define as builtin for gcc 4.
350         (__copysignf, __copysignl): Likewise.
351         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
352         for gcc 4.0.
353         (copysignf, copysignl, fabsf, fabs): Likewise.
354         (__copysign, __copysignf, __copysignl): Remove.
355         (__fabs, __fabsf): Remove.
357 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
359         [BZ #738]
360         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
361         avoid writing to it if none of the standard search directories exist.
363 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
365         [BZ #700]
366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
367         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
368         Load MSR as a doubleword.
369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
370         (__novec_swapcontext, __swapcontext): Likewise.
372 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
374         * iconv/iconv_prog.c (main): Provide more help in case on an error.
376         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
378 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
380         [BZ #741]
381         * nscd/nscd.c (termination_handler): Avoid segfault if some database
382         is not enabled.
384         [BZ #741]
385         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
386         __nss_not_use_nscd_hosts and return -1.
387         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
388         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
389         Avoid leaking sockets.
391 2005-01-28  Andreas Schwab  <schwab@suse.de>
392             H.J. Lu  <hongjiu.lu@intel.com>
394         [BZ #677]
395         * elf/dl-runtime.c (fixup): Change return type to
396         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
397         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
398         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
399         store and retrieve relocation values.
400         (profile_fixup): Likewise.
401         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
402         l_reloc_result.
403         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
404         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
405         (DL_FIXUP_MAKE_VALUE): Likewise.
406         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
407         (DL_FIXUP_VALUE_ADDR): Likewise.
408         (DL_FIXUP_ADDR_VALUE): Likewise.
409         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
410         (DL_FIXUP_VALUE_TYPE): New.
411         (DL_FIXUP_MAKE_VALUE): Likewise.
412         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
413         (DL_FIXUP_VALUE_ADDR): Likewise.
414         (DL_FIXUP_ADDR_VALUE): Likewise.
415         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
416         (elf_machine_profile_plt): Removed.
417         (elf_machine_fixup_plt): Change return type and type of value
418         parameter to struct fdesc.
419         (elf_machine_plt_value): Likewise.
420         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
421         argument for elf_machine_fixup_plt.
423 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
425         [BZ #742]
426         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
427         after the status string printed by killproc.
429 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
431         * manual/.cvsignore: Add dir-add.texi.
433 2005-02-06  Richard Henderson  <rth@redhat.com>
435         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
436         all the time.
438 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
440         * configure.in (sysnames): Append sysdeps/generic for each add-on.
441         * configure: Regenerated.
443 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
445         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
446         (dtv_t): Change pointer type to be a struct which also contains
447         information whether the memory pointed to is static TLS or not.
449         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
451         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
452         (FALSEP): ... this.  Updated all references.
454         * libio/fmemopen.c: Include <stdint.h>.
456 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
458         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
459         * nscd/connections.c (send_ro_fd): Likewise.
461 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
463         * elf/tst-auditmod1.c: Add ia64 entries.
464         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
465         (La_ia64_retval): New.
466         (audit_ifaces): Add ia64 entries.
467         * sysdeps/ia64/bits/link.h: New file.
468         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
469         for dl_profile non-null.
470         (ARCH_LA_PLTENTER): New.
471         (ARCH_LA_PLTEXIT): New.
472         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
473         only 2 output registers. Allocate stack to save/restore
474         8 incoming fp registers. Call _dl_fixup instead of fixup.
475         (_dl_runtime_profile): Rewrite.
477 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
479         * sysdeps/s390/bits/link.h: New file.
480         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
481         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
482         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
483         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
484         relocation code.
485         (elf_machine_runtime_setup): Test for dl_profile non-null.
486         (elf_machine_rela): Remove code using RESOLVE.
487         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
488         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
489         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
490         La_s390_64_regs, La_s390_64_retval): New.
491         * elf/tst-auditmod1.c: Add s390 entries.
493         [BZ #743]
494         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
495         strncat, memchr, strcmp): Add missing memory clobber.
497 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
499         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
500         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
502 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
504         [BZ #558]
505         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
506         Initialize the node sets in dfa->inveclosures.
507         (analyze): Initialize inveclosures only if it is needed.
508         Check errors from calc_inveclosure.
509         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
510         the inveclosure node set.
511         * posix/regexec.c (re_search_internal): If nmatch includes unused
512         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
514         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
515         Do build a SIMPLE_BRACKET token.
517         * posix/regexec.c (transit_state_mb): Do not examine nodes
518         where ACCEPT_MB is not set.
520 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
522         * stdlib/tst-fmtmsg.c: Include stdlib.h.
523         * stdio-common/tst-fmemopen2.c: Include string.h.
524         * posix/execvp.c: Include stdbool.h.
526 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
528         Separate parsing and creation of the NFA.  Avoided recursion on
529         the (very unbalanced) parse tree.
530         [BZ #611]
531         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
532         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
533         (optimize_subexps, duplicate_tree, calc_first, calc_next,
534         mark_opt_subexp): Rewritten.
535         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
536         create_token_tree, free_tree, free_token): New.
537         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
538         postorder generic visitors.  Do not initialize the fields in the
539         re_dfa_t that represent the transitions.
540         (free_dfa_content): Use free_token.
541         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
542         include optimization of subexpressions.
543         (create_initial_state): Fetch the DFA node index from the first node's
544         bin_tree_t *.
545         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
546         Return on COMPLEX_BRACKET.
547         (duplicate_node_closure): Fix comment.
548         (duplicate_node): Do not initialize the fields in the
549         re_dfa_t that represent the transitions.
550         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
551         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
552         to use create_token_tree.
553         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
554         build_charclass_op): Use create_tree or create_token_tree instead
555         of re_dfa_add_tree_node.
556         (parse_dup_op): Likewise.  Also free the tree using free_tree for
557         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
558         to "a|".  Adjust invocation of mark_opt_subexp.
559         (parse_sub_exp): Create a single SUBEXP node.
560         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
561         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
562         DUPLICATED, and initialize the DFA fields representing the transitions.
563         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
564         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
565         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
566         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
567         NEXT into pointers to trees.  Remove ECLOSURE.
569 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
571         [BZ #605]
572         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
573         that were already created.
574         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
575         in the token if needed.
576         (create_ci_newstate, create_cd_newstate): Set accept_mb field
577         from the tokens' field.
578         * posix/regex_internal.h (re_token_t): Add accept_mb field.
579         (ACCEPT_MB_NODE): Removed.
580         * posix/regexec.c (proceed_next_node, transit_states_mb,
581         build_sifted_states, check_arrival_add_next_nodes): Use
582         accept_mb instead of ACCEPT_MB_NODE.
584 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
586         * debug/chk_fail.c (__chk_fail): Print program name in final message.
588         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
589         MSG_NOSIGNAL being in 2.2 kernels.
591 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
593         * sysdeps/unix/sysv/linux/i386/sysdep.h
594         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
596         [BZ #693]
597         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
598         (WORD_DELIM_CONSTRAINT): ...this.
599         (NOT_WORD_DELIM_CONSTRAINT): Define.
600         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
601         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
602         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
603         anchor instead of INSIDE_WORD.
604         (parse_expression): Handle NOT_WORD_DELIM constraint.
605         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
606         being inside word instead of not word delim.
607         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
608         characters.
609         * posix/rxspencer/tests: Add some new tests.
611 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
613         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
614         irrespective of Cflag.
616         * manual/memory.texi (sbrk): Fix definition.
617         * manual/string.texi (strcasestr): Fix example typo.
619 2005-01-25  Roland McGrath  <roland@redhat.com>
621         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
623 2005-01-23  Roland McGrath  <roland@redhat.com>
625         [BZ #737]
626         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
627         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
628         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
629         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
630         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
631         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
633 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
635         [BZ #731]
636         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
637         (free_mem): Don't free string.
638         * stdlib/tst-fmtmsg.c: Include string.h.
639         (main): Add some more tests.
641 2005-01-25  Andreas Schwab  <schwab@suse.de>
643         [BZ #736]
644         * timezone/asia: Update from tzdata2005c.
645         * timezone/backward: Likewise.
646         * timezone/europe: Likewise.
647         * timezone/leapseconds: Likewise.
648         * timezone/northamerica: Likewise.
649         * timezone/southamerica: Likewise.
651         [BZ #736]
652         * timezone/private.h: Update from tzcode2005c.
653         * timezone/tzfile.h: Likewise.
654         * timezone/zdump.c: Likewise.
655         * timezone/zic.c: Likewise.
657 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
659         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
660         RESOLVE.
661         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
662         using RESOLVE.
663         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
665 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
667         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
668         sym_map, not sym, against zero.
670 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
672         [BZ #671]
673         * misc/syslog.c: Moved to...
674         * sysdeps/generic/syslog.c: ...here.
675         [NO_SIGIPE]: Don't install SIGPIPE handler.
676         * sysdeps/unix/sysv/linux/syslog.c: New file.
677         * sysdeps/unix/sysv/linux/kernel-features.h: Define
678         __ASSUME_MSG_NOSIGNAL.
680 2005-01-22  Richard Henderson  <rth@redhat.com>
682         * sysdeps/alpha/dl-trampoline.S: New file.
683         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
684         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
685         (elf_machine_runtime_setup): Test for dl_profile non-null.
686         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
687         * sysdeps/alpha/bits/link.h: New file.
688         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
689         (struct audit_ifaces): Add alpha entries.
690         * elf/tst-auditmod1.c: Add alpha entries.
692 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
694         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
695         * sysdeps/ia64/dl-trampoline.S: New file.
697         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
698         La_x86_64_xmm definition.
700         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
701         pointer option.
702         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
703         CFLAGS-system.c for frame pointer option.
705 2005-01-21  Roland McGrath  <roland@redhat.com>
707         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
708         * sysdeps/i386/dl-machine.h: Update decl.
710 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
712         [BZ #735]
713         * elf/Makefile: Add rules to build and run tst-align2.
714         * elf/tst-align2.c: New test.
715         * elf/tst-alignmod2.c: New file.
716         * sysdeps/powerpc/tst-stack-align.h: New file.
717         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
718         pointer before calling _dl_init.
719         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
721 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
723         * posix/execl.c: Do not allocate potentially large buffers on the
724         stack.
725         * posix/execle.c: Likewise.
726         * posix/execlp.c: Likewise.
727         * posix/execlp.c: Likewise.
728         (script_execute): Removed.
729         (allocate_scripts_argv): New function.  Called at most once to
730         allocate memory, not every time a script is run.  Adjust caller.
732         * sysdeps/generic/wordexp.c (exec_comm): Add a few
733         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
734         exec_comm_child.
735         (exec_comm_child): Can now be inlined.
737         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
738         * stdlib/Makefile: Likewise.
740 2005-01-19  Roland McGrath  <roland@redhat.com>
742         [BZ #681]
743         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
744         argument to execlp.
745         Reported by Marcus Meissner <meissner@suse.de>.
747 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
749         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
750         in assert.
751         * iconv/strtab.c (strtabfinalize): Likewise.
753         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
755 2005-01-17  Roland McGrath  <roland@redhat.com>
757         [BZ #745]
758         * nscd/Makefile (LDLIBS-nscd): New variable.
759         ($(objpfx)nscd): Use that instead of selinux-LIBS.
761         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
762         (link-extra-libs-static): Define to $(link-extra-libs).
763         (link-extra-libs-bounded): Likewise.
765 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
767         * include/link.h: Remove stray definition of pltenter.
769 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
771         [BZ #734]
772         * sysdeps/unix/rewinddir.c: Reset filepos.
773         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
775 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
777         * elf/tst-auditmod1.c: Reduce duplication.
779 2005-01-16  Andreas Schwab  <schwab@suse.de>
781         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
782         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
783         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
784         GLRO(dl_profile) != NULL.
785         * sysdeps/m68k/dl-trampoline.S: New file.
786         * sysdeps/m68k/bits/link.h: New file.
787         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
788         variants.
789         * elf/tst-auditmod1.c: Add m68k support.
791 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
793         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
794         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
796         [BZ #731]
797         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
798         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
800 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
802         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
803         callers from libc anymore.
805         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
806         to _dl_map_object_deps.
807         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
808         protections when loading auditing modules.
810         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
812         * posix/getconf.c: Update copyright year.
813         * nss/getent.c: Likewise.
814         * nscd/nscd_nischeck.c: Likewise.
815         * iconv/iconvconfig.c: Likewise.
816         * iconv/iconv_prog.c: Likewise.
817         * elf/ldconfig.c: Likewise.
818         * catgets/gencat.c: Likewise.
819         * csu/version.c: Likewise.
820         * elf/ldd.bash.in: Likewise.
821         * elf/sprof.c (print_version): Likewise.
822         * locale/programs/locale.c: Likewise.
823         * locale/programs/localedef.c: Likewise.
824         * nscd/nscd.c (print_version): Likewise.
825         * debug/xtrace.sh: Likewise.
826         * malloc/memusage.sh: Likewise.
827         * malloc/mtrace.pl: Likewise.
828         * debug/catchsegv.sh: Likewise.
830 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
832         [BZ #733]
833         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
834         as backlog.
835         * sunrpc/svc_unix.c (svcunix_create): Likewise.
837         * grp/putgrent.c (putgrent): Don't write 0 as group
838         ID if groupname starts with + or -.
839         * pwd/putpwent.c (putpwent): Don't write 0 as user or
840         group ID if user name starts with + or -.
842 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
844         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
845         * sysdeps/elf/tst-auditmod1.c: Add sh support.
846         * sysdeps/sh/bits/link.h: New.
847         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
848         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
849         (RTLD_START): Define __fpscr_values.
850         * sysdeps/sh/dl-trampoline.S: New file.
851         * sysdeps/sh/sh4/dl-trampoline.S: New file.
852         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
853         * sysdeps/sh/sh4/dl-machine.h: Remove.
855 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
857         [BZ #732]
858         * time/tst-strptime.c (day_tests): Add 2 new tests.
859         (test_tm, main): Issue an error instead of segfaulting if
860         strptime returns NULL.
862 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
864         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
865         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
867 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
869         * malloc/malloc.h: Remove no-glibc support.
871 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
873         [BZ #650]
874         * malloc/malloc.h: Always include features.h.
876 2005-01-10  Roland McGrath  <roland@redhat.com>
878         * sysdeps/ia64/fpu/e_logl.c: File removed.
880         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
882 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
884         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
885         recognition of last entry.
887 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
889         * elf/dl-runtime.c: Include <sys/param.h>.
891         * elf/Makefile (headers): Add bits/link.h.
893 2005-01-09  Andreas Schwab  <schwab@suse.de>
895         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
897 2005-01-09  Andreas Jaeger  <aj@suse.de>
899         [BZ #732]
900         * time/strptime_l.c (__strptime_internal): Add braces to avoid
901         warning.
903         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
905         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
907 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
909         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
911 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
913         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
914         those of all the regular objects.
916         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
917         use it to select the r_debug structure for that namespace.
918         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
919         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
920         * elf/dl-open.c (_dl_open): Likewise.
921         * elf/rtld.c (dl_main): Likewise.
922         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
923         member.
924         (_dl_debug_initialize): Add new parameter in declaration.
926         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
927         called for the auditing objects themselves.
928         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
930 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
932         * sysdeps/powerpc/powerpc64/dl-machine.h
933         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
934         GLRO(dl_profile) != NULL.
935         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
936         padding.
937         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
938         Extend _dl_prof_resolve to add pass extra parameters to
939         _dl_profile_fixup and set up structure with register content.
941         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
942         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
943         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
944         Extend _dl_prof_resolve to add pass extra parameters to
945         _dl_profile_fixup and set up structure with register content.
946         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
947         the register and result structures.
948         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
949         in the 32-bit register and result structures.
951         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
953         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
954         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
955         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
956         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
957         * elf/tst-auditmod1.c: Add ppc32 support.
958         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
959         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
961         * malloc/malloc.c (malloc_printerr): Print program name as part of
962         error message.
964         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
965         * stdlib/stdlib.h: Make realloc with
966         __attribute_warn_unused_result__ instead of __wur.
967         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
968         markers as in <stdlib.h>.
970         * libio/stdio.h: Remove __wur from rename and remove.
971         * posix/unistd.h: Remove __wur from dup2.
973 2005-01-03  Andreas Jaeger  <aj@suse.de>
975         * elf/Makefile (tests): Revert patch from 2005-01-03.
977 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
979         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
980         make __libc_init_first hidden.
982         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
983         l_relocated of rtld map.
984         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
985         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
986         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
987         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
988         * elf/tst-auditmod1.c: Add ppc64 support.
989         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
991 2005-01-06  Roland McGrath  <roland@redhat.com>
993         [BZ #633]
994         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
995         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
997 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
999         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
1000         * sysdeps/generic/libc-start.c: Don't register program destructor here.
1002         * dlfcn/Makefile: Add rules to build dlfcn.c.
1003         (LDFLAGS-dl.so): Removed.
1004         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
1005         table.
1006         * dlfcn/dlmopen.c: Likewise for _dl_open.
1007         * dlfcn/dlopen.c: Likewise.
1008         * dlfcn/dlopenold.c: Likewise.
1009         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
1010         * elf/Makefile (routines): Remove dl-open and dl-close.
1011         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
1012         Add rules to build and run tst-audit1.
1013         * elf/tst-audit1.c: New file.
1014         * elf/tst-auditmod1.c: New file.
1015         * elf/Versions [libc]: Remove _dl_open and _dl_close.
1016         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
1017         * elf/dl-open.c: Likewise.
1018         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
1019         signaled by nonzero parameter.
1020         * elf/dl-init.c: Fix use of r_state.
1021         * elf/dl-load.c: Likewise.
1023         * elf/dl-close.c: Add auditing checkpoints.
1024         * elf/dl-open.c: Likewise.
1025         * elf/dl-fini.c: Likewise.
1026         * elf/dl-load.c: Likewise.
1027         * elf/dl-sym.c: Likewise.
1028         * sysdeps/generic/libc-start.c: Likewise.
1029         * elf/dl-object.c: Allocate memory for auditing information.
1030         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
1031         Correctly initialize slotinfo.
1032         * elf/dynamic-link.h: Adjust after removal of RESOLV.
1033         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
1034         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
1035         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
1036         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
1037         (_dl_profile_fixup): New parameters to point to register struct and
1038         variable for frame size.
1039         Add auditing checkpoints.
1040         (_dl_call_pltexit): New function.
1041         Don't define trampoline code here.
1042         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
1043         Remove all the functions from _rtld_global_ro which only _dl_open
1044         and _dl_close needed.
1045         Add auditing checkpoints.
1046         * elf/link.h: Define symbols for auditing interfaces.
1047         * include/link.h: Likewise.
1048         * include/dlfcn.h: Define __RTLD_AUDIT.
1049         Remove prototypes for _dl_open and _dl_close.
1050         Adjust access to argc and argv in libdl.
1051         * dlfcn/dlfcn.c: New file.
1052         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
1053         is gone.
1054         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
1055         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
1056         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
1057         Adjust for removal of RESOLVE.
1058         * sysdeps/x86_64/dl-machine.h: Likewise.
1059         * sysdeps/generic/dl-trampoline.c: New file.
1060         * sysdeps/i386/dl-trampoline.c: New file.
1061         * sysdeps/x86_64/dl-trampoline.c: New file.
1063         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
1064         Fix updating of DTV.
1065         * sysdeps/generic/libc-tls.c: Likewise.
1067         * sysdeps/arm/bits/link.h: Renamed to ...
1068         * sysdeps/arm/bits/linkmap.h: ...this.
1069         * sysdeps/generic/bits/link.h: Renamed to...
1070         * sysdeps/generic/bits/linkmap.h: ...this.
1071         * sysdeps/hppa/bits/link.h: Renamed to...
1072         * sysdeps/hppa/bits/linkmap.h: ...this.
1073         * sysdeps/i386/bits/link.h: Renamed to...
1074         * sysdeps/i386/bits/linkmap.h: ...this.
1075         * sysdeps/ia64/bits/link.h: Renamed to...
1076         * sysdeps/ia64/bits/linkmap.h: ...this.
1077         * sysdeps/s390/bits/link.h: Renamed to...
1078         * sysdeps/s390/bits/linkmap.h: ...this.
1079         * sysdeps/sh/bits/link.h: Renamed to...
1080         * sysdeps/sh/bits/linkmap.h: ...this.
1081         * sysdeps/x86_64/bits/link.h: Renamed to...
1082         * sysdeps/x86_64/bits/linkmap.h: ...this.
1084         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
1086 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
1088         [BZ #602]
1089         * math/libm-test.inc (rint_test_tonearest): New test.
1090         (rint_test_towardzero): New test.
1091         (rint_test_downward): New test.
1092         (rint_test_upward): New test.
1093         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
1094         Remove redundant const values.
1095         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
1096         Remove redundant const values.  Use float const.
1097         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
1098         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
1099         Use float const.
1100         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
1101         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
1102         Use float const.
1103         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
1104         Remove redundant const values.
1105         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
1106         Remove redundant const values.  Use float const.
1107         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
1108         Remove redundant const values.
1109         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
1110         Remove redundant const values.  Use float const.
1111         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
1112         alignment.  Fix -0.0 case.  Remove redundant const values.
1113         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
1114         alignment.  Fix -0.0 case.  Remove redundant const values.
1115         Use float const.
1116         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
1117         alignment.  Fix -0.0 case.
1118         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
1119         alignment.  Fix -0.0 case.  Use float const.
1120         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
1121         alignment.  Fix -0.0 case.
1122         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
1123         alignment.  Fix -0.0 case.  Use float const.
1124         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
1125         alignment.  Fix -0.0 case.  Remove redundant const values.
1126         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
1127         alignment.  Fix -0.0 case.  Remove redundant const values.
1128         Use float const.
1129         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
1130         alignment.  Fix -0.0 case.
1131         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
1132         alignment.  Fix -0.0 case.  Remove redundant const values.
1133         Use float const.
1135 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
1137         * misc/sys/cdefs.h: Define __wur.
1138         * libio/stdio.h: Use __wur for a number of interfaces.
1139         * posix/unistd.h: Likewise.
1140         * stdlib/stdlib.h: Likewise.
1142 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
1144         [BZ #592]
1145         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
1146         libc_hidden_proto instead of HIDDEN_PROTO.
1147         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
1148         (__libm_error_support): If ASSEMBLER and in libc, define to
1149         HIDDEN_JUMPTARGET(__libm_error_support).
1151 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
1153         [BZ #592]
1154         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
1155         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
1156         with $(duplicated-routines).
1157         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
1158         "m_" prefix.
1160 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
1162         [BZ #592]
1163         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
1164         undefine "ret" macro.  Add __libm_error_support hidden definitions.
1166         [BZ #592]
1167         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
1168         missing portion of copyright statement.
1169         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1170         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1172         [BZ #592]
1173         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
1174         missing portion of copyright statement.
1175         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
1176         (__ieee754_gamma): Likewise.
1177         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1178         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1180 2004-12-09  H. J. Lu <hjl@lucon.org>
1182         [BZ #592]
1183         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
1184         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
1185         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
1186         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
1187         * sysdeps/ia64/fpu/e_expl.S: Likewise.
1188         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
1190 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
1192         [BZ #592]
1193         * sysdeps/ia64/fpu/README: New file.
1194         * sysdeps/ia64/fpu/gen_import_file_list: New file.
1195         * sysdeps/ia64/fpu/import_check: Likewise.
1196         * sysdeps/ia64/fpu/import_diffs: Likewise.
1197         * sysdeps/ia64/fpu/import_file.awk: Likewise.
1198         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
1199         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
1201         [BZ #592]
1202         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
1203         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1204         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1205         * sysdeps/ia64/fpu/e_asin.S: Likewise.
1206         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1207         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1208         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1209         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1210         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1211         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1212         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1213         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1214         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1215         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1216         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1217         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1218         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1219         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1220         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1221         * sysdeps/ia64/fpu/e_log.S: Likewise.
1222         * sysdeps/ia64/fpu/e_log2.S: Likewise.
1223         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
1224         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
1225         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1226         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1227         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1228         * sysdeps/ia64/fpu/e_powl.S: Likewise.
1229         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1230         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1231         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1232         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1233         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1234         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1235         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1236         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1237         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1238         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1239         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1240         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1241         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1242         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
1243         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1244         * sysdeps/ia64/fpu/s_atan.S: Likewise.
1245         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
1246         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
1247         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
1248         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
1249         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
1250         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
1251         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
1252         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
1253         * sysdeps/ia64/fpu/s_cos.S: Likewise.
1254         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
1255         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1256         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
1257         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
1258         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
1259         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
1260         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
1261         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
1262         * sysdeps/ia64/fpu/s_floor.S: Likewise.
1263         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
1264         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
1265         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
1266         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
1267         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1268         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1269         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1270         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1271         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1272         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1273         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1274         * sysdeps/ia64/fpu/s_logb.S: Likewise.
1275         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1276         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1277         * sysdeps/ia64/fpu/s_modf.S: Likewise.
1278         * sysdeps/ia64/fpu/s_modff.S: Likewise.
1279         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1280         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1281         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1282         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1283         * sysdeps/ia64/fpu/s_rint.S: Likewise.
1284         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1285         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1286         * sysdeps/ia64/fpu/s_round.S: Likewise.
1287         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1288         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1289         * sysdeps/ia64/fpu/s_significand.S: Likewise.
1290         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1291         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1292         * sysdeps/ia64/fpu/s_tan.S: Likewise.
1293         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1294         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1295         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1296         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1297         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1299         [BZ #592]
1300         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
1301         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
1302         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
1303         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
1304         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
1305         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
1306         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
1307         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
1308         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
1309         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1310         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
1311         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
1312         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
1313         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
1314         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
1315         * sysdeps/ia64/fpu/e_logl.S: Likewise.
1316         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
1317         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
1318         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
1319         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
1320         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
1321         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
1322         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
1323         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
1324         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
1325         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
1326         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
1327         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
1328         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
1329         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1330         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
1331         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1332         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
1333         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
1334         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
1335         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
1336         * sysdeps/ia64/fpu/s_erf.S: Likewise.
1337         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
1338         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
1339         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
1340         * sysdeps/ia64/fpu/s_erff.S: Likewise.
1341         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
1342         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
1343         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
1344         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
1345         * sysdeps/ia64/fpu/s_fma.S: Likewise.
1346         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
1347         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
1348         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
1349         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
1350         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
1351         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
1352         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
1353         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
1354         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
1355         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
1356         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
1357         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
1358         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
1359         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
1360         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
1361         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
1362         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
1363         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
1364         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1365         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1366         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1367         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
1368         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
1369         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
1371         [BZ #592]
1372         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
1373         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
1374         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
1375         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
1376         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
1377         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
1378         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
1379         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
1380         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
1381         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
1382         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
1383         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
1384         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
1385         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
1386         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
1387         * sysdeps/ia64/fpu/w_expl.c: Likewise.
1388         * sysdeps/ia64/fpu/e_expl.S: Likewise.
1389         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
1390         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
1391         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
1392         * sysdeps/ia64/fpu/w_log2.c: Likewise.
1393         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
1394         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
1395         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
1396         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
1397         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
1399         [BZ #592]
1400         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
1401         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1402         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1403         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1404         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1405         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1406         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1408         [BZ #592]
1409         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
1410         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
1411         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
1413         [BZ #592]
1414         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
1416         [BZ #592]
1417         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
1418         alias for use by libm_error.c
1420         [BZ #592]
1421         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
1422         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
1423         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
1424         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
1425         libm_scalbn{,f,l}, libm_scalblnf.
1426         (sysdep_routines): Remove libm_frexp4{,f,l}.
1427         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
1428         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
1429         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
1430         -DSIZE_LONG_LONG_INT_64.
1432 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
1434         [BZ #729]
1435         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
1436         l_text_end are set for a VDSO with a single PT_LOAD entry.
1438 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
1440         [BZ #730]
1441         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
1442         invalid to disable optimizations in fileops which won't work here.
1443         (_IO_cookie_jumps): Use it.
1444         (_IO_old_cookie_jumps): Likewise.
1445         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
1446         not the return value.
1447         * stdio-common/Makefile (tests): Add tst-fmemopen2.
1448         * stdio-common/tst-fmemopen2.c: New file.
1450         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
1452 2005-01-05  Roland McGrath  <roland@redhat.com>
1454         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
1455         * sysdeps/i386/configure.in: ... here.  New file.
1457 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
1459         [BZ #727]
1460         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
1461         initialize __environ again.
1462         * stdlib/Makefile: Add rules to build and run tst-putenv.
1463         * stdlib/tst-putenv.c: New file.
1464         * stdlib/tst-putenvmod.c: New file.
1466         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
1467         define unnecessary wrappers or aliases of static functions.
1469 2005-01-03  Andreas Jaeger  <aj@suse.de>
1471         * csu/Makefile (generated): Add start.os and start.ob.
1473         * elf/Makefile (tests): Change rule for tst-pie1 so that make
1474         clean works.
1476 2004-12-29  Roland McGrath  <roland@redhat.com>
1478         [BZ #626]
1479         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
1480         than always up; when nearest is zero, round up to one.
1482 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
1484         * po/es.po: Update from translation team.
1486         [BZ #726]
1487         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
1489 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
1491         [BZ #744]
1492         * include/signal.h: Define __sigemptyset.
1494 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
1496         * posix/regex_internal.h (struct re_dfastate_t): Make
1497         word_trtable a pointer to the 512-item transition table.
1498         * posix/regexec.c (build_trtable): Fill in either state->trtable
1499         or state->word_trtable.  Return a boolean indicating success.
1500         (transit_state): Expect state->trtable to be a 256-item
1501         transition table.  Reorganize code to have less tests in
1502         the common case, and to save an indentation level.
1503         * posix/regex_internal.c (free_state): Free word_trtable.
1505 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
1507         [BZ #723]
1508         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
1509         calling fn is 16 byte aligned.
1510         * sysdeps/i386/tst-stack-align.h: New file.
1512         [BZ #725]
1513         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1514         (ecvt_r): Special case denormals.
1515         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1516         * misc/tst-efgcvt.c: Include float.h.
1517         (ecvt_tests): Add 2 new tests.
1519 2004-12-20  Roland McGrath  <roland@frob.com>
1521         * version.h (RELEASE, VERSION): development, 2.3.90
1522         * include/features.h (__GLIBC_MINOR__): Now 4.
1525 See ChangeLog.15 for earlier changes.