forked from h4ck3rm1k3/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
20819 lines (17010 loc) · 754 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2012-10-26 H.J. Lu <[email protected]>
* iconvdata/tst-table.sh: Remove ${SHELL}.
* iconvdata/tst-tables.sh: Likewise.
2012-10-25 David S. Miller <[email protected]>
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
(__get_clockfreq_via_proc_openprom): Use strtoumax instead
of strtoull.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
ifunc-impl-list.c
* sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
file.
2012-10-25 Roland McGrath <[email protected]>
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
(__get_clockfreq_via_proc_openprom): Use __getdents instead of
__getdirentries.
2012-10-25 Joseph Myers <[email protected]>
Jim Blandy <[email protected]>
* scripts/cross-test-ssh.sh: New file.
* manual/install.texi (Configuring and compiling): Document use of
cross-test-ssh.sh.
* INSTALL: Regenerated.
2012-10-25 Pino Toscano <[email protected]>
* sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
EOPNOTSUPP.
2012-10-25 Joseph Myers <[email protected]>
* Makeconfig (run-program-prefix): Fix comment.
2012-10-24 Joseph Myers <[email protected]>
Jim Blandy <[email protected]>
* Makeconfig (test-wrapper): New variable,
(test-wrapper-env): Likewise.
[$(cross-compiling) = yes && $(test-wrapper) != ""]
(run-built-tests): Define to yes.
(run-program-prefix): Use $(test-wrapper).
(built-program-cmd): Likewise.
* Rules (make-test-out): Use $(test-wrapper-env) and
$(host-built-program-cmd).
* elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
tst-pathopt.sh.
($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
$(test-wrapper-env) to tst-rtld-load-self.sh.
($(objpfx)order2.out): Use $(test-wrapper).
($(objpfx)tst-initorder.out): Likewise.
($(objpfx)tst-initorder2.out): Likewise.
($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
* elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
(test_wrapper_env): New variable. Use it to run ld.so.
* elf/tst-rtld-load-self.sh (test_wrapper): New variable.
Use it to run ld.so.
(test_wrapper_env): Likewise.
* iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
$(test-wrapper) to run-iconv-test.sh.
* iconvdata/run-iconv-test.sh (test_wrapper): New variable.
(ICONV): Use $test_wrapper.
* posix/Makefile ($(objpfx)globtest.out): Pass
$(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
globtest.sh, not $(run-program-prefix).
* posix/globtest.sh (run_via_rtld_prefix): New variable.
(test_wrapper): Likewise.
(test_wrapper_env): Likewise. Use it to run globtest with HOME
set together with run_via_rtld_prefix.
(run_program_prefix): Define in terms of test_wrapper and
run_via_rtld_prefix.
2012-10-24 Roland McGrath <[email protected]>
* nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
* posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
Targets removed.
[BZ #14743]
* include/time.h: Remove librt_hidden_proto (clock_gettime).
Declare __clock_getres, __clock_gettime, __clock_settime,
__clock_nanosleep, and __clock_getcpuclockid.
* rt/clock_gettime.c: Define __clock_gettime as an alias.
Remove librt_hidden_def (clock_gettime).
* sysdeps/unix/clock_gettime.c: Likewise.
* rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
* sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
* rt/clock_getres.c: Define __clock_getres as an alias.
* sysdeps/posix/clock_getres.c: Likewise.
* rt/clock_settime.c: Define __clock_settime as an alias.
* sysdeps/unix/clock_settime.c: Likewise.
* rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
* sysdeps/unix/clock_nanosleep.c: Likewise.
* sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
* rt/clock-compat.c: New file.
* rt/Makefile (librt-routines): Add clock-compat and move
$(clock-routines) to ...
(routines): ... here, new variable.
* sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
Don't add get_clockfreq here.
* rt/Versions (libc: GLIBC_2.17): New version set.
Add clock_* symbols here.
(libc: GLIBC_PRIVATE): New version set. Add __clock_* symbols here.
* sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
(GLIBC_2.17): Add clock_* symbols.
* sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
* sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
Likewise.
* sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
* NEWS: Mention the move.
* sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
Use __open, __read, __close rather than their public counterparts.
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
(__get_clockfreq_via_cpuinfo): Likewise.
(__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
(__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
* config.h.in (HAVE_IFUNC): New #undef.
* configure.in: Define it if libc_cv_ld_gnu_indirect_function
was successful.
* configure: Regenerated.
2012-10-24 Mike Frysinger <[email protected]>
* configure.in: Move READELF check to start of file.
(libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
libc_cv_asm_gnu_indirect_function in the process.
* configure: Regenerated.
2012-10-24 Mike Frysinger <[email protected]>
* configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
send the output to /dev/null.
(libc_cv_cc_with_libunwind): Likewise.
(libc_cv_as_noexecstack): Likewise.
* configure: Regenerate.
2012-10-24 Joseph Myers <[email protected]>
* io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
* posix/globtest.sh (TMPDIR): Do not set.
(testdir): Define using ${common_objpfx}posix not $TMPDIR.
(testout): Likewise.
2012-10-24 Andreas Jaeger <[email protected]>
* io/fcntl.h: Always define mode_t, off_t, pid_t and use these
types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
[__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
[__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
posix_fadvise64, posix_fallocate64.
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
(F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
(F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
Likewise.
(F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
Likewise.
(F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
(F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
<bits/fcntl-linux.h>.
(F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
(F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
(F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
(F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
[__WORDSIZE != 64]: Likewise.
2012-10-23 Joseph Myers <[email protected]>
* Makeconfig (run-built-tests): New variable.
* Rules [$(cross-compiling) = yes]: Change condition to
[$(run-built-tests) = no].
* catgets/Makefile [$(cross-compiling) != yes]: Change condition
to [$(run-built-tests) = yes].
* elf/Makefile [$(cross-compiling) = no]: Likewise
* grp/Makefile [$(cross-compiling) = no]: Likewise.
* iconv/Makefile [$(cross-compiling) != yes]: Likewise.
* iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
* intl/Makefile [$(cross-compiling) = no]: Likewise.
* io/Makefile [$(cross-compiling) = no]: Likewise.
* libio/Makefile [$(cross-compiling) = no]: Likewise.
* malloc/Makefile [$(cross-compiling) = no]: Likewise.
* misc/Makefile [$(cross-compiling) = no]: Likewise.
* posix/Makefile [$(cross-compiling) = no]: Likewise.
* resolv/Makefile [$(cross-compiling) = no]: Likewise.
* stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
* stdlib/Makefile [$(cross-compiling) = no]: Likewise.
* string/Makefile [$(cross-compiling) = no]: Likewise.
* posix/Makefile ($(objpfx)globtest.out): Pass
$(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
$(rtld-installed-name).
* posix/globtest.sh (elf_objpfx): Remove variable.
(rtld_installed_name): Likewise.
(library_path): Likewise.
(run_program_prefix): New variable. Use for running globtest
binary.
2012-10-23 Jim Blandy <[email protected]>
Joseph Myers <[email protected]>
* Makeconfig (host-built-program-cmd): New variable.
* elf/Makefile (tst-stackguard1-ARGS): Use
$(host-built-program-cmd).
* posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
(tst-spawn-ARGS): Likewise.
* rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
2012-10-23 Joseph Myers <[email protected]>
Jim Blandy <[email protected]>
* Makeconfig (run-via-rtld-prefix): New variable.
(run-program-prefix): Define in terms of $(run-via-rtld-prefix).
(built-program-cmd): Likewise.
2012-10-22 Andreas Jaeger <[email protected]>
* sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
__O_RSYNC if it exists, otherwise to O_SYNC.
2012-10-22 Jim Blandy <[email protected]>
Joseph Myers <[email protected]>
* iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
/dev/null.
* iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
from /dev/null
* posix/tst-getconf.sh: Redirect getconf stdin in loop from
/dev/null.
2012-10-22 Andreas Jaeger <[email protected]>
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
Define always.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
bits/fcntl-linux.h.
* sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
(F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
to __O_LARGEFILE.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
to __O_LARGEFILE.
2012-10-21 Jim Blandy <[email protected]>
Joseph Myers <[email protected]>
* config.make.in (NM): New variable.
2012-10-21 Andreas Jaeger <[email protected]>
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2012-10-20 H.J. Lu <[email protected]>
[BZ #14683]
* elf/Makefile (tests-static): Add tst-leaks1-static.
(tests): Also depend on $(objpfx)tst-leaks1-static-mem.
($(objpfx)tst-leaks1-static): New rule.
($(objpfx)tst-leaks1-static-mem): Likewise.
(tst-leaks1-static-ENV): New macro.
* elf/dl-open.c (dl_open_worker): Check the main application
only if SHARED is defined.
* elf/tst-leaks1-static.c: New file.
2012-10-20 Andreas Jaeger <[email protected]>
* sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
generic values for Linux.
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
and declarations that are provided by <bits/fcntl-linux.h> and
include <bits/fcntl-linux.h>.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2012-10-20 Roland McGrath <[email protected]>
* io/fcntl.h: Move include of <bits/types.h> to the top and
include it unconditionally.
2012-10-20 H.J. Lu <[email protected]>
* wcsmbs/Makefile (tests-ifunc): New variable.
(tests): Add $(tests-ifunc).
* wcsmbs/test-wcschr-ifunc.c: New file.
* wcsmbs/test-wcscmp-ifunc.c: Likewise.
* wcsmbs/test-wcscpy-ifunc.c: Likewise.
* wcsmbs/test-wcslen-ifunc.c: Likewise.
* wcsmbs/test-wcsrchr-ifunc.c: Likewise.
* wcsmbs/test-wmemcmp-ifunc.c: Likewise.
* string/Makefile (tests-ifunc): New variable.
(tests): Add $(tests-ifunc).
* string/test-memccpy.c (TEST_NAME): New macro.
* string/test-memchr.c (TEST_NAME): Likewise.
* string/test-memcmp.c (TEST_NAME): Likewise.
* string/test-memcpy.c (TEST_NAME): Likewise.
* string/test-memmem.c (TEST_NAME): Likewise.
* string/test-memmove.c (TEST_NAME): Likewise.
* string/test-memset.c (TEST_NAME): Likewise.
* string/test-rawmemchr.c (TEST_NAME): Likewise.
* string/test-stpcpy.c (TEST_NAME): Likewise.
* string/test-stpncpy.c (TEST_NAME): Likewise.
* string/test-strcasecmp.c (TEST_NAME): Likewise.
* string/test-strcasestr.c (TEST_NAME): Likewise.
* string/test-strcat.c (TEST_NAME): Likewise.
* string/test-strchr.c (TEST_NAME): Likewise.
* string/test-strcmp.c(TEST_NAME): Likewise.
* string/test-strcpy.c (TEST_NAME): Likewise.
* string/test-strcspn.c (TEST_NAME): Likewise.
* string/test-strlen.c (TEST_NAME): Likewise.
* string/test-strncasecmp.c (TEST_NAME): Likewise.
* string/test-strncmp.c (TEST_NAME): Likewise.
* string/test-strncpy.c (TEST_NAME): Likewise.
* string/test-strnlen.c (TEST_NAME): Likewise.
* string/test-strpbrk.c (TEST_NAME): Likewise.
* string/test-strrchr.c (TEST_NAME): Likewise.
* string/test-strspn.c (TEST_NAME): Likewise.
* string/test-strstr.c (TEST_NAME): Likewise.
* string/test-bcopy-ifunc.c: New file.
* string/test-bzero-ifunc.c: Likewise.
* string/test-memccpy-ifunc.c: Likewise.
* string/test-memchr-ifunc.c: Likewise.
* string/test-memcmp-ifunc.c: Likewise.
* string/test-memcpy-ifunc.c: Likewise.
* string/test-memmem-ifunc.c: Likewise.
* string/test-memmove-ifunc.c: Likewise.
* string/test-mempcpy-ifunc.c: Likewise.
* string/test-memset-ifunc.c: Likewise.
* string/test-rawmemchr-ifunc.c: Likewise.
* string/test-stpcpy-ifunc.c: Likewise.
* string/test-stpncpy-ifunc.c: Likewise.
* string/test-strcasecmp-ifunc.c: Likewise.
* string/test-strcasestr-ifunc.c: Likewise.
* string/test-strcat-ifunc.c: Likewise.
* string/test-strchr-ifunc.c: Likewise.
* string/test-strchrnul-ifunc.c: Likewise.
* string/test-strcmp-ifunc.c: Likewise.
* string/test-strcpy-ifunc.c: Likewise.
* string/test-strcspn-ifunc.c: Likewise.
* string/test-strlen-ifunc.c: Likewise.
* string/test-strncasecmp-ifunc.c: Likewise.
* string/test-strncat-ifunc.c: Likewise.
* string/test-strncmp-ifunc.c: Likewise.
* string/test-strncpy-ifunc.c: Likewise.
* string/test-strnlen-ifunc.c: Likewise.
* string/test-strpbrk-ifunc.c: Likewise.
* string/test-strrchr-ifunc.c: Likewise.
* string/test-strspn-ifunc.c: Likewise.
* string/test-strstr-ifunc.c: Likewise.
* debug/Makefile (tests-ifunc): New variable.
(tests): Add $(tests-ifunc).
* debug/test-stpcpy_chk.c (TEST_NAME): New macro.
* debug/test-strcpy_chk.c (TEST_NAME): Likewise.
* debug/test-stpcpy_chk-ifunc.c: New file.
* debug/test-strcpy_chk-ifunc.c: Likewise.
2012-10-20 Siddhesh Poyarekar <[email protected]>
[BZ #13601]
* elf/dl-load.c (open_verify): Retry read if the entire ELF
header is not read in.
2012-10-19 Joseph Myers <[email protected]>
* io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh. Pass
script to $(SHELL) as $<. Pass $(common-objpfx) to script
directly. Pass built executable to script as
$(built-program-cmd).
* io/ftwtest-sh (ldso): Remove variable. Run ftwtest directly as
$testprogram without using LD_LIBRARY_PATH and $ldso.
* grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
$(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
$(rtld-installed-name).
* grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
(rtld_installed_name): Likewise.
(library_path): Likewise.
(run_program_prefix): New variable. Use it to run tst_fgetgrent.
* iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
$(run-program-prefix) to tst-tables.sh.
* iconvdata/tst-table.sh (run_program_prefix): New variable. Use
it to run tst-table-from and tst-table-to.
* iconvdata/tst-tables.sh (run_program_prefix): New variable.
Pass it to tst-table.sh.
* intl/Makefile ($(objpfx)tst-gettext.out): Pass
$(run-program-prefix) to tst-gettext.sh.
($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
tst-translit.sh.
($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
tst-gettext2.sh.
* intl/tst-gettext.sh (run_program_prefix): New variable. Use it
to run tst-gettext.
* intl/tst-gettext2.sh (run_program_prefix): New variable. Use it
to run tst-gettext2.
* intl/tst-translit.sh (run_program_prefix): New variable. Use it
to run tst-translit.
* malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
$(run-program-prefix) to tst-mtrace.sh.
* malloc/tst-mtrace.sh (run_program_prefix): New variable. Use it
to run tst-mtrace.
* posix/Makefile ($(objpfx)wordexp-tst.out): Pass
$(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
$(rtld-installed-name).
* posix/wordexp-tst.sh (elf_objpfx): Remove variable.
(rtld_installed_name): Likewise.
(run_program_prefix): New variable. Use it to run wordexp-test.
* Makeconfig (ARCH): Remove all definitions.
(machine): Likewise.
[ARCH]: Remove conditional code.
[!objdir]: Give error.
[!objdir] (objpfx): Remove.
[!objdir] (common-objpfx): Likewise.
[!objdir] (common-objdir): Likewise.
* configure.in (config_makefile): Remove. Hardcode Makefile in
AC_CONFIG_FILES call.
* configure: Regenerated.
[BZ #13888]
* io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
or TMPDIR.
(testout): Likewise.
* posix/Makefile ($(objpfx)tst-getconf.out): Pass
$(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
$(rtld-installed-name).
* posix/tst-getconf.sh (elf_objpfx): Remove variable.
(rtld_installed_name): Likwise.
(runit): Remove function.
(run_getconf): New variable, Use it for running getconf binary.
2012-10-18 H.J. Lu <[email protected]>
[BZ #14716]
* string/test-memmem.c (check_result): New function.
(do_one_test): Use it.
(check1): New function.
(test_main): Use it.
2012-10-18 Markus Trippelsdorf <[email protected]>
* math/Makefile: Comment on slow compilation of test-tgmath2.c.
2012-10-18 Joseph Myers <[email protected]>
* sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
(_G_LSEEK64): Likewise.
(_G_MMAP64): Likewise.
(_G_FSTAT64): Likewise.
* sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
(_G_LSEEK64): Likewise.
(_G_MMAP64): Likewise.
(_G_FSTAT64): Likewise.
* libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
unconditional. Call __mmap64 directly.
(mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
(mmap_remap_check) [_G_LSEEK64]: Make code unconditional. Call
__lseek64 directly.
(mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
(decide_maybe_mmap) [_G_MMAP64]: Make code unconditional. Call
__mmap64 directly.
(decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
(decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional. Call
__lseek64 directly.
(decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
(_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional. Call
__lseek64 directly.
(_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
(_IO_file_seek) [_G_LSEEK64]: Make code unconditional. Call
__lseek64 directly.
(_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
(_IO_file_stat) [_G_FSTAT64]: Make code unconditional. Call
__fxstat64 directly.
(_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
* libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
unconditional.
(freopen64) [!_G_OPEN64]: Remove conditional code.
* libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
unconditional.
(fseeko64) [!_G_LSEEK64]: Remove conditional code.
* libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
unconditional.
(ftello64) [!_G_LSEEK64]: Remove conditional code.
* libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
unconditional.
(_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
* libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
unconditional.
(_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
* libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
unconditional.
(_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
* libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
unconditional.
(_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
* libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
unconditional.
(_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2012-10-18 Siddhesh Poyarekar <[email protected]>
[BZ #12140]
* manual/memory.texi (Malloc Tunable Parameters): Add note
about free list pointers overwriting some perturb bytes.
Wording suggested by Roland McGrath.
2012-10-17 Joseph Myers <[email protected]>
* math/libm-test.inc (gamma_test): Do not call feclearexcept.
(lgamma_test): Likewise.
(tgamma_test): Likewise.
2012-10-16 Florian Weimer <[email protected]>
[BZ #14700]
* sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
(__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2012-10-16 Maxim Kuvyrkov <[email protected]>
* NEWS: Mention BZ #14716.
* string/str-two-way.h (two_way_short_needle): Fix thinko introduced
when removing AVAILABLE1_USES_J macro.
2012-10-12 H.J. Lu <[email protected]>
* sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
(__bswap_64): __uint64_t for unsigned 64-bit int.
2012-10-12 Andreas Schwab <[email protected]>
* include/string.h (memmem): Declare libc hidden alias.
* string/memmem.c (memmem): Define libc hidden alias.
* sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
__read, __close instead of open, read, close.
2012-10-11 H.J. Lu <[email protected]>
* sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
* sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
global and hidden.
* sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
* sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
* sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
Likewise.
(__rawmemchr_sse2): Likewise.
* sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
* sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
(__strchr_sse2): Likewise.
* sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
* sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
(__strcasecmp_sse2): Likewise.
(__strncasecmp_sse2): Likewise.
* sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
* sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
* sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
* sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
(__strrchr_sse2): Likewise.
* sysdeps/x86_64/multiarch/memcmp.S: Add comments for
ifunc-impl-list.c.
* sysdeps/x86_64/multiarch/memcpy.S: Likewise.
* sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
* sysdeps/x86_64/multiarch/memmove.c: Likewise.
* sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
* sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
* sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
* sysdeps/x86_64/multiarch/memset.S: Likewise.
* sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
* sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
* sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
* sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
* sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
* sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
* sysdeps/x86_64/multiarch/strcat.S: Likewise.
* sysdeps/x86_64/multiarch/strchr.S: Likewise.
* sysdeps/x86_64/multiarch/strcmp.S: Likewise.
* sysdeps/x86_64/multiarch/strcpy.S: Likewise.
* sysdeps/x86_64/multiarch/strcspn.S: Likewise.
* sysdeps/x86_64/multiarch/strlen.S: Likewise.
* sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
* sysdeps/x86_64/multiarch/strncat.S: Likewise.
* sysdeps/x86_64/multiarch/strncmp.S: Likewise.
* sysdeps/x86_64/multiarch/strncpy.S: Likewise.
* sysdeps/x86_64/multiarch/strnlen.S: Likewise.
* sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
* sysdeps/x86_64/multiarch/strrchr.S: Likewise.
* sysdeps/x86_64/multiarch/strspn.S: Likewise.
* sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
* sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
* sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
* sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
global and hidden.
* sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
* sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
* sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
* sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
Likewise.
* sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
Likewise.
* sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
* sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
* sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
* sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
ifunc-impl-list.c.
* sysdeps/i386/i686/multiarch/bzero.S: Likewise.
* sysdeps/i386/i686/multiarch/memchr.S: Likewise.
* sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
* sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
* sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
* sysdeps/i386/i686/multiarch/memmove.S: Likewise.
* sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
* sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
* sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
* sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
* sysdeps/i386/i686/multiarch/memset.S: Likewise.
* sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
* sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
* sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
* sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
* sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
* sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
* sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
* sysdeps/i386/i686/multiarch/strcat.S: Likewise.
* sysdeps/i386/i686/multiarch/strchr.S: Likewise.
* sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
* sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
* sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
* sysdeps/i386/i686/multiarch/strlen.S: Likewise.
* sysdeps/i386/i686/multiarch/strncase.S: Likewise.
* sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
* sysdeps/i386/i686/multiarch/strncat.S: Likewise.
* sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
* sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
* sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
* sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
* sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
* sysdeps/i386/i686/multiarch/strspn.S: Likewise.
* sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
* sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
* sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
* sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
* sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
* sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
* sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
* sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
* Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
[$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
* include/ifunc-impl-list.h: New file.
* misc/ifunc-impl-list.c: Likewise.
* misc/Makefile (routines): Add ifunc-impl-list.
* misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
* string/test-string.h: Include <ifunc-impl-list.h>.
[TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
impl_array): New variables.
(FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
are defined.
(test_init): Call __libc_ifunc_impl_list to initialize
func_list if TEST_IFUNC and TEST_NAME are defined.
* string/Makefile (strop-tests): Add bcopy and bzero.
* string/test-bcopy.c: New file.
* string/test-bzero.c: Likewise.
* string/test-memmove.c: Support bcopy test if TEST_BCOPY is
defined.
* string/test-memset.c: Support bzero test if TEST_BZERO is
defined.
* sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
__libc_memmove.
* sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
__libc_memset.
* sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
of memset.
2012-10-10 Joseph Myers <[email protected]>
* configure.in: Run $CXX, not cc1plus, to locate C++ headers.
* configure: Regenerated.
* Makeconfig (+link-static-before-libc): Don't include
$(link-static-libc).
* libio/libio.h (_IO_pos_t): Remove.
2012-10-10 Alexandre Oliva <[email protected]>
* NEWS: Add note about FIPS mode. Wording suggested by Roland
McGrath.
2012-10-10 Alexandre Oliva <[email protected]>
* crypt/crypt-entry.c: Include fips-private.h.
(__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
* crypt/md5c-test.c (main): Tolerate disabled MD5.
* sysdeps/unix/sysv/linux/fips-private.h: New file.
* sysdeps/generic/fips-private.h: New file, dummy fallback.
2012-10-10 Alexandre Oliva <[email protected]>
* crypt/crypt-private.h: Include stdbool.h.
(_ufc_setup_salt_r): Return bool.
* crypt/crypt-entry.c: Include errno.h.
(__crypt_r): Return NULL with EINVAL for bad salt.
* crypt/crypt_util.c (bad_for_salt): New.
(_ufc_setup_salt_r): Check that salt is long enough and within
the specified alphabet.
* crypt/badsalttest.c: New file.
* crypt/Makefile (tests): Add it.
($(objpfx)badsalttest): New.
2012-10-09 Maxim Kuvyrkov <[email protected]>
* NEWS: Add entry for BZ #14602.
2012-10-09 Joseph Myers <[email protected]>
* math/gen-libm-test.pl (parse_args): Handle comparison macros as
type-generic.
* math/libm-test.inc: Update comment listing what functions and
macros are tested.
(isgreater_test): New function.
(isgreaterequal_test): Likewise.
(isless_test): Likewise.
(islessequal_test): Likewise.
(islessgreater_test): Likewise.
(isunordered_test): Likewise.
(main): Call the new functions.
2012-10-09 Roland McGrath <[email protected]>
* aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
_AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
* sysdeps/i386/configure: Regenerated.
* sysdeps/ieee754/ldbl-opt/configure: Regenerated.
* sysdeps/mach/configure: Regenerated.
* sysdeps/mach/hurd/configure: Regenerated.
* sysdeps/powerpc/configure: Regenerated.
* sysdeps/powerpc/powerpc32/configure: Regenerated.
* sysdeps/powerpc/powerpc64/configure: Regenerated.
* sysdeps/s390/s390-32/configure: Regenerated.
* sysdeps/s390/s390-64/configure: Regenerated.
* sysdeps/sh/configure: Regenerated.
* sysdeps/sparc/configure: Regenerated.
* sysdeps/unix/sysv/linux/configure: Regenerated.
* sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
* sysdeps/x86_64/configure: Regenerated.
* dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
defined. Don't check if MAP is NULL.
2012-10-09 Joseph Myers <[email protected]>
* sysdeps/generic/_G_config.h (_G_off64_t): Remove.
(_G_stat64): Likewise.
* sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
(_G_stat64): Likewise.
* libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
instead of struct _G_stat64.
* libio/fileops.c (mmap_remap_check): Likewise.
(decide_maybe_mmap): Likewise.
(_IO_new_file_seekoff): Likewise.
(_IO_file_stat): Likewise.
* libio/libio.h (_IO_off64_t): Define to __off64_t, not
_G_off64_t.
* libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
instead of struct _G_stat64.
* libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2012-10-08 Maxim Kuvyrkov <[email protected]>
[BZ #14602]
* string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
Replace with ...
(CHECK_EOL): New macro.
(two_way_short_needle): Check beginning of haystack for EOL. Use
CHECK_EOL.
* string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
Replace with CHECK_EOL.
* string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
Replace with CHECK_EOL.
2012-10-08 Joseph Myers <[email protected]>
* math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
type-generic.
* math/libm-test.inc: Update comment listing what functions and
macros are tested.
(finite_test): New function.
(isinf_test): Likewise.
(isnan_test): Likewise.
(fpclassify_test): Test subnormal input.
(isfinite_test): Likewise.
(isnormal_test): Likewise.
(main): Call the new functions.
2012-10-08 Jonathan Nieder <[email protected]>
[BZ #14660]
* Makerules (%.dynsym): Force C locale when running
$(OBJDUMP) --dynamic-syms.
2012-10-08 Andreas Schwab <[email protected]>
* sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
<stdint.h>.
2012-10-06 David S. Miller <[email protected]>
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
upper 32-bits of the length value in %o2 since we use branch-on-register
tests which consider the entire 64-bit register.
2012-10-06 H.J. Lu <[email protected]>
* string/test-strstr.c (check2): Add a test for page boundary.
2012-10-05 David S. Miller <[email protected]>
* sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
file.
* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
sysdep_routines.
* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
and bzero when HWCAP_SPARC_CRYPTO is present.
2012-10-05 H.J. Lu <[email protected]>
[BZ #14602]
* string/test-strstr.c (check2): New function.
(test_main): Call check2.
* string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
and bug-strchr1.
* string/bug-strcasestr1.c (do_test): Moved to ...
* string/test-strcasestr.c (check1): Here. New function.
(do_one_test): Break out result checking code into ...
(check_result): This. New function.
(do_one_test): Call check_result.
(test_main): Call check1.
* string/bug-strchr1.c (do_test): Moved to ...
* string/test-strchr.c (check1): Here. New function.
(do_one_test): Break out result checking code into ...
(check_result): This. New function.
(do_one_test): Call check_result.
(test_main): Call check1.
* string/bug-strstr1.c (main): Moved to ...
* string/test-strchr.c (check1): Here. New function.
(do_one_test): Break out result checking code into ...
(check_result): This. New function.
(do_one_test): Call check_result.
(test_main): Call check1.
* string/bug-strcasestr1.c: Removed.
* string/bug-strchr1.c: Likewise.
* string/bug-strstr1.c: Likewise.
* elf/Makefile (dl-routines): Add hwcaps.
* elf/dl-support.c (_dl_important_hwcaps): Removed.
* elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
(_dl_important_hwcaps): Moved to ...
* elf/dl-hwcaps.c: Here. New file.
* sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
[BZ #14557]
* elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
if IS_IN_rtld isn't defined.
* elf/dl-support.c (_dl_sysinfo_map): New.
Include "get-dynamic-info.h" and "setup-vdso.h".
(_dl_non_dynamic_init): Call setup_vdso.
* elf/dynamic-link.h: Don't include <assert.h>.
(elf_get_dynamic_info): Moved to ...
* elf/get-dynamic-info.h: Here. New file.
* elf/dynamic-link.h: Include "get-dynamic-info.h".
* elf/rtld.c (dl_main): Break out vDSO setup code into ...
* elf/setup-vdso.h: Here. New file.
* elf/rtld.c: Include "setup-vdso.h".
(dl_main): Call setup_vdso.
2012-10-05 Joseph Myers <[email protected]>
* math/libm-test.inc: List nexttoward, cimag, clog10, conf and
creal in comment listing functions tested. List finite, isinf,
isnan, isless, islessequal, isgreater, isgreaterequal,
islessgreater, isunordered, lgamma_r and pow10 as functions and
macros not tested. Mention which functions not tested are aliases
for other functions. Fix typo. Note that signs of NaNs are not
tested.
* scripts/config.guess: Update from config.git.
* scripts/config.sub: Likewise.
2012-10-04 Roland McGrath <[email protected]>
* misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
* misc/madvise.c (madvise): Renamed to __madvise.
Make madvise a weak alias.
* include/sys/mman.h: Declare __madvise.
Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
* sysdeps/unix/syscalls.list
(madvise): Make __madvise the strong name, and madvise a weak alias.
* sysdeps/unix/sysv/linux/syscalls.list
(madvise, mmap): Remove redundant entries.
* malloc/arena.c (shrink_heap): Use __madvise, not madvise.
* malloc/malloc.c (mtrim): Likewise.
* sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2012-10-03 Roland McGrath <[email protected]>
* sysdeps/mach/hurd/dl-cache.c: File removed.
* config.h.in (USE_LDCONFIG): New #undef.
* configure.in (use_ldconfig): If set, define USE_LDCONFIG.
* configure: Regenerated.
* elf/Makefile (dl-routines): Add dl-cache only under
[$(use-ldconfig) = yes].
* elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
cache on [USE_LDCONFIG].
* elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
[USE_LDCONFIG].
* elf/rtld.c (dl_main): Likewise.
2012-10-03 Pino Toscano <[email protected]>
* sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
_SC_LEVEL4_CACHE_LINESIZE.
2012-10-03 Roland McGrath <[email protected]>
* sysdeps/unix/bsd/confstr.h: File removed.
2012-10-02 Alexandre Oliva <[email protected]>
* scripts/check-local-headers.sh: Exclude sys/sdt.h and
sys/sdt-config.h.
2012-10-02 Roland McGrath <[email protected]>
* elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
Make 'mapoff' field ElfW(Off) rather than off_t.
2012-10-02 Dmitry V. Levin <[email protected]>
* nscd/Makefile: Remove nscd-cflags and all its users.
(CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
(CFLAGS-nonlib): Add compiler flags for nscd modules.
[BZ #10631]
* malloc.c (malloc_printerr): Clarify error message.
2012-10-02 H.J. Lu <[email protected]>
[BZ #14648]
* sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
Set bit_FMA_Usable if FMA is supported.
* sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
macro.
(bit_FMA4_Usable): Updated.
(index_FMA_Usable): New macro.
(CPUID_FMA): Likewise
(HAS_FMA): Defined with bit_FMA_Usable.
2012-10-01 Roland McGrath <[email protected]>
* bits/types.h (__swblk_t): Type removed.
* bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
* sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
* sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
(__SWBLK_T_TYPE): Likewise.
* sysdeps/unix/sysv/linux/x86/bits/typesizes.h