2005-03-05 Jakub Jelinek <jakub@redhat.com>
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
2
3         * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
4
5 2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
6
7         [BZ #776]
8         * iconv/iconvconfig.c: Fix comment for the output file.
9         (write_output): Clear padding in header.
10
11 2005-03-03  Ulrich Drepper  <drepper@redhat.com>
12
13         * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
14         loader is closed.  Fixes unload3.
15         * elf/tst-global1.c: New file.
16         * elf/Makefile (tests): Add tst-global1.
17         * elf/testobj2.c (p): New function.
18
19 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
20
21         * elf/Makefile: Add rules to build and run unload3 test.
22         * elf/unload3.c: New test.
23         * elf/unload3mod1.c: New file.
24         * elf/unload3mod2.c: New file.
25         * elf/unload3mod3.c: New file.
26         * elf/unload3mod4.c: New file.
27
28 2005-02-21  Alan Modra <amodra@bigpond.net.au>
29
30         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
31         use __uint128_t.
32
33 2005-03-01  Jakub Jelinek  <jakub@redhat.com>
34
35         * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
36         of __bos.
37         * socket/bits/socket2.h (recv, recvfrom): Likewise.
38
39 2005-03-01  Roland McGrath  <roland@redhat.com>
40
41         [BZ #721]
42         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
43         of [RESOLVE_MAP].
44
45 2005-03-01  Alfred M. Szmidt  <ams@gnu.org>
46
47         * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
48         Add missing initializer.
49
50         * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
51         USE_TLS && !USE___THREAD].
52
53 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
54
55         * csu/Makefile: Use printf instead of echo for some shells.
56
57 2005-02-28  Roland McGrath  <roland@redhat.com>
58
59         * debug/warning-nop.c (__nop): Rename to nop, make it static.
60         (__warndecl): Use alias attribute directly, instead of strong_alias
61         macro.  Add attribute_hidden.
62
63 2005-02-28  Ulrich Drepper  <drepper@redhat.com>
64
65         * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
66         determine the call will never trigger a failure.
67         * debug/read_chk.c (__read_chk): Always fail if the buffer is too
68         small.
69         * debug/readlink_chk.c (__readlink_chk): Likewise.
70         * debug/pread64_chk.c (__pread64_chk): Likewise.
71         * debug/pread_chk.c (__pread_chk): Likewise.
72
73         * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
74         * sysdeps/x86_64/memset_chk.S: Likewise.
75
76 2005-02-24  Roland McGrath  <roland@redhat.com>
77
78         * debug/Versions (libc: GLIBC_2.4): Remove
79         __memset_zero_constant_len_parameter.
80         * sysdeps/generic/memset_chk.c: Remove alias and warning.
81         * misc/sys/cdefs.h (__warndecl): New macro.
82         * debug/warning-nop.c: New file.
83         * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
84         arguments, instead of calling __memset_zero_constant_len_parameter.
85         Use __warndecl for __warn_memset_zero_len.
86         * debug/Makefile (routines): Add $(static-only-routines).
87         (static-only-routines): New variable.
88
89 2005-02-27  Ulrich Drepper  <drepper@redhat.com>
90
91         * po/tr.po: Update from translation team.
92
93 2005-02-26  Ulrich Drepper  <drepper@redhat.com>
94
95         * elf/dl-addr.c: Cleanups.  Move declaration next to first use.
96
97         * dlfcn/dlerror.c (check_free): New function.  Extract common code
98         from fini and free_key_mem.  Check whether this is libdl in the
99         base namespace.
100
101 2005-02-25  Ulrich Drepper  <drepper@redhat.com>
102
103         * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
104         to debug output.
105
106 2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
107
108         [BZ #758]
109         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
110         preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
111         like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
112         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
113         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
114         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
115         standard __NR prefix.
116         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
117         * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
118         the output file is compatible with both pre-2.6 and 2.6 kernel headers.
119         Extract separate syscall lists for each ABI.
120
121 2005-02-23  Ulrich Drepper  <drepper@redhat.com>
122
123         * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
124
125         [BZ #719]
126         * elf/Makefile: Run tst-tls9-static again.
127
128 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
129
130         [BZ #719]
131         * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
132         slotinfo array.
133         (__libc_setup_tls): Initialize length of DTV based on array length.
134         * elf/dl-load.c: Revert last change.
135         * sysdeps/generic/dl-tls.c: Revert last change.
136
137         * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
138         tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
139         tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
140         * posix/tst-execl1.c: New file.
141         * posix/tst-execl2.c: New file.
142         * posix/tst-execle1.c: New file.
143         * posix/tst-execle2.c: New file.
144         * posix/tst-execlp1.c: New file.
145         * posix/tst-execlp2.c: New file.
146         * posix/tst-execv1.c: New file.
147         * posix/tst-execv2.c: New file.
148         * posix/tst-execve1.c: New file.
149         * posix/tst-execve2.c: New file.
150         * posix/tst-execvp1.c: New file.
151         * posix/tst-execvp2.c: New file.
152
153 2005-02-22  Roland McGrath  <roland@redhat.com>
154
155         * include/signal.h: Revert last change.
156         (__sigemptyset): Use __builtin_memset instead of memset.
157
158 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
159
160         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
161         non-cancelable I/O functions.
162
163 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
164
165         [BZ #769]
166         * nscd/nscd-client.h: Include sys/uio.h.
167         (__readall, __readvall, writeall): New prototypes.
168         * nscd/connections.c (writeall): New function.
169         (handle_request): Use it.
170         * nscd/aicache.c (addhstaiX): Likewise.
171         * nscd/initgrcache.c (addinitgroupsX): Likewise.
172         * nscd/hstcache.c (cache_addhst): Likewise.
173         * nscd/grpcache.c (cache_addgr): Likewise.
174         * nscd/pwdcache.c (cache_addpw): Likewise.
175         * nscd/nscd_helper.c (__readall, __readvall): New functions.
176         * nscd/nscd_getai.c (__nscd_getai): Use them.
177         * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
178         * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
179         * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
180         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
181
182 2005-02-22  Roland McGrath  <roland@redhat.com>
183
184         * include/sys/socket.h: Declare __recv.
185         * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
186         * sysdeps/mach/hurd/recv.c: Likewise.
187
188         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
189         __backtrace_* decls.
190
191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
192         (INTERNAL_SYSCALL_ERROR_P): Evalute VAL.  Parenthesize ERR.
193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
194
195         * include/signal.h: Include <string.h> for memset decl.
196
197 2005-02-22  Andreas Schwab  <schwab@suse.de>
198
199         * posix/execvp.c (execvp): Fix invalid free.
200
201 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
202
203         * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
204         * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
205         librpcsvc.a objects.
206
207 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
208
209         * iconvdata/ibm930.h: Correct Yen mapping.
210         * iconvdata/ibm939.h: Likewise.
211         * iconvdata/testdata/IBM930..UTF8: Adjust test data.
212         * iconvdata/testdata/IBM939..UTF8: Likewise.
213         Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
214
215         * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
216         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
217         (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
218         ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
219         ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
220         ibm1158.c, and ibm1158.h.
221         * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
222         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
223         * iconvdata/gconv-modules: Likewise.
224         * iconvdata/ibm1025.c: New file.
225         * iconvdata/ibm1025.h: New file.
226         * iconvdata/ibm1122.c: New file.
227         * iconvdata/ibm1122.h: New file.
228         * iconvdata/ibm1137.c: New file.
229         * iconvdata/ibm1137.h: New file.
230         * iconvdata/ibm1153.c: New file.
231         * iconvdata/ibm1153.h: New file.
232         * iconvdata/ibm1154.c: New file.
233         * iconvdata/ibm1154.h: New file.
234         * iconvdata/ibm1155.c: New file.
235         * iconvdata/ibm1155.h: New file.
236         * iconvdata/ibm1156.c: New file.
237         * iconvdata/ibm1156.h: New file.
238         * iconvdata/ibm1157.c: New file.
239         * iconvdata/ibm1157.h: New file.
240         * iconvdata/ibm1158.c: New file.
241         * iconvdata/ibm1158.h: New file.
242         * iconvdata/testdata/IBM1025: New file.
243         * iconvdata/testdata/IBM1025..UTF8: New file.
244         * iconvdata/testdata/IBM1122: New file.
245         * iconvdata/testdata/IBM1122..UTF8: New file.
246         * iconvdata/testdata/IBM1137: New file.
247         * iconvdata/testdata/IBM1137..UTF8: New file.
248         * iconvdata/testdata/IBM1153: New file.
249         * iconvdata/testdata/IBM1153..UTF8: New file.
250         * iconvdata/testdata/IBM1154: New file.
251         * iconvdata/testdata/IBM1154..UTF8: New file.
252         * iconvdata/testdata/IBM1155: New file.
253         * iconvdata/testdata/IBM1155..UTF8: New file.
254         * iconvdata/testdata/IBM1156: New file.
255         * iconvdata/testdata/IBM1156..UTF8: New file.
256         * iconvdata/testdata/IBM1157: New file.
257         * iconvdata/testdata/IBM1157..UTF8: New file.
258         * iconvdata/testdata/IBM1158: New file.
259         * iconvdata/testdata/IBM1158..UTF8: New file.
260         Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
261
262 2005-02-10  Paolo Bonzini  <bonzini@gnu.org>
263
264         * posix/regcomp.c (lower_subexp): Do not optimize empty
265         subexpressions even with REG_NOSUB.
266         * posix/rxspencer/tests: Add a previously failing testcase.
267
268 2005-02-21  Alan Modra <amodra@bigpond.net.au>
269
270         [BZ #719]
271         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
272         array index is within bounds.
273
274 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
275
276         [BZ #719]
277         * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
278         linked code.
279         * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
280         * elf/Makefile: Remove rules to build and run tst-tls9-static.
281
282         [BZ #719]
283         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
284         THREAD_DTV multiple times, this minimally reduces code size on
285         some archs.
286
287 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
288
289         [BZ #768]
290         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
291         NETDB_INTERNAL if buffer is too small.
292
293         [BZ #768]
294         * nscd/hstcache.c (INCR): Remove.
295         (addhstbyX): Double buflen in each iteration rather than add INCR.
296         * nscd/grpcache.c: Likewise.
297         * nscd/pwdcache.c: Likewise.
298
299 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
300
301         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
302         map if requested.
303         * debug/chk_fail.c: Request backtrace and memory map dump.
304
305         * Versions.def: Add GLIBC_2.4 for libc.
306         * debug/fgets_chk.c: New file.
307         * debug/fgets_u_chk.c: New file.
308         * debug/getcwd_chk.c: New file.
309         * debug/getwd_chk.c: New file.
310         * debug/readlink_chk.c: New file.
311         * debug/read_chk.c: New file.
312         * debug/pread_chk.c: New file.
313         * debug/pread64_chk.c: New file.
314         * debug/recv_chk.c: New file.
315         * debug/recvfrom_chk.c: New file.
316         * debug/Versions: Add all new functions with version GLIBC_2.4.
317         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
318         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
319         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
320         * debug/tst-chk1.c: Add more tests.
321         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
322         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
323         * posix/unistd.h: Include <bits/unistd.h> for fortification.
324         * posix/bits/unistd.h: New file.
325         * posix/Makefile (headers): Add bits/unistd.h.
326         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
327         * socket/bits/socket2.h: New file.
328         * socket/Makefile (headers): Add bits/socket2.h.
329
330         * string/bits/string3.h: Extend memset macro to check for zero 3rd
331         parameter and use __memset_zero_constant_len_parameter in that case.
332         * sysdeps/generic/memset_chk.c: Add
333         __memset_zero_constant_len_parameter alias and linker warning.
334         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
335         with version GLIBC_2.4.
336
337         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
338         in __STD_TYPE definition.
339
340 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
341
342         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
343         the error message rather than program name.
344
345 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
346
347         [BZ #767]
348         * posix/unistd.h: symlink and readlink are unconditionally
349         available in the 2001 spec.
350
351 2005-02-16  Roland McGrath  <roland@redhat.com>
352
353         * intl/dcigettext.c (_nl_find_msg): Add a cast.
354
355         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
356         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
357         * nis/nis_clone_res.c (nis_clone_result): Likewise.
358
359         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
360         for END_OF_MESSAGE and CP.
361
362         * resolv/res_send.c (send_dg): Add else branch for case impossible
363         unless `poll' is buggy.
364
365         * crypt/crypt_util.c (__setkey_r): Add a cast.
366
367         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
368         NBYTES, and unsigned char * for BYTES.
369
370         * locale/programs/charmap.c (charmap_new_char): Use size_t and
371         unsighed char * for NBYTES, BYTES parameters.
372
373         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
374         and cast it.
375         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
376
377         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
378
379         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
380
381         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
382         (authdes_marshal): Don't use unsigned int for LEN.
383         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
384         (xdr_u_hyper): Likewise.
385         (xdr_u_short): Don't use u_long for L.
386         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
387
388         * inet/rexec.c (rexec_af): Use socklen_t.
389         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
390         * sunrpc/rtime.c (rtime): Likewise.
391         * resolv/res_send.c (send_vc, send_dg): Likewise.
392         * nis/nis_callback.c (__nis_create_callback): Likewise.
393
394         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
395
396         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
397
398         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
399
400         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
401         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
402         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
403         * intl/bindtextdom.c (INTUSE): Macro removed.
404         (_nl_default_dirname): Use libc_hidden_proto.
405         (set_binding_values): Don't use INTUSE.
406         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
407         (_libc_intl_domainname): Use libc_hidden_proto.
408         * posix/regex_internal.h (gettext): Remove INTUSE on it.
409         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
410         rather than INTDEF.
411         * include/libintl.h (_): Don't use *_internal name.
412
413         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
414         not uint32_t.
415         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
416
417         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
418
419         [BZ #721]
420         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
421         of [RESOLVE_MAP].
422         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
423         * sysdeps/powerpc/powerpc32/dl-machine.h
424         (elf_machine_rel, elf_machine_rel_relative): Removed.
425         * sysdeps/powerpc/powerpc64/dl-machine.h
426         (elf_machine_rel, elf_machine_rel_relative): Removed.
427
428 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
429
430         [BZ #721]
431         * elf/dynamic-link.h: Don't declare nested auto functions that are
432         not going to be defined.
433
434 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
435
436         [BZ #284]
437         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
438         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
439
440 2005-02-16  Roland McGrath  <roland@redhat.com>
441
442         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
443         inside [! SHARED] where it's used.
444
445 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
446
447         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
448         functions and macros is unsigned.
449
450 2005-02-11  Barry deFrese  <bddebian@comcast.net>
451
452         [BZ #722]
453         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
454         * sysdeps/mach/hurd/setresuid.c: Likewise.
455
456 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
457
458         * misc/sys/syslog.h: Fix typo in comment.
459
460 2005-02-14  Roland McGrath  <roland@redhat.com>
461
462         [BZ #720]
463         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
464         if it wasn't originally.
465
466 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
467
468         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
469         getpeername entry.
470         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
471         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
472
473 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
474
475         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
476         matching line.
477
478 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
479
480         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
481         with auto inline, and attribute always_inline.
482         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
483         (elf_machine_rel, elf_machine_rel_relative): Likewise.
484         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
485         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
486         (elf_machine_rel, elf_machine_rel_relative): Likewise.
487         (elf_machine_tprel): Likewise.
488
489 2005-02-14  Andreas Schwab  <schwab@suse.de>
490
491         * manual/filesys.texi (Random Access Directory): Fix type of file
492         position value for telldir and seekdir.
493         (Attribute Meanings): Fix typo.
494
495 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
496
497         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
498         isn't defined.
499         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
500         if SHARED isn't defined.
501         * elf/Makefile (tests-static): Add tst-array1-static.
502         ($(objpfx)tst-array1-static.out): New target.
503         * elf/tst-array1-static.c: New file.
504
505 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
506
507         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
508         __libc_message to kill GCC warning about noreturn function returning.
509
510         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
511         before relocating ld.so again.
512
513         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
514         for already prelinked ld.so.
515
516 2005-02-11  Roland McGrath  <roland@redhat.com>
517
518         [BZ #715]
519         * Makefile (installed-stubs): New variable.
520         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
521         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
522         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
523         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
524         rule's target.
525         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
526         * include/stubs-biarch.h: New file.
527
528         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
529
530         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
531         Emit defn for variable `biarch'.
532
533         * include/stub-tag.h: Update comment.
534
535         * scripts/soversions.awk: Fix default version set handling.
536
537 2005-02-10  Roland McGrath  <roland@redhat.com>
538
539         [BZ #157]
540         * include/libc-symbols.h (stub_warning): Emit a marker section called
541         .gnu.glibc-stub.NAME.
542         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
543         Use objdump to collect those marker section names.
544         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
545
546         * Rules (subdir_objs, subdir_stubs): New phony targets.
547         * Makefile (+subdir_targets): Add them.
548
549         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
550         soversions.i.
551
552         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
553         Reported by H.J. Lu <hongjiu.lu@intel.com>.
554
555         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
556         doing two.
557
558 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
559
560         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
561         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
562         * sysdeps/powerpc/bits/link.h: ... here.  New file.
563
564 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
565
566         [BZ #710]
567         * stdlib/random_r.c (__initstate_r): Save old state.
568         * stdlib/Makefile (tests): Add tst-random2.
569         * stdlib/tst-random2.c: New test.
570         Reported by Peter Bergner <bergner@vnet.ibm.com>.
571
572 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
573
574         * dlfcn/dlfcn.c (init): Put it in .init_array section.
575
576 2005-02-10  Roland McGrath  <roland@redhat.com>
577
578         [BZ #632]
579         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
580         from command line.
581         Grok shlib-versions lines with WORDSIZE* in second column.
582         Add new leading column to output, DEFAULT for existing output lines.
583         Also emit lines with WORDSIZE* for alternate configurations.
584         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
585         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
586         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
587         of soversions.mk; replace inline shell script with use of ...
588         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
589         emit multiple sets of macros under #if.
590         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
591         (s390x-.*-.*): Likewise for s390.
592         (powerpc64-.*-.*): Likewise for powerpc.
593         (sparc64-.*-.*): Likewise for sparc.
594         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
595         for these mapping back to the above.
596
597 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
598
599         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
600
601 2005-02-08  Andreas Schwab  <schwab@suse.de>
602
603         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
604         RESOLVE.
605
606 2005-02-07  Richard Henderson  <rth@redhat.com>
607
608         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
609
610 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
611
612         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
613         RESOLVE.
614
615 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
616
617         * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
618         set correctly.
619
620 2005-01-07  Richard Henderson  <rth@redhat.com>
621
622         * math/math_private.h (__copysign): Define as builtin for gcc 4.
623         (__copysignf, __copysignl): Likewise.
624         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
625         for gcc 4.0.
626         (copysignf, copysignl, fabsf, fabs): Likewise.
627         (__copysign, __copysignf, __copysignl): Remove.
628         (__fabs, __fabsf): Remove.
629
630 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
631
632         [BZ #738]
633         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
634         avoid writing to it if none of the standard search directories exist.
635
636 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
637
638         [BZ #700]
639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
640         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
641         Load MSR as a doubleword.
642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
643         (__novec_swapcontext, __swapcontext): Likewise.
644
645 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
646
647         * iconv/iconv_prog.c (main): Provide more help in case on an error.
648
649         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
650
651 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
652
653         [BZ #741]
654         * nscd/nscd.c (termination_handler): Avoid segfault if some database
655         is not enabled.
656
657         [BZ #741]
658         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
659         __nss_not_use_nscd_hosts and return -1.
660         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
661         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
662         Avoid leaking sockets.
663
664 2005-01-28  Andreas Schwab  <schwab@suse.de>
665             H.J. Lu  <hongjiu.lu@intel.com>
666
667         [BZ #677]
668         * elf/dl-runtime.c (fixup): Change return type to
669         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
670         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
671         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
672         store and retrieve relocation values.
673         (profile_fixup): Likewise.
674         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
675         l_reloc_result.
676         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
677         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
678         (DL_FIXUP_MAKE_VALUE): Likewise.
679         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
680         (DL_FIXUP_VALUE_ADDR): Likewise.
681         (DL_FIXUP_ADDR_VALUE): Likewise.
682         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
683         (DL_FIXUP_VALUE_TYPE): New.
684         (DL_FIXUP_MAKE_VALUE): Likewise.
685         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
686         (DL_FIXUP_VALUE_ADDR): Likewise.
687         (DL_FIXUP_ADDR_VALUE): Likewise.
688         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
689         (elf_machine_profile_plt): Removed.
690         (elf_machine_fixup_plt): Change return type and type of value
691         parameter to struct fdesc.
692         (elf_machine_plt_value): Likewise.
693         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
694         argument for elf_machine_fixup_plt.
695
696 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
697
698         [BZ #742]
699         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
700         after the status string printed by killproc.
701
702 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
703
704         * manual/.cvsignore: Add dir-add.texi.
705
706 2005-02-06  Richard Henderson  <rth@redhat.com>
707
708         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
709         all the time.
710
711 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
712
713         * configure.in (sysnames): Append sysdeps/generic for each add-on.
714         * configure: Regenerated.
715
716 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
717
718         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
719         (dtv_t): Change pointer type to be a struct which also contains
720         information whether the memory pointed to is static TLS or not.
721
722         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
723
724         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
725         (FALSEP): ... this.  Updated all references.
726
727         [BZ #765]
728         * libio/fmemopen.c: Include <stdint.h>.
729
730 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
731
732         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
733         * nscd/connections.c (send_ro_fd): Likewise.
734
735 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
736
737         * elf/tst-auditmod1.c: Add ia64 entries.
738         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
739         (La_ia64_retval): New.
740         (audit_ifaces): Add ia64 entries.
741         * sysdeps/ia64/bits/link.h: New file.
742         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
743         for dl_profile non-null.
744         (ARCH_LA_PLTENTER): New.
745         (ARCH_LA_PLTEXIT): New.
746         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
747         only 2 output registers. Allocate stack to save/restore
748         8 incoming fp registers. Call _dl_fixup instead of fixup.
749         (_dl_runtime_profile): Rewrite.
750
751 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
752
753         * sysdeps/s390/bits/link.h: New file.
754         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
755         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
756         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
757         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
758         relocation code.
759         (elf_machine_runtime_setup): Test for dl_profile non-null.
760         (elf_machine_rela): Remove code using RESOLVE.
761         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
762         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
763         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
764         La_s390_64_regs, La_s390_64_retval): New.
765         * elf/tst-auditmod1.c: Add s390 entries.
766
767         [BZ #743]
768         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
769         strncat, memchr, strcmp): Add missing memory clobber.
770
771 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
772
773         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
774         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
775
776 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
777
778         [BZ #558]
779         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
780         Initialize the node sets in dfa->inveclosures.
781         (analyze): Initialize inveclosures only if it is needed.
782         Check errors from calc_inveclosure.
783         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
784         the inveclosure node set.
785         * posix/regexec.c (re_search_internal): If nmatch includes unused
786         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
787
788         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
789         Do build a SIMPLE_BRACKET token.
790
791         * posix/regexec.c (transit_state_mb): Do not examine nodes
792         where ACCEPT_MB is not set.
793
794 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
795
796         * stdlib/tst-fmtmsg.c: Include stdlib.h.
797         * stdio-common/tst-fmemopen2.c: Include string.h.
798         * posix/execvp.c: Include stdbool.h.
799
800 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
801
802         Separate parsing and creation of the NFA.  Avoided recursion on
803         the (very unbalanced) parse tree.
804         [BZ #611]
805         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
806         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
807         (optimize_subexps, duplicate_tree, calc_first, calc_next,
808         mark_opt_subexp): Rewritten.
809         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
810         create_token_tree, free_tree, free_token): New.
811         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
812         postorder generic visitors.  Do not initialize the fields in the
813         re_dfa_t that represent the transitions.
814         (free_dfa_content): Use free_token.
815         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
816         include optimization of subexpressions.
817         (create_initial_state): Fetch the DFA node index from the first node's
818         bin_tree_t *.
819         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
820         Return on COMPLEX_BRACKET.
821         (duplicate_node_closure): Fix comment.
822         (duplicate_node): Do not initialize the fields in the
823         re_dfa_t that represent the transitions.
824         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
825         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
826         to use create_token_tree.
827         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
828         build_charclass_op): Use create_tree or create_token_tree instead
829         of re_dfa_add_tree_node.
830         (parse_dup_op): Likewise.  Also free the tree using free_tree for
831         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
832         to "a|".  Adjust invocation of mark_opt_subexp.
833         (parse_sub_exp): Create a single SUBEXP node.
834         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
835         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
836         DUPLICATED, and initialize the DFA fields representing the transitions.
837         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
838         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
839         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
840         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
841         NEXT into pointers to trees.  Remove ECLOSURE.
842
843 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
844
845         [BZ #605]
846         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
847         that were already created.
848         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
849         in the token if needed.
850         (create_ci_newstate, create_cd_newstate): Set accept_mb field
851         from the tokens' field.
852         * posix/regex_internal.h (re_token_t): Add accept_mb field.
853         (ACCEPT_MB_NODE): Removed.
854         * posix/regexec.c (proceed_next_node, transit_states_mb,
855         build_sifted_states, check_arrival_add_next_nodes): Use
856         accept_mb instead of ACCEPT_MB_NODE.
857
858 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
859
860         * debug/chk_fail.c (__chk_fail): Print program name in final message.
861
862         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
863         MSG_NOSIGNAL being in 2.2 kernels.
864
865 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
866
867         * sysdeps/unix/sysv/linux/i386/sysdep.h
868         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
869
870         [BZ #693]
871         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
872         (WORD_DELIM_CONSTRAINT): ...this.
873         (NOT_WORD_DELIM_CONSTRAINT): Define.
874         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
875         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
876         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
877         anchor instead of INSIDE_WORD.
878         (parse_expression): Handle NOT_WORD_DELIM constraint.
879         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
880         being inside word instead of not word delim.
881         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
882         characters.
883         * posix/rxspencer/tests: Add some new tests.
884
885 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
886
887         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
888         irrespective of Cflag.
889
890         * manual/memory.texi (sbrk): Fix definition.
891         * manual/string.texi (strcasestr): Fix example typo.
892
893 2005-01-25  Roland McGrath  <roland@redhat.com>
894
895         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
896
897 2005-01-23  Roland McGrath  <roland@redhat.com>
898
899         [BZ #737]
900         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
901         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
902         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
903         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
904         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
905         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
906
907 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
908
909         [BZ #731]
910         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
911         (free_mem): Don't free string.
912         * stdlib/tst-fmtmsg.c: Include string.h.
913         (main): Add some more tests.
914
915 2005-01-25  Andreas Schwab  <schwab@suse.de>
916
917         [BZ #736]
918         * timezone/asia: Update from tzdata2005c.
919         * timezone/backward: Likewise.
920         * timezone/europe: Likewise.
921         * timezone/leapseconds: Likewise.
922         * timezone/northamerica: Likewise.
923         * timezone/southamerica: Likewise.
924
925         [BZ #736]
926         * timezone/private.h: Update from tzcode2005c.
927         * timezone/tzfile.h: Likewise.
928         * timezone/zdump.c: Likewise.
929         * timezone/zic.c: Likewise.
930
931 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
932
933         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
934         RESOLVE.
935         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
936         using RESOLVE.
937         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
938
939 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
940
941         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
942         sym_map, not sym, against zero.
943
944 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
945
946         [BZ #671]
947         * misc/syslog.c: Moved to...
948         * sysdeps/generic/syslog.c: ...here.
949         [NO_SIGIPE]: Don't install SIGPIPE handler.
950         * sysdeps/unix/sysv/linux/syslog.c: New file.
951         * sysdeps/unix/sysv/linux/kernel-features.h: Define
952         __ASSUME_MSG_NOSIGNAL.
953
954 2005-01-22  Richard Henderson  <rth@redhat.com>
955
956         * sysdeps/alpha/dl-trampoline.S: New file.
957         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
958         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
959         (elf_machine_runtime_setup): Test for dl_profile non-null.
960         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
961         * sysdeps/alpha/bits/link.h: New file.
962         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
963         (struct audit_ifaces): Add alpha entries.
964         * elf/tst-auditmod1.c: Add alpha entries.
965
966 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
967
968         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
969         * sysdeps/ia64/dl-trampoline.S: New file.
970
971         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
972         La_x86_64_xmm definition.
973
974         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
975         pointer option.
976         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
977         CFLAGS-system.c for frame pointer option.
978
979 2005-01-21  Roland McGrath  <roland@redhat.com>
980
981         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
982         * sysdeps/i386/dl-machine.h: Update decl.
983
984 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
985
986         [BZ #735]
987         * elf/Makefile: Add rules to build and run tst-align2.
988         * elf/tst-align2.c: New test.
989         * elf/tst-alignmod2.c: New file.
990         * sysdeps/powerpc/tst-stack-align.h: New file.
991         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
992         pointer before calling _dl_init.
993         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
994
995 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
996
997         * posix/execl.c: Do not allocate potentially large buffers on the
998         stack.
999         * posix/execle.c: Likewise.
1000         * posix/execlp.c: Likewise.
1001         * posix/execvp.c: Likewise.
1002         (script_execute): Removed.
1003         (allocate_scripts_argv): New function.  Called at most once to
1004         allocate memory, not every time a script is run.  Adjust caller.
1005
1006         * sysdeps/generic/wordexp.c (exec_comm): Add a few
1007         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
1008         exec_comm_child.
1009         (exec_comm_child): Can now be inlined.
1010
1011         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
1012         * stdlib/Makefile: Likewise.
1013
1014 2005-01-19  Roland McGrath  <roland@redhat.com>
1015
1016         [BZ #681]
1017         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
1018         argument to execlp.
1019         Reported by Marcus Meissner <meissner@suse.de>.
1020
1021 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
1022
1023         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
1024         in assert.
1025         * iconv/strtab.c (strtabfinalize): Likewise.
1026
1027         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
1028
1029 2005-01-17  Roland McGrath  <roland@redhat.com>
1030
1031         [BZ #745]
1032         * nscd/Makefile (LDLIBS-nscd): New variable.
1033         ($(objpfx)nscd): Use that instead of selinux-LIBS.
1034
1035         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
1036         (link-extra-libs-static): Define to $(link-extra-libs).
1037         (link-extra-libs-bounded): Likewise.
1038
1039 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
1040
1041         * include/link.h: Remove stray definition of pltenter.
1042
1043 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
1044
1045         [BZ #734]
1046         * sysdeps/unix/rewinddir.c: Reset filepos.
1047         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
1048
1049 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
1050
1051         * elf/tst-auditmod1.c: Reduce duplication.
1052
1053 2005-01-16  Andreas Schwab  <schwab@suse.de>
1054
1055         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
1056         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1057         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
1058         GLRO(dl_profile) != NULL.
1059         * sysdeps/m68k/dl-trampoline.S: New file.
1060         * sysdeps/m68k/bits/link.h: New file.
1061         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
1062         variants.
1063         * elf/tst-auditmod1.c: Add m68k support.
1064
1065 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
1066
1067         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
1068         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
1069
1070         [BZ #731]
1071         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
1072         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
1073
1074 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
1075
1076         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
1077         callers from libc anymore.
1078
1079         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
1080         to _dl_map_object_deps.
1081         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
1082         protections when loading auditing modules.
1083
1084         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
1085
1086         * posix/getconf.c: Update copyright year.
1087         * nss/getent.c: Likewise.
1088         * nscd/nscd_nischeck.c: Likewise.
1089         * iconv/iconvconfig.c: Likewise.
1090         * iconv/iconv_prog.c: Likewise.
1091         * elf/ldconfig.c: Likewise.
1092         * catgets/gencat.c: Likewise.
1093         * csu/version.c: Likewise.
1094         * elf/ldd.bash.in: Likewise.
1095         * elf/sprof.c (print_version): Likewise.
1096         * locale/programs/locale.c: Likewise.
1097         * locale/programs/localedef.c: Likewise.
1098         * nscd/nscd.c (print_version): Likewise.
1099         * debug/xtrace.sh: Likewise.
1100         * malloc/memusage.sh: Likewise.
1101         * malloc/mtrace.pl: Likewise.
1102         * debug/catchsegv.sh: Likewise.
1103
1104 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
1105
1106         [BZ #733]
1107         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
1108         as backlog.
1109         * sunrpc/svc_unix.c (svcunix_create): Likewise.
1110
1111         * grp/putgrent.c (putgrent): Don't write 0 as group
1112         ID if groupname starts with + or -.
1113         * pwd/putpwent.c (putpwent): Don't write 0 as user or
1114         group ID if user name starts with + or -.
1115
1116 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1117
1118         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
1119         * sysdeps/elf/tst-auditmod1.c: Add sh support.
1120         * sysdeps/sh/bits/link.h: New.
1121         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
1122         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
1123         (RTLD_START): Define __fpscr_values.
1124         * sysdeps/sh/dl-trampoline.S: New file.
1125         * sysdeps/sh/sh4/dl-trampoline.S: New file.
1126         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
1127         * sysdeps/sh/sh4/dl-machine.h: Remove.
1128
1129 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
1130
1131         [BZ #732]
1132         * time/tst-strptime.c (day_tests): Add 2 new tests.
1133         (test_tm, main): Issue an error instead of segfaulting if
1134         strptime returns NULL.
1135
1136 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
1139         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
1140
1141 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
1142
1143         * malloc/malloc.h: Remove no-glibc support.
1144
1145 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
1146
1147         [BZ #650]
1148         * malloc/malloc.h: Always include features.h.
1149
1150 2005-01-10  Roland McGrath  <roland@redhat.com>
1151
1152         * sysdeps/ia64/fpu/e_logl.c: File removed.
1153
1154         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
1155
1156 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
1157
1158         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
1159         recognition of last entry.
1160
1161 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
1162
1163         * elf/dl-runtime.c: Include <sys/param.h>.
1164
1165         * elf/Makefile (headers): Add bits/link.h.
1166
1167 2005-01-09  Andreas Schwab  <schwab@suse.de>
1168
1169         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
1170
1171 2005-01-09  Andreas Jaeger  <aj@suse.de>
1172
1173         [BZ #732]
1174         * time/strptime_l.c (__strptime_internal): Add braces to avoid
1175         warning.
1176
1177         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
1178
1179         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
1180
1181 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
1182
1183         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
1184
1185 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
1186
1187         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
1188         those of all the regular objects.
1189
1190         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
1191         use it to select the r_debug structure for that namespace.
1192         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
1193         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1194         * elf/dl-open.c (_dl_open): Likewise.
1195         * elf/rtld.c (dl_main): Likewise.
1196         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
1197         member.
1198         (_dl_debug_initialize): Add new parameter in declaration.
1199
1200         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
1201         called for the auditing objects themselves.
1202         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1203
1204 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
1205
1206         * sysdeps/powerpc/powerpc64/dl-machine.h
1207         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
1208         GLRO(dl_profile) != NULL.
1209         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
1210         padding.
1211         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
1212         Extend _dl_prof_resolve to add pass extra parameters to
1213         _dl_profile_fixup and set up structure with register content.
1214
1215         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
1216         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
1217         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
1218         Extend _dl_prof_resolve to add pass extra parameters to
1219         _dl_profile_fixup and set up structure with register content.
1220         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
1221         the register and result structures.
1222         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
1223         in the 32-bit register and result structures.
1224
1225         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
1226
1227         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
1228         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
1229         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1230         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
1231         * elf/tst-auditmod1.c: Add ppc32 support.
1232         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
1233         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
1234
1235         * malloc/malloc.c (malloc_printerr): Print program name as part of
1236         error message.
1237
1238         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
1239         * stdlib/stdlib.h: Make realloc with
1240         __attribute_warn_unused_result__ instead of __wur.
1241         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
1242         markers as in <stdlib.h>.
1243
1244         * libio/stdio.h: Remove __wur from rename and remove.
1245         * posix/unistd.h: Remove __wur from dup2.
1246
1247 2005-01-03  Andreas Jaeger  <aj@suse.de>
1248
1249         * elf/Makefile (tests): Revert patch from 2005-01-03.
1250
1251 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
1252
1253         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
1254         make __libc_init_first hidden.
1255
1256         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
1257         l_relocated of rtld map.
1258         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
1259         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
1260         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1261         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
1262         * elf/tst-auditmod1.c: Add ppc64 support.
1263         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
1264
1265 2005-01-06  Roland McGrath  <roland@redhat.com>
1266
1267         [BZ #633]
1268         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
1269         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
1270
1271 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
1272
1273         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
1274         * sysdeps/generic/libc-start.c: Don't register program destructor here.
1275
1276         * dlfcn/Makefile: Add rules to build dlfcn.c.
1277         (LDFLAGS-dl.so): Removed.
1278         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
1279         table.
1280         * dlfcn/dlmopen.c: Likewise for _dl_open.
1281         * dlfcn/dlopen.c: Likewise.
1282         * dlfcn/dlopenold.c: Likewise.
1283         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
1284         * elf/Makefile (routines): Remove dl-open and dl-close.
1285         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
1286         Add rules to build and run tst-audit1.
1287         * elf/tst-audit1.c: New file.
1288         * elf/tst-auditmod1.c: New file.
1289         * elf/Versions [libc]: Remove _dl_open and _dl_close.
1290         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
1291         * elf/dl-open.c: Likewise.
1292         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
1293         signaled by nonzero parameter.
1294         * elf/dl-init.c: Fix use of r_state.
1295         * elf/dl-load.c: Likewise.
1296
1297         * elf/dl-close.c: Add auditing checkpoints.
1298         * elf/dl-open.c: Likewise.
1299         * elf/dl-fini.c: Likewise.
1300         * elf/dl-load.c: Likewise.
1301         * elf/dl-sym.c: Likewise.
1302         * sysdeps/generic/libc-start.c: Likewise.
1303         * elf/dl-object.c: Allocate memory for auditing information.
1304         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
1305         Correctly initialize slotinfo.
1306         * elf/dynamic-link.h: Adjust after removal of RESOLV.
1307         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
1308         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
1309         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
1310         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
1311         (_dl_profile_fixup): New parameters to point to register struct and
1312         variable for frame size.
1313         Add auditing checkpoints.
1314         (_dl_call_pltexit): New function.
1315         Don't define trampoline code here.
1316         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
1317         Remove all the functions from _rtld_global_ro which only _dl_open
1318         and _dl_close needed.
1319         Add auditing checkpoints.
1320         * elf/link.h: Define symbols for auditing interfaces.
1321         * include/link.h: Likewise.
1322         * include/dlfcn.h: Define __RTLD_AUDIT.
1323         Remove prototypes for _dl_open and _dl_close.
1324         Adjust access to argc and argv in libdl.
1325         * dlfcn/dlfcn.c: New file.
1326         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
1327         is gone.
1328         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
1329         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
1330         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
1331         Adjust for removal of RESOLVE.
1332         * sysdeps/x86_64/dl-machine.h: Likewise.
1333         * sysdeps/generic/dl-trampoline.c: New file.
1334         * sysdeps/i386/dl-trampoline.c: New file.
1335         * sysdeps/x86_64/dl-trampoline.c: New file.
1336
1337         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
1338         Fix updating of DTV.
1339         * sysdeps/generic/libc-tls.c: Likewise.
1340
1341         * sysdeps/arm/bits/link.h: Renamed to ...
1342         * sysdeps/arm/bits/linkmap.h: ...this.
1343         * sysdeps/generic/bits/link.h: Renamed to...
1344         * sysdeps/generic/bits/linkmap.h: ...this.
1345         * sysdeps/hppa/bits/link.h: Renamed to...
1346         * sysdeps/hppa/bits/linkmap.h: ...this.
1347         * sysdeps/i386/bits/link.h: Renamed to...
1348         * sysdeps/i386/bits/linkmap.h: ...this.
1349         * sysdeps/ia64/bits/link.h: Renamed to...
1350         * sysdeps/ia64/bits/linkmap.h: ...this.
1351         * sysdeps/s390/bits/link.h: Renamed to...
1352         * sysdeps/s390/bits/linkmap.h: ...this.
1353         * sysdeps/sh/bits/link.h: Renamed to...
1354         * sysdeps/sh/bits/linkmap.h: ...this.
1355         * sysdeps/x86_64/bits/link.h: Renamed to...
1356         * sysdeps/x86_64/bits/linkmap.h: ...this.
1357
1358         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
1359
1360 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
1361
1362         [BZ #602]
1363         * math/libm-test.inc (rint_test_tonearest): New test.
1364         (rint_test_towardzero): New test.
1365         (rint_test_downward): New test.
1366         (rint_test_upward): New test.
1367         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
1368         Remove redundant const values.
1369         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
1370         Remove redundant const values.  Use float const.
1371         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
1372         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
1373         Use float const.
1374         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
1375         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
1376         Use float const.
1377         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
1378         Remove redundant const values.
1379         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
1380         Remove redundant const values.  Use float const.
1381         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
1382         Remove redundant const values.
1383         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
1384         Remove redundant const values.  Use float const.
1385         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
1386         alignment.  Fix -0.0 case.  Remove redundant const values.
1387         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
1388         alignment.  Fix -0.0 case.  Remove redundant const values.
1389         Use float const.
1390         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
1391         alignment.  Fix -0.0 case.
1392         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
1393         alignment.  Fix -0.0 case.  Use float const.
1394         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
1395         alignment.  Fix -0.0 case.
1396         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
1397         alignment.  Fix -0.0 case.  Use float const.
1398         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
1399         alignment.  Fix -0.0 case.  Remove redundant const values.
1400         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
1401         alignment.  Fix -0.0 case.  Remove redundant const values.
1402         Use float const.
1403         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
1404         alignment.  Fix -0.0 case.
1405         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
1406         alignment.  Fix -0.0 case.  Remove redundant const values.
1407         Use float const.
1408
1409 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
1410
1411         * misc/sys/cdefs.h: Define __wur.
1412         * libio/stdio.h: Use __wur for a number of interfaces.
1413         * posix/unistd.h: Likewise.
1414         * stdlib/stdlib.h: Likewise.
1415
1416 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
1417
1418         [BZ #592]
1419         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
1420         libc_hidden_proto instead of HIDDEN_PROTO.
1421         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
1422         (__libm_error_support): If ASSEMBLER and in libc, define to
1423         HIDDEN_JUMPTARGET(__libm_error_support).
1424
1425 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
1426
1427         [BZ #592]
1428         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
1429         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
1430         with $(duplicated-routines).
1431         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
1432         "m_" prefix.
1433
1434 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
1435
1436         [BZ #592]
1437         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
1438         undefine "ret" macro.  Add __libm_error_support hidden definitions.
1439
1440         [BZ #592]
1441         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
1442         missing portion of copyright statement.
1443         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1444         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1445
1446         [BZ #592]
1447         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
1448         missing portion of copyright statement.
1449         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
1450         (__ieee754_gamma): Likewise.
1451         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1452         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1453
1454 2004-12-09  H. J. Lu <hjl@lucon.org>
1455
1456         [BZ #592]
1457         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
1458         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
1459         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
1460         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
1461         * sysdeps/ia64/fpu/e_expl.S: Likewise.
1462         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
1463
1464 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
1465
1466         [BZ #592]
1467         * sysdeps/ia64/fpu/README: New file.
1468         * sysdeps/ia64/fpu/gen_import_file_list: New file.
1469         * sysdeps/ia64/fpu/import_check: Likewise.
1470         * sysdeps/ia64/fpu/import_diffs: Likewise.
1471         * sysdeps/ia64/fpu/import_file.awk: Likewise.
1472         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
1473         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
1474
1475         [BZ #592]
1476         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
1477         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1478         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1479         * sysdeps/ia64/fpu/e_asin.S: Likewise.
1480         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1481         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1482         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1483         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1484         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1485         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1486         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1487         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1488         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1489         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1490         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1491         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1492         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1493         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1494         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1495         * sysdeps/ia64/fpu/e_log.S: Likewise.
1496         * sysdeps/ia64/fpu/e_log2.S: Likewise.
1497         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
1498         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
1499         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1500         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1501         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1502         * sysdeps/ia64/fpu/e_powl.S: Likewise.
1503         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1504         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1505         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1506         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1507         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1508         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1509         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1510         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1511         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1512         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1513         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1514         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1515         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1516         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
1517         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1518         * sysdeps/ia64/fpu/s_atan.S: Likewise.
1519         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
1520         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
1521         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
1522         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
1523         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
1524         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
1525         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
1526         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
1527         * sysdeps/ia64/fpu/s_cos.S: Likewise.
1528         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
1529         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1530         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
1531         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
1532         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
1533         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
1534         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
1535         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
1536         * sysdeps/ia64/fpu/s_floor.S: Likewise.
1537         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
1538         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
1539         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
1540         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
1541         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1542         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1543         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1544         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1545         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1546         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1547         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1548         * sysdeps/ia64/fpu/s_logb.S: Likewise.
1549         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1550         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1551         * sysdeps/ia64/fpu/s_modf.S: Likewise.
1552         * sysdeps/ia64/fpu/s_modff.S: Likewise.
1553         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1554         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1555         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1556         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1557         * sysdeps/ia64/fpu/s_rint.S: Likewise.
1558         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1559         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1560         * sysdeps/ia64/fpu/s_round.S: Likewise.
1561         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1562         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1563         * sysdeps/ia64/fpu/s_significand.S: Likewise.
1564         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1565         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1566         * sysdeps/ia64/fpu/s_tan.S: Likewise.
1567         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1568         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1569         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1570         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1571         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1572
1573         [BZ #592]
1574         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
1575         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
1576         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
1577         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
1578         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
1579         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
1580         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
1581         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
1582         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
1583         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1584         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
1585         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
1586         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
1587         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
1588         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
1589         * sysdeps/ia64/fpu/e_logl.S: Likewise.
1590         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
1591         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
1592         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
1593         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
1594         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
1595         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
1596         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
1597         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
1598         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
1599         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
1600         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
1601         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
1602         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
1603         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1604         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
1605         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1606         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
1607         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
1608         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
1609         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
1610         * sysdeps/ia64/fpu/s_erf.S: Likewise.
1611         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
1612         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
1613         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
1614         * sysdeps/ia64/fpu/s_erff.S: Likewise.
1615         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
1616         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
1617         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
1618         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
1619         * sysdeps/ia64/fpu/s_fma.S: Likewise.
1620         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
1621         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
1622         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
1623         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
1624         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
1625         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
1626         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
1627         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
1628         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
1629         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
1630         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
1631         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
1632         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
1633         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
1634         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
1635         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
1636         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
1637         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
1638         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1639         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1640         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1641         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
1642         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
1643         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
1644
1645         [BZ #592]
1646         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
1647         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
1648         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
1649         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
1650         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
1651         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
1652         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
1653         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
1654         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
1655         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
1656         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
1657         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
1658         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
1659         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
1660         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
1661         * sysdeps/ia64/fpu/w_expl.c: Likewise.
1662         * sysdeps/ia64/fpu/e_expl.S: Likewise.
1663         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
1664         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
1665         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
1666         * sysdeps/ia64/fpu/w_log2.c: Likewise.
1667         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
1668         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
1669         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
1670         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
1671         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
1672
1673         [BZ #592]
1674         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
1675         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1676         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1677         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1678         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1679         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1680         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1681
1682         [BZ #592]
1683         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
1684         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
1685         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
1686
1687         [BZ #592]
1688         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
1689
1690         [BZ #592]
1691         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
1692         alias for use by libm_error.c
1693
1694         [BZ #592]
1695         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
1696         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
1697         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
1698         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
1699         libm_scalbn{,f,l}, libm_scalblnf.
1700         (sysdep_routines): Remove libm_frexp4{,f,l}.
1701         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
1702         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
1703         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
1704         -DSIZE_LONG_LONG_INT_64.
1705
1706 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
1707
1708         [BZ #729]
1709         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
1710         l_text_end are set for a VDSO with a single PT_LOAD entry.
1711
1712 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
1713
1714         [BZ #730]
1715         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
1716         invalid to disable optimizations in fileops which won't work here.
1717         (_IO_cookie_jumps): Use it.
1718         (_IO_old_cookie_jumps): Likewise.
1719         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
1720         not the return value.
1721         * stdio-common/Makefile (tests): Add tst-fmemopen2.
1722         * stdio-common/tst-fmemopen2.c: New file.
1723
1724         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
1725
1726 2005-01-05  Roland McGrath  <roland@redhat.com>
1727
1728         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
1729         * sysdeps/i386/configure.in: ... here.  New file.
1730
1731 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
1732
1733         [BZ #727]
1734         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
1735         initialize __environ again.
1736         * stdlib/Makefile: Add rules to build and run tst-putenv.
1737         * stdlib/tst-putenv.c: New file.
1738         * stdlib/tst-putenvmod.c: New file.
1739
1740         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
1741         define unnecessary wrappers or aliases of static functions.
1742
1743 2005-01-03  Andreas Jaeger  <aj@suse.de>
1744
1745         * csu/Makefile (generated): Add start.os and start.ob.
1746
1747         * elf/Makefile (tests): Change rule for tst-pie1 so that make
1748         clean works.
1749
1750 2004-12-29  Roland McGrath  <roland@redhat.com>
1751
1752         [BZ #626]
1753         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
1754         than always up; when nearest is zero, round up to one.
1755
1756 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
1757
1758         * po/es.po: Update from translation team.
1759
1760         [BZ #726]
1761         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
1762
1763 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
1764
1765         [BZ #744]
1766         * include/signal.h: Define __sigemptyset.
1767
1768 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
1769
1770         * posix/regex_internal.h (struct re_dfastate_t): Make
1771         word_trtable a pointer to the 512-item transition table.
1772         * posix/regexec.c (build_trtable): Fill in either state->trtable
1773         or state->word_trtable.  Return a boolean indicating success.
1774         (transit_state): Expect state->trtable to be a 256-item
1775         transition table.  Reorganize code to have less tests in
1776         the common case, and to save an indentation level.
1777         * posix/regex_internal.c (free_state): Free word_trtable.
1778
1779 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
1780
1781         [BZ #723]
1782         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
1783         calling fn is 16 byte aligned.
1784         * sysdeps/i386/tst-stack-align.h: New file.
1785
1786         [BZ #725]
1787         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1788         (ecvt_r): Special case denormals.
1789         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1790         * misc/tst-efgcvt.c: Include float.h.
1791         (ecvt_tests): Add 2 new tests.
1792
1793 2004-12-20  Roland McGrath  <roland@frob.com>
1794
1795         * version.h (RELEASE, VERSION): development, 2.3.90
1796         * include/features.h (__GLIBC_MINOR__): Now 4.
1797
1798
1799 See ChangeLog.15 for earlier changes.