about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace cpuid asm statement with __cpuid_countH.J. Lu2014-08-123-4/+9
| | | | | | | | | | | The compiler doesn't know that the cpuid asm statement in intel_check_word will trash RBX. We are lucky that it doesn't cause any problems since RBX is also used by compiler for other purposes so that RBX is saved and restored. This patch replaces it with __cpuid_count. [BZ #17259] * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid asm statement with __cpuid_count.
* detect broken linker handling of __ehdr_startMike Frysinger2014-08-123-11/+44
| | | | | | Older versions of ld on ia64 support __ehdr_start, but generate relocs when they shouldn't. This causes the ld.so to not run because it tries to resolve the __ehdr_start symbol (but it's not exported).
* Fix powerpc-nofpu __fe_enabled_env and __fe_nonieee_env (bug 17261).Joseph Myers2014-08-123-18/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | On powerpc, floating-point environment macros are defined as pointers to constants in the library that contain the bit-patterns of the desired environment, instead of being magic constants cast to pointer type. For soft-float, the bit-patterns used for fenv_t are not laid out the same as for hard-float. (e500 has a third layout used; that's not an ABI issue because these values are only meaningful within a single process, all of whose glibc libraries must come from the same build of glibc.) While the __fe_dfl_env value for soft-float was appropriate for the soft-float fenv_t representation, the other two constants had the same bit-patterns as for hard-float. Those bit patterns had the effect of having exceptions already raised, causing math/test-fenv-return to fail; this patch fixes the patterns used. (__fe_nonieee_env also had exceptions unmasked, though they should be masked to match hard-float semantics. Since there is no separate non-IEEE mode for soft-float, it's most appropriate for __fe_nonieee_env to be the same as __fe_dfl_env; this patch makes it an alias.) Tested for powerpc-nofpu. [BZ #17261] * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change value to 0. (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
* NEWS: Mention x86-64 ld.so use of Intel MPX instructions.Roland McGrath2014-08-122-0/+14
|
* Add BZ #16892 to NEWSWill Newton2014-08-121-5/+5
|
* Check value of futex before updating in __lll_timedlockBernard Ogden2014-08-122-1/+10
| | | | | | | | 2014-08-12 Bernard Ogden <bernie.ogden@linaro.org> [BZ #16892] * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
* malloc: fix comment typoSean Anderson2014-08-122-1/+5
|
* Regenerate libc.poAllan McRae2014-08-092-477/+496
|
* tst-gettext2: make setup more robustMike Frysinger2014-08-082-14/+14
| | | | | | | | | This test should be more robust about setting up its lang dirs. I had two completely different systems (ia64 & x86_64) get wedged in a way where the test just kept FAILing on me due to some of the files missing. This probably wasn't a big deal until the recent commit which made checking of the locale dirs more robust (for security reasons).
* This patch adds new function libc_feholdsetround_noex_aarch64_ctx, enablingWilco Dijkstra2014-08-072-3/+32
| | | | | | | further optimization. libc_feholdsetround_aarch64_ctx now only needs to read the FPCR in the typical case, avoiding a redundant FPSR read. Performance results show a good improvement (5-10% on sin()) on cores with expensive FPCR/FPSR instructions.
* Fix performance issue in misaligned strcpy.Wilco2014-08-072-3/+8
|
* PowerPC: Fix termios definitionsAdhemerval Zanella2014-08-063-50/+92
| | | | | | | | | | | This patch fixes the incorrect guard by __USE_MISC of struct winsize and struct termio in powerpc termios header. Current states leads to build failures if the program defines _XOPEN_SOURCE, but not _DEFAULT_SOURCE or either _BSD_SOURCE or _SVID_SOURCE. Without any definition, __USE_MISC will not be defined and neither the struct definitions. This patch copies the default Linux ioctl-types.h by adjusting only the character control field (c_cc) size in struct termio.
* alpha: Fix exception raising from soft-fpRichard Henderson2014-08-055-12/+21
| | | | | | Use the SSI_IEEE_RAISE_EXCEPTION function as from feraiseexcept, instead of __ieee_get+set_fp_status. Always raise the FP exceptions from float-to-integer conversion.
* alpha: Remove linux lowlevellock.hRichard Henderson2014-08-051-305/+0
| | | | For real this time.
* alpha: Remove linux lowlevellock.hRichard Henderson2014-08-051-0/+4
|
* MIPS - Remove mips lowlevellock.h.Bernard Ogden2014-08-042-354/+4
| | | | * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
* AArch64: Remove lowlevellock.hWill Newton2014-08-042-312/+5
| | | | | | | | | | | | | Remove lowlevellock.h in favour of the generic implementation. The generic implementation was tested natively and introduces no regressions. ChangeLog: 2014-08-04 Will Newton <will.newton@linaro.org> * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove file.
* add ChangeLog for previous commitMike Frysinger2014-08-041-0/+5
|
* ia64: define nocancel entry points in PSEUDOMike Frysinger2014-08-041-0/+19
| | | | | | | | | | | | | | The previous set of not-cancel.h headers (prior to the commit 2fbdf5339aaeaa423bd661524f7ec7af41fa2606) did not require the arch to define nocancel entry points, so ia64 never did. However, after the various files were merged, it became a hard requirement for arches which mean ia64 failed to build. Here we add dedicated entry points. It'd be nice to merge with the existing stubs like other arches do, but the ia64 asm does not lend itself to interleaving of functions. If someone has a suggestion on merging these, that'd be great, but at least now we build & pass tests again.
* IA64: Consolidate nptl/ subdirectories under linux/...Roland McGrath2014-08-0432-17/+82
|
* IA64: Move NPTL public headers to sysdeps/ia64/nptl/.Roland McGrath2014-08-044-0/+9
|
* IA64: Define TLS_DEFINE_INIT_TPRoland McGrath2014-08-045-25/+15
|
* IA64: Consolidate NPTL/non versions of vforkRoland McGrath2014-08-045-131/+88
|
* IA64: Consolidate NPTL/non versions of cloneRoland McGrath2014-08-043-11/+6
|
* Fix missing <math_private.h> in ldbl-96 fmaAndreas Schwab2014-08-042-0/+5
|
* add ChangeLog for previous commitMike Frysinger2014-08-031-0/+5
|
* tst-setcontext: fix styleMike Frysinger2014-08-031-5/+5
|
* Remove sysdeps/unix/sysv/linux/arm/lowlevellock.hRoland McGrath2014-08-012-307/+4
|
* Force eval for fma implementationsRichard Henderson2014-08-015-20/+33
|
* ARM: Move PTR_MANGLE et al out of Linux-specific file.Roland McGrath2014-08-013-44/+55
|
* Fix -Wundef warnings in regex_internal.hSiddhesh Poyarekar2014-08-013-1/+12
|
* Check if DEBUG is defined in regex_internal.cSiddhesh Poyarekar2014-08-012-2/+5
| | | | | | | The DEBUG macro is checked for its value in one place and if it is defined in another. Make this consistent across the two cases and use the same style that we did in mktime.c, which is to check if the macro is defined and it is set.
* Fix -Wundef warnings in fnmatch.cSiddhesh Poyarekar2014-08-013-8/+11
| | | | | | Fixes -Wundef warnings for MBSTATE_T and HAVE_STRING_H. The HAVE_STRING_H bit is a merge from the gnulib fnmatch.c and the MBSTATE_T fix has been posted to gnulib for inclusion.
* NEWS: Explain the s390 jmp_buf / ucontext_t ABI change reversal.Stefan Liebler2014-08-012-0/+16
|
* Add __safe_fatal and use it in __pthread_unwind forwarder fallback.Roland McGrath2014-07-314-9/+82
|
* Use __builtin_trap for ABORT_INSTRUCTION.Roland McGrath2014-07-315-1/+95
|
* Split nptl-signals.h out from pthreadP.hRoland McGrath2014-07-314-16/+64
|
* [PATCH] S390: Fix remaining ONE_DIRECTION warning messagesStefan Liebler2014-07-314-0/+12
| | | | | | | | | | | | | | This patch fixes the remaining ONE_DIRECTION warnings for s390 specific conversions. It defines ONE_DIRECTION to 0 like the patch from Steve Ellcey: https://www.sourceware.org/ml/libc-alpha/2014-05/msg00039.html Changelog: * sysdeps/s390/s390-64/utf16-utf32-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf16-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf32-z9.c (ONE_DIRECTION): Define.
* S/390: Revert the jmp_buf/ucontext_t ABI change.Stefan Liebler2014-07-3136-795/+260
|
* Fix -Wundef warning for HAVE_IFUNCAndreas Schwab2014-07-313-3/+9
|
* Improve 64bit memcpy performance for Haswell CPU with AVX instructionLing Ma2014-07-3012-6/+478
| | | | | | | | | In this patch we take advantage of HSW memory bandwidth, manage to reduce miss branch prediction by avoiding using branch instructions and force destination to be aligned with avx instruction. The CPU2006 403.gcc benchmark indicates this patch improves performance from 2% to 10%.
* PowerPC: Fix gprof entry point for LEAdhemerval Zanella2014-07-303-1/+9
| | | | | This patch fixes the ELFv2 gprof entry point since the ABI does not define function descriptors. It fixes BZ#17213.
* fcntl-linux.h: add new definitions and manual updates for open file ↵Jeff Layton2014-07-295-17/+361
| | | | | | | | description locks Open file description locks have been merged into the Linux kernel for v3.15. Add the appropriate command-value definitions and an update to the manual that describes their usage.
* Update Spanish translationsAllan McRae2014-07-232-1088/+1169
|
* Add fixed bug to NEWSAllan McRae2014-07-231-1/+1
| | | | Fixed in commit 7ee03f00.
* Add missing changelog entry for commit ab7ac0f2Allan McRae2014-07-231-0/+5
|
* Revert "aarch64: Add hp-timing.h"Marcus Shawcroft2014-07-221-38/+0
| | | | | | | This reverts commit 4052993954d1dcb39cbd478ab59e75fe12903e9c. Conflicts: sysdeps/aarch64/hp-timing.h
* m68k: use generic lowlevellock.hAndreas Schwab2014-07-182-308/+4
|
* [BZ #17078] ARM: R_ARM_TLS_DESC prelinker supportMaciej W. Rozycki2014-07-173-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a change to the dynamic linker to add prelinker support for the R_ARM_TLS_DESC relocation. Two cases can be considered here, the usual one where lazy binding is in use and the less frequent one, where immediate binding is requested via the use of the DF_BIND_NOW dynamic flag (e.g. by using the GNU linker's "-z now" option). This change only handles the first case. In this scenario the prelinker does what the dynamic linker would do, that is it preinitialises R_ARM_TLS_DESC relocations with a pointer to the lazy specialization as provided with the DT_TLSDESC_PLT dynamic tag. A conflict is additionally created and in the conflict resolution path the dynamic linker complements the work by initialising the object's pointer as indicated by the DT_TLSDESC_GOT dynamic tag to the linker's internal lazy specialization worker function and also providing the associated link map in the second entry of the GOT. This step is required, because if prelinking is successful at the run time, then the dynamic linker's elf_machine_runtime_setup() function isn't called that would normally do so. The second case remains unresolved, because support for that scenario has not been implemented in the prelinker. In this case the lazy specialization is unavailable and the DT_TLSDESC_PLT dynamic tag is not present. The prelinker could assume the common case of static specialization and resolve the relocation, but that would require the exposure of dynamic linker's specialization worker function. Furthermore the dynamic linker would have to handle the relocation in the conflict resolution path and see if the dynamic specialization should be used instead. This however would require access to data structures currently not made available to the conflict resolution path and therefore a redesign of this part of the dynamic linker. Alternatively the prelinker could defer all processing to the dynamic linker's conflict resolution path, but that would require similar access to the said data structures. Therefore the prelinker issues an error instead and the dynamic linker has assertions to check that DT_TLSDESC_PLT and DT_TLSDESC_GOT are in use in its conflict resolution path. This change resolves all TLS failures in the prelinker testsuite, as noted in the bug report, as well as the small test case provided there. Unfortunately we don't seem to have any hooks to factor in the prelinker (if present on a system) to testing, so at this time this fix has to rely on using the prelinker test suite and enabling TLS descriptors there for coverage. [BZ #17078] * sysdeps/arm/dl-machine.h (elf_machine_rela) [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation. (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
* Fix fallback fesetenv and feupdateenv on FE_NOMASK_ENV (bug 17088).Joseph Myers2014-07-174-2/+16
| | | | | | | | | | | | | | This patch fixes bug 17088, fallback fesetenv and feupdateenv not giving an error for an FE_NOMASK_ENV argument when it requires traps to be enabled. (This is the bug tested for by test-fenv-return.c.) Tested mips64 soft-float. [BZ #17088] * math/fesetenv.c (__fesetenv) [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV. * math/feupdateenv.c (__feupdateenv) [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.