about summary refs log tree commit diff
path: root/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
* aarch64: Remove PSEUDO_RETRichard Henderson2014-05-301-20/+3
|
* aarch64: Fix error return from __ioctlRichard Henderson2014-05-301-6/+7
| | | | | Forgotten in ca3cfa40c16ef34c74951a07a57cfcbcd58898b1 where the error branch was moved from PSEUDO_RET.
* Replace __int128 with __int128_tMarko Myllynen2014-05-301-1/+1
| | | | | * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128 with __int128_t.
* m68k: Convert fork.c to arch-fork.hRoland McGrath2014-05-301-3/+2
|
* aarch64: Rely on syscalls preserving registersRichard Henderson2014-05-291-24/+12
| | | | | | | | In several cases we've had asm routines rely on syscalls not clobbering call-clobbered registers, and that's now deemed ABI. So take advantage of this in the INLINE_SYSCALL path as well. Shrinks libc.so by about 1k.
* aarch64: Use tpidr_el0 rather than __errno_location in librtRichard Henderson2014-05-292-15/+5
|
* aarch64: Use tpidr_el0 rather than __read_tp in librtRichard Henderson2014-05-291-11/+3
|
* aarch64: Improve syscall-cancel stack frameRichard Henderson2014-05-291-86/+26
| | | | One push instead of N; use stp/ldp to halve the insns.
* aarch64: Pass regno parameter to SINGLE_THREAD_PRichard Henderson2014-05-291-10/+8
| | | | Use cbz instead of cmp+b.eq.
* aarch64: Share code in syscall-cancel.hRichard Henderson2014-05-291-14/+14
| | | | Fold nocancel and error handling paths.
* aarch64: Tabify sysdep-cancel.hRichard Henderson2014-05-291-51/+51
|
* Avoid stat/fstat in statvfs/fstatvfs (BZ #15132)Eric Wong2014-05-295-27/+18
| | | | | Delay the use of stat/fstat until stat data is required. When the kernel returns ST_VALID, stat data is not used by __internal_statvfs.
* SH: Consolidate NPTL/non versions of cloneRoland McGrath2014-05-281-6/+1
|
* tile: Convert fork.c to arch-fork.hRoland McGrath2014-05-281-4/+2
|
* IA64: Convert fork.c to arch-fork.hRoland McGrath2014-05-271-0/+29
|
* SH: Convert fork.c to arch-fork.hRoland McGrath2014-05-271-0/+28
|
* Remove second argument from TLS_INIT_TP macroAndreas Schwab2014-05-2711-62/+38
|
* ARM: Fix handling of concurrent TLS descriptor resolutionWill Newton2014-05-271-19/+12
| | | | | | | | | | | | | | | | | | | | The current code for handling concurrent resolution says that the ABI for _dl_tlsdesc_resolve_hold is the same as that of _dl_tlsdesc_lazy_resolver. However _dl_tlsdesc_resolve_hold is called from the trampoline directly rather than the lazy resolver stub so, for example, r2 has not been pushed so does not needed to be restored. This fixes an intermittent failure in nptl/tst-tls3 when building glibc for arm-linux-gnueabihf with -mtls-dialect=gnu2. ChangeLog: 2014-05-27 Will Newton <will.newton@linaro.org> [BZ #16990] * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore r2 rather than just restoring.
* Update powerpc-fpu ULPs.Adhemerval Zanella2014-05-261-0/+24
|
* PowerPC: Move remaining nptl/sysdeps/unix/sysv/linux/powerpc/ files.Adhemerval Zanella2014-05-2613-0/+944
|
* PowerPC: Move NPTL ABI headers to sysdeps.Adhemerval Zanella2014-05-262-0/+266
|
* PowerPC: Move powerpc64 timer_*.c out of nptl/Adhemerval Zanella2014-05-266-0/+13
|
* PowerPC: Consolidate NPTL/non versions of cloneAdhemerval Zanella2014-05-262-27/+2
|
* PowerPC: Consolidate NPTL/non versions of vforkAdhemerval Zanella2014-05-262-0/+59
|
* PowerPC: Remove 64 bits instructions in PPC32 codeAdhemerval Zanella2014-05-268-16/+16
| | | | This patch replaces the insrdi by insrwi in powerpc32 assembly.
* [AARCH64] correct alignment of TLS_TCB_ALIGN (BZ #16796)Kyle McMartin2014-05-261-2/+2
| | | | | | | | | | | | | | | This fixes a variety of testsuite failures for me: tststatic.out Error 1 tststatic2.out Error 1 tst-tls9-static.out Error 1 tst-audit8.out Error 127 tst-audit9.out Error 127 tst-audit1.out Error 127 and also has the added benefit of making LD_AUDIT/sotruss work on AArch64. Otherwise, we bail out early in _dl_try_allocate_static_tls as the alignment requirement of the PT_TLS section in libc is 16.
* arm,aarch64: Remove SINGLE_THREAD_P_PICRichard Henderson2014-05-252-2/+0
| | | | | | | | | | This macro was removed by 2005-11-16 Daniel Jacobowitz <dan@codesourcery.com> but not applied to the (still separate) eabi port so necro'd when the eabi port superceded the old abi. It was thence copied into the new AArch64 port.
* aarch64: Tidy syscall error checkRichard Henderson2014-05-252-10/+13
| | | | | Move the error branch from the PSEUDO_RET macro to the PSEUDO macro. This is in line with other architectures, and will enable further improvments.
* aarch64: Remove DOARGS/UNDOARGS macrosRichard Henderson2014-05-252-24/+1
| | | | While they do something for AArch32, they're useless for AArch64.
* aarch64: Fix DO_CALL block commentRichard Henderson2014-05-251-1/+1
|
* alpha: Do non-default symbols in pt-vfork.SRichard Henderson2014-05-252-6/+14
|
* alpha: Move remaining files out of sysdeps/unix/sysv/linux/alpha/nptl/Richard Henderson2014-05-2332-15/+16
|
* alpha: Consolidate NPTL/non versions of vforkRichard Henderson2014-05-234-59/+62
|
* alpha: Merge standard and nptl clone.SRichard Henderson2014-05-232-15/+3
|
* alpha: Remove nptl/fork.cRichard Henderson2014-05-231-29/+0
| | | | | The merge at ab21431318d99c94e644606dee1e6a4545d98007 failed to properly remove the file.
* Fix log10 (1) in round-downward mode (bug 16977).Joseph Myers2014-05-238-4/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | As with various other issues of this kind, bug 16977 is log10 (1) wrongly returning -0 rather than +0 in round-downward mode because of an implementation effectively in terms of log1p (x - 1). This patch fixes the issue in the same way used for log. Tested x86_64 and x86 and ulps updated accordingly. Also tested for mips64 to confirm a fix was needed for ldbl-128 and to validate that fix (also applied to ldbl-128ibm since that version of logl is essentially the same as the ldbl-128 one). [BZ #16977] * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute value when x - 1 is zero. * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise. * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise. * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return 0.0L for an argument of 1.0L. * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise. * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute value when x - 1 is zero. * math/libm-test.inc (log10_test): Use ALL_RM_TEST. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
* PowerPC: Remove unneeded copysign[f] macrosAdhemerval Zanella2014-05-221-27/+0
| | | | | This patch remove the unneeded copysign[f] macro from powerpc math_private.h, since they are already covered in generic version.
* PowerPC: Fix memchr ifunc hidden symbol for PPC32Adhemerval Zanella2014-05-222-10/+14
| | | | | | | | | This patch fixes a similar issue to 736c304a1ab4cee36a2f3343f1698bc0abae4608, where for PPC32 if the symbol is defined as hidden (memchr) then compiler will create a local branc (symbol@local) and the linker will not create a required PLT call to make the ifunc work. It changes the default hidden symbol (__GI_memchr) to default memchr symbol for powerpc32 (__memchr_ppc32).
* AArch64: Convert fork.c to arch-fork.hRoland McGrath2014-05-211-4/+2
|
* Consistently use $(elf-objpfx).Joseph Myers2014-05-212-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As previously noted <https://sourceware.org/ml/libc-alpha/2013-05/msg00696.html>, $(elf-objpfx) and $(elfobjdir) are redundant and should be consolidated. This patch consolidates on $(elf-objpfx) (for consistency with $(csu-objpfx)), also changing direct uses of $(common-objpfx)elf/ to use $(elf-objpfx). Tested x86_64, including that installed shared libraries are unchanged by the patch. * Makeconfig [$(build-hardcoded-path-in-tests) = yes] (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of $(common-objpfx)elf/. (link-libc-before-gnulib): Likewise. (elfobjdir): Remove variable. * Makefile (install): Use $(elf-objpfx) instead of $(common-objpfx)elf/. * Makerules (link-libc-args): Use $(elf-objpfx) instead of $(elfobjdir)/. (link-libc-deps): Likewise. ($(common-objpfx)libc.so): Likewise. ($(common-objpfx)linkobj/libc.so): Likewise. [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx) instead of $(common-objpfx)elf/. (symbolic-link-list): Likewise. * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Likewise. * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of $(elfobjdir)/. (static-gnulib-arch): Likewise. * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Use $(elf-objpfx) instead of $(common-objpfx)elf/. localedata/ChangeLog: * Makefile (LOCALEDEF): Use $(elf-objpfx) instead of $(common-objpfx)elf/.
* aarch64: Merge __local_multiple_threads offset with memory referenceRichard Henderson2014-05-211-5/+4
| | | | | | This also highlights that we'd been loading 64-bits instead of the proper 32-bits. Caught by the linker as a relocation error, since the variable happened to be unaligned for 64-bits.
* aarch64: Merge rtld_errno offset with memory referenceRichard Henderson2014-05-211-2/+1
|
* Fix ARM build with GCC trunk.Joseph Myers2014-05-202-2/+4
| | | | | | | | | | | | | | | | sysdeps/unix/sysv/linux/arm/unwind-resume.c and sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c have static variables that are written in C code but only read from toplevel asms. Current GCC trunk now optimizes away such apparently write-only static variables, so causing a build failure. This patch marks those variables with __attribute_used__ to avoid that optimization. Tested that this fixes the build for ARM. * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c (libgcc_s_resume): Use __attribute_used__. * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume): Likewise.
* Update powerpc-fpu ULPs.Adhemerval Zanella2014-05-201-0/+63
|
* PowerPC: Fix copysignf optimization macroAdhemerval Zanella2014-05-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the __copysignf optimized macro meant to internal libm usage when used with constant value. Without the explicit cast to float, if it is used with const double value (for instance, on s_casinhf.c) double constants will be used and it may lead to precision issues in some algorithms. It fixes the following failures on PPC64/POWER7: Failure: Test: Real part of: cacos_downward (inf + 0 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0 Failure: Test: Real part of: cacos_downward (inf - 0 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0 Failure: Test: Real part of: cacos_downward (inf + 0.5 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0 Failure: Test: Real part of: cacos_downward (inf - 0.5 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0 Failure: Test: Real part of: cacos_towardzero (inf + 0 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0 Failure: Test: Real part of: cacos_towardzero (inf - 0 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0 Failure: Test: Real part of: cacos_towardzero (inf + 0.5 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0 Failure: Test: Real part of: cacos_towardzero (inf - 0.5 i) Result: is: 1.19209289550781250000e-07 0x1.00000000000000000000p-23 should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0
* alpha: fix sa_flags type (BZ 16967)Richard Henderson2014-05-201-1/+1
|
* alpha: Remove bits/siginfo.h (BZ 16966)Richard Henderson2014-05-201-333/+0
| | | | | | Using the default header instead. This matches the kernel, which also uses the generic header. Fixes the sys/wait.h conform issue, where si_band had the wrong type.
* alpha: Define ELF_MACHINE_NO_RELARichard Henderson2014-05-201-0/+1
|
* AArch64: Fix handling of nocancel syscall failuresWill Newton2014-05-201-0/+1
| | | | | | | | | | | | | | The current code for nocancel syscalls does not do a comparison of the system call return value. This leads to code being generated where the b.cs follows the svc instruction directly without setting the flags on which the branch depends. ChangeLog: 2014-05-20 Will Newton <will.newton@linaro.org> * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO): Test the return value of the system call in the nocancel case.
* AArch64: Remove asm/ptrace.h inclusion in sys/user.h and sys/procfs.hYvan Roux2014-05-202-21/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes an issue observed by the Xen project, where including signal.h exposes various PSR_MODE #defines. This is due to the usage in sys/user.h and sys/procfs.h of the struct user_pt_regs and user_fpsimd_state included via asm/ptrace.h. The namespace pollution this inclusion introduce is already partially fixed with some #undef of the PTRACE_* symbols, but other symbols like the PSR_MODE ones are still present, and undefining them is not safe since a user can include ptrace.h before user.h. My proposition is to define the 2 structures we need in user.h and get rid of the asm/ptrace.h inclusion. Build and make check are clean on AArch64. 2014-05-20 Will Newton <will.newton@linaro.org> Yvan Roux <yvan.roux@linaro.org> * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused #include of asm/ptrace.h. (PTRACE_GET_THREAD_AREA): Remove #undef. (PTRACE_GETHBPREGS): Likewise. (PTRACE_SETHBPREGS): Likewise. (struct user_regs_struct): New structure. (struct user_fpsimd_struct): New structure. * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused #include of asm/ptrace.h and second #include of sys/user.h. (PTRACE_GET_THREAD_AREA): Remove #undef. (PTRACE_GETHBPREGS): Likewise. (PTRACE_SETHBPREGS): Likewise. (ELF_NGREG): Use new struct user_regs_struct. (elf_fpregset_t): Use new struct user_fpsimd_struct.