blob: 81013be7deef027de93555810352b9bd527407e0 (
plain) (
blame)
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
|
2012-03-16 H.J. Lu <hongjiu.lu@intel.com>
* bits/types.h (__syscall_slong_t): New type.
(__syscall_ulong_t): Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/ipc.h: Replace
__USYSCALL_LONG_TYPE/__USYSCALL_LONG_TYPE with
__syscall_slong_t/__syscall_ulong_t.
* sysdeps/unix/sysv/linux/x86_64/bits/mqueue.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/mqueue.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/msq.: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/timex.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/msg.h: Likewise.
* bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
(__SYSCALL_ULONG_TYPE): Likewise.
* sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
(__SYSCALL_SLONG_TYPE): Likewise.
(__SYSCALL_ULONG_TYPE): Likewise.
* sysdeps/unix/sysv/linux/s390/bits/typesizes.h
(__SYSCALL_SLONG_TYPE): Likewise.
(__SYSCALL_ULONG_TYPE): Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
(__SYSCALL_SLONG_TYPE): Likewise.
(__SYSCALL_ULONG_TYPE): Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
(__SSYSCALL_LONG_TYPE): Renamed to ...
(__SYSCALL_SLONG_TYPE): This.
(__SSYSCALL_LONG_TYPE): Renamed to ...
(__SYSCALL_ULONG_TYPE): This.
2012-03-16 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
Move e_machine check before EI_CLASS check. Check EM_IA_64 only
if SKIP_EM_IA_64 isn't defined.
* sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
SKIP_EM_IA_64 and include <sysdeps/unix/sysv/linux/i386/readelflib.c>.
2012-03-16 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
Use greg_t instead of unsigned long long int and long long int.
2012-03-16 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h
(VSYSCALL_ADDR_vgettimeofday): Removed.
(VSYSCALL_ADDR_vtime): Likewise.
(VSYSCALL_ADDR_vgetcpu): Likewise.
* sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
(VSYSCALL_ADDR_vgettimeofday): Restored.
* sysdeps/unix/sysv/linux/x86_64/init-first.c
(VSYSCALL_ADDR_vgetcpu): Likewise.
* sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S
(VSYSCALL_ADDR_vgetcpu): Likewise.
* sysdeps/unix/sysv/linux/x86_64/time.c (VSYSCALL_ADDR_vtime):
Likewise.
2012-03-16 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Include
<bits/wordsize.h>.
(sigcontext): Check __WORDSIZE instead of __LP64__.
* sysdeps/unix/sysv/linux/x86_64/sys/user.h: Include
<bits/wordsize.h>.
(user): Check __WORDSIZE instead of __LP64__.
2012-03-15 H.J. Lu <hongjiu.lu@intel.com>
* time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
2012-03-15 H.J. Lu <hongjiu.lu@intel.com>
* time/mktime.c: Sync with gnulib mktime.c at commit
a7967a2cf0998b6c157c7cf8e1d8d9d11dab30b0.
2012-03-15 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
Replace getcpu with __vdso_getcpu.
* sysdeps/unix/sysv/linux/x86_64/x32/gettimeofday.c
(gettimeofday_ifunc): Replace gettimeofday with
__vdso_gettimeofday.
* sysdeps/unix/sysv/linux/x86_64/x32/init-first.c
(_libc_vdso_platform_setup): Replace clock_gettime with
__vdso_clock_gettime.
* sysdeps/unix/sysv/linux/x86_64/x32/time.c (time_ifunc): Replace
time with __vdso_time.
2012-03-15 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sys/msg.h (msgbuf): Replace
__SNATIVE_LONG_TYPE with __SSYSCALL_LONG_TYPE.
2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New.
2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Replace
__SNATIVE_LONG_TYPE and __UNATIVE_LONG_TYPE with
__SSYSCALL_LONG_TYPE and __USYSCALL_LONG_TYPE.
* sysdeps/unix/sysv/linux/x86_64/bits/ipc.h: Updated.
* sysdeps/unix/sysv/linux/x86_64/bits/mqueue.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/timex.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Likewise.
2012-03-13 H.J. Lu <hongjiu.lu@intel.com>
* scripts/data/c++-types-x32-linux-gnu.data: Update clock_t.
* sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__CLOCK_T_TYPE):
Set to __SQUAD_TYPE for x32.
2012-03-01 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (ucontext): Restore
unsigned long int on uc_flags.
2012-02-25 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
the `q' suffix from xor/rol instructions.
(PTR_DEMANGLE): Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h (PTR_MANGLE): Removed.
(PTR_DEMANGLE): Likewise.
2012-01-09 H.J. Lu <hongjiu.lu@intel.com>
* malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
multiple of MALLOC_ALIGNMENT in size.
(_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
PR libc/12495
* malloc/malloc.c (sYSMALLOc): Don't update correction with
front_misalign.
2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
PR libc/12495
* malloc/malloc.c (MALLOC_ALIGNMENT): Use __alignof__ (long double).
(SMALLBIN_CORRECTION): New.
(MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
(largebin_index_32_big): New.
(largebin_index): Use it for 16-byte alignment.
(sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* stdio-common/_itoa.c (_itoa_base_table): Don't define if
PREFER_LONG_LONG is defined.
(_itoa): Use long long if PREFER_LONG_LONG is defined.
* stdio-common/_itowa.c (_itowa): Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/x32/dl-machine.h: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/x32/Makefile: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/x32/divdi3.c: New.
* sysdeps/x86_64/x32/ffs.c: Likewise.
* sysdeps/x86_64/x32/gmp-mparam.h: Likewise.
* sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
(stackinfo_sub_sp): Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
la_x32_gnu_pltexit.
(pltexit): Cast int_retval to ptrdiff_t.
* elf/tst-auditmod3b.c: Likewise.
* elf/tst-auditmod4b.c: Likewise.
* elf/tst-auditmod5b.c: Likewise.
* elf/tst-auditmod6b.c: Likewise.
* elf/tst-auditmod6c.c: Likewise.
* elf/tst-auditmod7b.c: Likewise.
* sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
and x32_gnu_pltexit.
* sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
__ELF_NATIVE_CLASS.
(la_x32_gnu_pltenter): New.
(la_x32_gnu_pltexit): Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX).
Replace ELF64_R_TYPE with ELF32_R_TYPE.
(elf_machine_load_address): Use ASM_ADDR.
(elf_machine_rela): Handle R_X86_64_RELATIVE64 for x32. For x32,
sign extend relocation result to 64bit for R_X86_64_DTPOFF64
and R_X86_64_TPOFF64, and don't process R_X86_64_64.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
Replace ELF64_R_TYPE with ELF32_R_TYPE.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace long with
long long.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Pad for x32.
(dl_tls_index): Replace long with long long.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
is 32byte aligned.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
<bits/wordsize.h>.
(__signbitf): Check __x86_64__ instead of __WORDSIZE.
(__signbit): Likwise.
(lrintf): Likwise.
(lrint): Likwise.
(llrintf): Likwise.
(llrint): Likwise.
(fmaxf): Likwise.
(fmax): Likwise.
(fminf): Likwise.
(fmin): Likwise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
long long int instead of long int.
(INSERT_WORDS64): Likwise.
(__isnan): Likwise.
(__isinf_ns): Likewise.
(__finite): Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
_Unwind_GetCFA return to _Unwind_Ptr first.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
Check __x86_64__ instead of __WORDSIZE.
* sysdeps/x86_64/bits/setjmp.h: Likewise.
* sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/bits/byteswap.h: Don't include
<bits/wordsize.h>.
(__bswap_32): Check __x86_64__ instead of __WORDSIZE. Also
check __corei7__.
(__bswap_64): Check __x86_64__ instead of __WORDSIZE.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
Use long long on 64bit integer.
(__arch_c_compare_and_exchange_val_64_acq): Likewise.
(atomic_exchange_acq): Likewise.
(__arch_exchange_and_add_body): Likewise.
(__arch_add_body): Likewise.
(atomic_add_negative): Likewise.
(atomic_add_zero): Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/strcmp-sse42.S: Use RXX_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/memcpy-ssse3.S: Use RXX_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RXX_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/memcmp-sse4.S: Use RXX_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* x86_64/dl-trampoline.h: Use R10_LP to load frame size.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/strcmp.S: Use RXX_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/memcpy.S: Use RXX_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/elf/start.S: Include <sysdep.h>. Simulate
popping 4byte argument count for x32. Use RXX_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/__longjmp.S: Use RXX_LP.
* sysdeps/x86_64/setjmp.S: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/sysctl.c: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/sendfile64.c: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/pselect.c: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/getdents.c: New.
* sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/gettimeofday.c: New.
* sysdeps/unix/sysv/linux/x86_64/x32/time.c: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/preadv.c: New.
* sysdeps/unix/sysv/linux/x86_64/x32/pwritev.c: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New.
* sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/fallocate.c: New.
* sysdeps/unix/sysv/linux/x86_64/x32/posix_fadvise.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/posix_fallocate.c: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New.
* sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8byte data alignment with LP_SIZE alignment.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
into R10_LP.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
Add sigaltstack.sym.
* sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
"sigaltstack.h".
(____longjmp_chk): Use RXX_LP, sizeSS, oSS_FLAGS, oSS_SP and
oSS_SIZE for alternate signal stack.
* sysdeps/unix/sysv/linux/x86_64/sigaltstack.sym: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
Use "unsigned long long int" instead of "unsigned long int".
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
<stdint.h>.
(GET_PC): Cast to uintptr_t first.
(GET_FRAME): Likewise.
(GET_STACK): Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
<bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
(DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
* sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
"unsigned long long int" if __x86_64__ is defined.
Check __x86_64__ instead of __WORDSIZE.
(elf_prstatus): Use "unsigned long long int" instead of
"unsigned long int" if __x86_64__ is defined.
* sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
include <bits/wordsize.h>. Check __x86_64__ instead of
__WORDSIZE.
* sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
include <bits/wordsize.h>. Check __x86_64__ instead of
__WORDSIZE.
(greg_t): Use "long long int" if __x86_64__ is defined.
(mcontext_t): Replace "unsigned long" with "unsigned long long".
(ucontext_t): Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
include <bits/wordsize.h>. Check __x86_64__ instead of
__WORDSIZE.
(user_regs_struct): Use "unsigned long long" instead of
"unsigned long" if __x86_64__ is defined.
(user): Likewise. Pad if __LP64__ isn't defined.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sys/msg.h: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/bits/wordsize.h: Moved to ...
* sysdeps/x86_64/64/bits/wordsize.h: Here.
(__WORDSIZE_COMPAT32): Removed.
* sysdeps/x86_64/x32/bits/wordsize.h: New.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/Implies: Moved to ...
* sysdeps/unix/sysv/linux/x86_64/64/Implies: Here.
* sysdeps/x86_64/Implies: Moved to ...
* sysdeps/x86_64/64/Implies: Here. Prepend x86_64/fpu.
* sysdeps/unix/sysv/linux/x86_64/x32/Implies: New.
* sysdeps/x86_64/x32/Implies: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
<bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
<bits/wordsize.h>.
(msgqnum_t): Use __UNATIVE_LONG_TYPE.
(msglen_t): Likewise.
(msqid_ds): Check __x86_64__ instead of __WORDSIZE. Use
__UNATIVE_LONG_TYPE.
* sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
__UNATIVE_LONG_TYPE.
* sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
__UNATIVE_LONG_TYPE.
(shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
defined. Use __UNATIVE_LONG_TYPE.
(shminfo): Use __UNATIVE_LONG_TYPE.
(shm_info): Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
include <bits/wordsize.h>. Check __x86_64__ instead of
__WORDSIZE.
(sigcontext): Use "unsigned long long int" instead of
"unsigned long int" if __x86_64__ is defined. Pad if __LP64__
isn't defined.
* sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
Check __x86_64__ instead of __WORDSIZE.
(_STAT_VER_LINUX): Likewise.
(stat): Check __x86_64__ instead of __WORDSIZE. Use
__UNATIVE_LONG_TYPE.
(stat64): Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/ipc.h: New.
* sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/mqueue.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/resource.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/statvfs.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/timex.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
thread pointer.
(TLS_IE): Use mov/add instead of movq/addq to load thread
pointer.
(TLS_GD_PREFIX): New.
(TLS_GD): Use it.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* elf/stackguard-macros.h (STACK_CHK_GUARD): Add x32 version.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
* sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New.
* sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
Handle x32 libraries.
* sysdeps/unix/sysv/linux/x86_64/readelflib.c (process_elf_file):
Likewise.
* sysdeps/unix/sysv/linux/x86_64/dl-cache.h (add_system_dir): New
Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
* sysdeps/unix/sysv/linux/x86_64/ldconfig.h
(SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* stdlib/longlong.h (count_leading_zeros): Use long long builtin
for x86-64.
(count_trailing_zeros): Likewise.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* elf/elf.h (R_X86_64_RELATIVE64): New.
(R_X86_64_NUM): Updated.
2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/ffsll.c: Add ffsl alias only if __LP64__ is
defined.
2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
* sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This. Updated.
* sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
* time/mktime.c (ydhms_diff): Check TIME_T_MAX instead of
LONG_MAX.
* time/offtime.c (__offtime): Add more overflow check.
2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
* bits/types.h (__snseconds_t): New.
* bits/typesizes.h (__SNSECONDS_T_TYPE): Likewise.
* sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SNSECONDS_T_TYPE):
Likewise.
* sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__SNSECONDS_T_TYPE):
Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SNSECONDS_T_TYPE):
Likewise.
* time/time.h (timespec): Use __snseconds_t on tv_nsec.
2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h
(VSYSCALL_ADDR_vgettimeofday): New.
(VSYSCALL_ADDR_vtime): Likewise.
(VSYSCALL_ADDR_vgetcpu): Likewise.
* sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
(VSYSCALL_ADDR_vgettimeofday): Removed.
* sysdeps/unix/sysv/linux/x86_64/init-first.c
(VSYSCALL_ADDR_vgetcpu): Likewise.
* sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S
(VSYSCALL_ADDR_vgetcpu): Likewise.
* sysdeps/unix/sysv/linux/x86_64/time.c (VSYSCALL_ADDR_vtime):
Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: New.
* sysdeps/x86_64/x32/sysdep.h: Likewise.
* sysdeps/x86_64/sysdep.h (LP_SIZE): New.
(MOVE_LP): Likewise.
(ADD_LP): Likewise.
(SUB_LP): Likewise.
(CMP_LP): Likewise.
(ASM_ADDR): Likewise.
(RAX_LP): New.
(RBP_LP): Likewise.
(RBX_LP): Likewise.
(RCX_LP): Likewise.
(RDI_LP): Likewise.
(RSI_LP): Likewise.
(RSP_LP): Likewise.
(R8_LP): Likewise.
(R9_LP): Likewise.
(R10_LP): Likewise.
(R10_LP): Likewise.
(R11_LP): Likewise.
(R12_LP): Likewise.
(R13_LP): Likewise.
(R14_LP): Likewise.
(R15_LP): Likewise.
2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
* shlib-versions: Move ld name for x86_64-.*-linux.* to ...
* sysdeps/x86_64/64/shlib-versions: Here. New.
* sysdeps/x86_64/x32/shlib-versions: New.
2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
* Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Depend on
$(lib-names_awk) instead of scripts/lib-names.awk.
* Makefile ($(inst_includedir)/gnu/stubs.h): Depend on
$(stubs-biarch_h) instead of include/stubs-biarch.h.
(data-machine): New.
(check-data): Use it.
* config.make.in (data-machine): New.
(stubs-biarch_h): Likewise.
(lib-names_awk): Likewise.
* configure.in: Add sysdeps preconfigure fragment support.
(data_machine): Substitute.
(stubs_biarch_h): Set to include/stubs-biarch.h if not set.
Substitute.
(lib_names_awk): Set to scripts/lib-names.awk if not set.
Substitute.
* configure: Regenerated.
* scripts/data/c++-types-x32-linux-gnu.data: New.
* sysdeps/unix/sysv/linux/x86_64/stubs-triarch.h: Likewise.
* sysdeps/x86_64/lib-names.awk: Likewise.
* sysdeps/x86_64/preconfigure: Likewise.
* sysdeps/x86_64/stubs-biarch.h: Likewise.
* sysdeps/unix/sysv/linux/configure.in: Require kernel 2.6.35
or above for x32. Check x86_64/x64 instead of x86_64.
* sysdeps/unix/sysv/linux/configure: Regenerated.
* sysdeps/x86_64/preconfigure (stubs_biarch_h): Set to
sysdeps/x86_64/stubs-biarch.h.
* sysdeps/unix/sysv/linux/x86_64/Makefile
(syscall-list-32bit-condition): Check __x86_64__ instead of
__WORDSIZE.
(syscall-list-64bit-condition): Likewise.
(syscall-list-64bit-options): Add __LP64__.
|