Commit Graph

6710 Commits

Author SHA1 Message Date
H.J. Lu
435b95ebd0 AVX audit test failures with gcc 4.6 2011-02-02 19:28:44 -05:00
Ulrich Drepper
86e9235918 Fix decoding of canonical name in getaddrinfo. 2011-01-19 15:50:05 -05:00
Ulrich Drepper
18ba70a559 Define MADV_NOHUGEPAGE. 2011-01-17 18:35:17 -05:00
Ulrich Drepper
32465c3ea0 Define MADV_HUGEPAGE. 2011-01-17 18:24:59 -05:00
Ulrich Drepper
a77e8cbc39 Add definitions for new socket protocols. 2011-01-17 14:21:02 -05:00
Ulrich Drepper
70181fddf1 Change setgroups to affect all the threads in the process. 2011-01-14 08:42:11 -05:00
Ulrich Drepper
8cf8ce1702 Clean up PLT use for getrlimit64. 2011-01-13 16:21:04 -05:00
Ulrich Drepper
cfa28e560e Relax requirement on close in child created by posix_spawn. 2011-01-13 13:27:46 -05:00
Ulrich Drepper
1086d70d91 Fix handling of missing syscall in Linux mkdirat. 2011-01-13 12:42:06 -05:00
Ulrich Drepper
5e49c52efd Fix alignment in x86 destructor calls. 2011-01-12 20:59:32 -05:00
Ulrich Drepper
f257bbd77d Clean up some bits/select.h headers. 2011-01-09 16:49:17 -05:00
David S. Miller
16c2895fea sparc64: Use i386 implementation for fxstat.
This was simply missed when Jakub converted all of the
other sparc64 xstat cases.
2011-01-04 12:22:41 -08:00
Ulrich Drepper
5bd6dc5c2c Use prlimit64 for 32-bit [gs]etrlimit64 implementation. 2010-12-25 20:12:27 -05:00
Ulrich Drepper
98727dbea2 Change XPG-compliant strerror_r function to return error code. 2010-12-25 13:56:48 -05:00
H.J. Lu
4a531bb0b3 Remove .ctors' and .dtors' output sections 2010-12-24 20:14:37 -05:00
Ryan S. Arnold
30950a5fd2 Make PowerPC64 default to nonexecutable stack 2010-12-19 22:49:01 -05:00
Ulrich Drepper
db753e2cfb More accurate computatin of reclen in readdir_r.
Alignment issue can increase the reclen limit.
Make sure Linux 64-bit readdir_r also accounts for 64-bit alignment
in getdents.
2010-12-19 16:00:59 -05:00
Ulrich Drepper
283007197c Undo accidental checkin. 2010-12-14 13:09:28 -05:00
Jakub Jelinek
42acbb92c8 Fix -D_FORTIFY_SOURCE memmove and bcop 2010-12-09 10:38:18 -05:00
H.J. Lu
3a4a2499ec Remove dead code from x86-32 SSSE3 strncmp. 2010-12-01 22:18:31 -05:00
Ulrich Drepper
1e24cf6e6e Relax libm tests for x86-32. 2010-11-30 14:57:57 -05:00
Jakub Jelinek
3bf8d1b10c ldbl-128 fmal compile fix 2010-11-22 15:38:35 -05:00
Ulrich Drepper
cf7c9078a5 Define MAP_HUGETLB. 2010-11-19 09:35:39 -05:00
Ulrich Drepper
a1fb5e3ebe Define SWAP_FLAG_DISCARD. 2010-11-16 12:17:04 -05:00
H.J. Lu
13b695749a Support Intel processor model 6 and model 0x2. 2010-11-12 03:48:52 -05:00
Luis Machado
da93d21475 Fix comparison in sqrtl for IBM long double 128. 2010-11-10 16:15:05 -05:00
H.J. Lu
8ca52c6e3b Fix one exit path in x86-64 SSE4.2 str{,n}casecmp. 2010-11-10 03:05:37 -05:00
Ulrich Drepper
69da074d7a Fix warnings in __bswap_16. 2010-11-10 02:38:35 -05:00
H.J. Lu
ff02d5280b Use IFUNC on x86-64 memset 2010-11-08 03:41:34 -05:00
Luis Machado
344d0b545d power7-optimized mempcpy 2010-11-05 08:01:13 -04:00
Ulrich Drepper
c0dde15b5d 32bit memset-sse2.S fails with uneven cache size
32bit memset-sse2.S assumes cache size is multiple of 128 bytes.  If
it isn't true, memset-sse2.S will fail.  For example, a processor can
have 24576 KB L3 cache and 20 cores. That is 2516582 byte per core. Half
of it is 1258291, which isn't helpful for vector instructions.  This
patch rounds cache sizes to multiple of 256 bytes and adds "raw" cache
sizes.
2010-11-05 07:57:46 -04:00
Miklos Szeredi
0e516e0e14 Verify in ttyname() that the symlink is valid. 2010-11-03 00:25:45 -04:00
Andreas Krebbel
f09677388a Fix concurrency problem between dl_open and dl_iterate_phdr 2010-10-26 00:23:14 -04:00
Richard Li
dbf3a06904 Fix x86-64 strchr propagation of search byte into all bytes of SSE register 2010-10-25 14:13:17 -04:00
Michael B. Brutman
d0b9e94faf powerpc: PPCA2/A2 optimized memcpy function 2010-10-24 21:47:33 -04:00
Andreas Schwab
8e9f92e9d5 Require suid bit on audit objects in privileged programs 2010-10-24 21:43:15 -04:00
Ulrich Drepper
18edac4857 Provide FP_FAST_FMA{,F,L} definitions for x86/x86-64. 2010-10-19 12:56:42 -04:00
Michael Meissner
d20501241e Add C99 FP_FAST_FMA{,F,L} macros to math.h 2010-10-19 12:49:05 -04:00
Jakub Jelinek
7c08a05c5f IEEE quad fmal fixes 2010-10-18 07:29:50 -04:00
Jakub Jelinek
3e692e0518 Implement fmal, some fma bugfixes 2010-10-15 15:26:06 -04:00
Jakub Jelinek
f3f7372de1 Fix some more dbl-64/s_fma.c issue 2010-10-15 15:25:14 -04:00
Jakub Jelinek
5e908464b9 Implement accurate fma. 2010-10-13 22:27:03 -04:00
Ulrich Drepper
1751705d1c Linux getifaddrs might return entries with ->ifa_addr being NULL. 2010-10-11 09:38:00 -04:00
Jakub Jelinek
9ff8d36f27 Correct implementation of fmaf. 2010-10-11 09:27:05 -04:00
Ulrich Drepper
45db99c7d0 Fix handling of tail bytes of buffer in SSE2/SSSE3 x86-64 version strn{,case}cmp 2010-10-03 22:10:30 -04:00
Nobuhiro Iwamatsu
cf7a1eb81d sh: Add "extern "C"" to __set_fpscr function 2010-10-01 19:40:36 -04:00
Andreas Jaeger
b8b4863d78 Fix last checkin. 2010-10-01 19:05:26 -04:00
Andreas Jaeger
6484ba5ef0 Handle cgroup and btrfs filesystems 2010-10-01 10:49:47 -04:00
Luis Machado
91c4255919 powerpc: Use generic memset for RTLD for ppc32/64 2010-09-29 12:21:14 -04:00
Andreas Krebbel
87a97932bd S/390: Fix highgprs check in startup code 2010-09-29 11:31:42 -04:00
Ulrich Drepper
724da3d7f4 Revert "powerpc: PPCA2 optimized memcpy function"
This reverts commit 44f91d3884.

Conflicts:

	ChangeLog
2010-09-27 23:02:55 -04:00
Andreas Schwab
c21cc9bcb3 Properly convert f_fsid in statvfs 2010-09-27 22:34:21 -04:00
Michael B. Brutman
44f91d3884 powerpc: PPCA2 optimized memcpy function 2010-09-21 14:06:46 -07:00
Joseph Myers
1ac7a2c7b4 getdents64 fallback d_type support 2010-09-21 14:02:08 -07:00
Ulrich Drepper
015a4c6193 Re-enable all strncasecmp versions. 2010-09-20 20:18:00 -07:00
Ulrich Drepper
8ffcee4a04 Fix limit detection in x86-64 SSE2 strncasecmp. 2010-09-20 14:02:23 -07:00
Andreas Schwab
e24f0a8b9e Add support for fanotify_mark on sparc32 and s390 2010-09-20 06:58:15 -07:00
Andreas Schwab
7291c56f9d Fix register conflict in s390 ____longjmp_chk 2010-09-15 07:38:19 -07:00
Chung-Lin Tang
c044aa7535 Fix _FORITY_SOURCE version of longjmp for Linux/x86-64. 2010-09-08 15:49:50 -07:00
Andreas Schwab
817328eea7 Remove undefined operations 2010-09-05 13:55:08 +02:00
Ulrich Drepper
0959ffc97b Update x86-64 mpn routines from GMP 5.0.1. 2010-09-02 23:36:25 -07:00
Mike Frysinger
fdc0c10d9b Update sparc epoll.h from epoll_create2 to epoll_create1 2010-09-01 12:45:02 -07:00
Mike Frysinger
e53a31fe57 Fix typo in x86-64 epoll.h. 2010-09-01 12:42:48 -07:00
Andreas Schwab
f3dcc2f9a5 Support fanotify_mark syscall on powerpc32 2010-08-31 09:46:57 +02:00
Roland McGrath
6d34eb5b45 Add missing i686/multiarch/Makefile bit for shared x86_64 code. 2010-08-27 17:11:38 -07:00
Ulrich Drepper
c96d23fcaa Fixup x86 after x86-64 varshift change. 2010-08-27 12:10:11 -07:00
Ulrich Drepper
01d2601561 Fix typo in last commit. 2010-08-26 22:35:42 -07:00
Ulrich Drepper
9ea3de11f1 Move slow Atom code to separate section. 2010-08-26 22:17:03 -07:00
Ulrich Drepper
107b2fa56c Shorten x86-64 strlen a bit. 2010-08-26 22:12:16 -07:00
H.J. Lu
623aac7f84 Unroll x86-64 strlen 2010-08-26 22:09:34 -07:00
H.J. Lu
b416a90085 Missing comma in last commit. 2010-08-26 13:18:46 -07:00
Roland McGrath
8b2b771538 Clean up warnings in new x86_64/multiarch code. 2010-08-25 12:13:08 -07:00
H.J. Lu
e73015f2d6 Unroll 32bit SSE strlen and handle slow bsf 2010-08-25 10:07:37 -07:00
Ulrich Drepper
1cdfe7242f Add missing copyright year updated and pretty printing. 2010-08-24 11:42:19 -07:00
Richard Henderson
73f27d5e72 Clean up SSE variable shifts 2010-08-24 11:35:01 -07:00
Ulrich Drepper
9da4bb316f Fix two typos in x86-64 SSE4.2 strncasecmp implementation. 2010-08-19 09:20:44 -07:00
Andreas Schwab
bdaa77bc20 Fix ifunc thunk for strspn on x86 in static libc 2010-08-19 07:42:16 -07:00
Luis Machado
fe2f79db99 powerpc: Various P7-optimized string functions 2010-08-19 07:38:41 -07:00
Ulrich Drepper
004c737f7b Merge branch 'master' of ssh://sourceware.org/git/glibc 2010-08-16 07:07:05 -07:00
Ulrich Drepper
1c06ba3100 Simplify fanotify_init definition. 2010-08-16 07:06:38 -07:00
Ulrich Drepper
1feccb6caf Fix fourth parameter of SSE4.2 strcmp for x86-64. 2010-08-15 20:46:09 -07:00
H.J. Lu
f8392f4004 Add -fno-asynchronous-unwind-tables to initfini.s for i386 2010-08-15 20:09:23 -07:00
Andreas Schwab
3162f12e58 Remove third argument from fanotify_init function 2010-08-15 20:07:32 -07:00
Ulrich Drepper
28c90b2cf5 Use correct register for fourth parameter of x86-64 strncasecmp_l. 2010-08-15 17:42:12 -07:00
Ulrich Drepper
25244f174f Undo inccorect change. 2010-08-15 10:34:33 -07:00
Ulrich Drepper
e9f82e0d1d Add optimized strncasecmp versions for x86-64. 2010-08-14 22:04:01 -07:00
Ulrich Drepper
ca6bb004eb Fix x86-64 build without multiarch. 2010-08-14 14:56:32 -07:00
Andreas Schwab
052fa7b33e Fix compilation 2010-08-14 13:19:25 +02:00
Ulrich Drepper
962dba7828 Define EXTPROC for Linux. 2010-08-12 20:39:44 -07:00
Alan Modra
bebff237c5 PowerPC64 ABI fixes 2010-08-12 09:19:19 -07:00
Ulrich Drepper
3cdaa6adb1 f_flags in Linux statfs implementation.
The 2.6.36 kernel provides an additional field in the statfs results.
Use this value in the statvfs emulation to avoid filling in f_flag
the hard way.
2010-08-11 14:07:28 -07:00
Ulrich Drepper
754f7da38b Define IN_EXCL_UNLINK 2010-08-11 12:46:03 -07:00
Ulrich Drepper
10b3bedcb0 Add support for Linux fanotify_init and fanotify_mask syscalls. 2010-08-11 12:41:48 -07:00
Ulrich Drepper
c08fb0d7bb Add support for prlimit and prlimit64 on Linux. 2010-08-11 11:18:52 -07:00
Ulrich Drepper
15bac72bac Fix IPTOS_CLASS definition. 2010-08-11 07:44:03 -07:00
Ulrich Drepper
c3e2f19bb9 Add self-contained test for NSS.
While at it fix interaction between __nss_configure_lookup and nscd.
Otherwise the test fails if nscd is runnung.
2010-08-11 07:25:02 -07:00
Andi Kleen
d22e4cc939 x86: Add support for frame pointer less mcount 2010-08-07 21:24:05 -07:00
Ulrich Drepper
c86434ccb5 (__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL. 2010-08-06 19:18:05 -07:00
Samuel Thibault
fd3ebedafc Hurd: fix ttyname{,_r} errno result for non-ttys 2010-08-03 09:54:22 -07:00
Ulrich Drepper
73507d3ae0 Add support for SSSE3 and SSE4.2 versions of strcasecmp on x86-64. 2010-07-31 21:41:09 -07:00
Ulrich Drepper
66f6765a47 Pretty printing x86-64 SSE4.3 strcmp. 2010-07-30 12:54:37 -07:00
Ulrich Drepper
42e08a5438 Implement optimized strcaecmp for x86-64. 2010-07-30 00:14:04 -07:00
Ulrich Drepper
fe36dd025e Fix tolower operation in strcasestr. 2010-07-30 00:09:07 -07:00
Ulrich Drepper
880113d91e Avoid compiling unneeded file in ld.so. 2010-07-27 21:12:59 -07:00
Ulrich Drepper
24fb0f88ed Add optimized x86-64 implementation of strnlen.
While at it, beef up the test suite for strnlen and add performance
tests for it, too.
2010-07-26 08:37:08 -07:00
Ulrich Drepper
8e96b93aa7 Speed up x86-64 strcasestr a bit moew.
Using the new SSE4.2 instructions is cool but not really the fastest.
Some older SSE instructions can do the trick faster.
2010-07-24 08:34:44 -07:00
Andreas Schwab
b8934257ec Add missing file from last commit. 2010-07-21 08:44:35 -07:00
Andreas Schwab
f6a31e0eb6 Add strcasestr-nonascii to i386 build 2010-07-21 07:26:18 -07:00
Emilio Pozuelo Monfort
23d101d8ee Hurd: fix sendmsg memory leak in error paths 2010-07-20 19:19:34 -07:00
Ulrich Drepper
d02dc4ba08 Fix non-ASCII case of SSE4.2 strcasstr. 2010-07-16 16:00:22 -07:00
Ulrich Drepper
cc9f2e47a0 Speed up SSE4.2 strcasestr by avoiding indirect function call. 2010-07-16 15:37:38 -07:00
Ulrich Drepper
9b059f9774 Whitespace fixes. 2010-07-15 08:39:26 -07:00
Luis Machado
77c1b06986 POWER6/7 optimizations for copysign 2010-07-15 08:24:40 -07:00
Ulrich Drepper
440566c3f4 Avoid namespace pollution. 2010-07-09 19:25:23 -07:00
Ulrich Drepper
8a492a675e Implement _PC_PIPE_BUF.
Now that the kernel has appropriate support we can implement this
fpathconf command correctly.
2010-07-06 07:48:23 -07:00
Luis Machado
f47c9a11ad powerpc: Re-work the Implies structure
This patch tries to organize the implies files for ppc, since there are
a number of processors and most of them are compatible with each other
(backwards compatible).

Having in mind that we start the search for processor-specific files in
the sysdeps/unix/sysv/linux tree
(sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/[processor]/fpu to be
exact), we would like to grab any linux-specific code from that tree
prior to going through the other tree (sysdeps/powerpc/...).

For that, i removed the Implies files that were originally inside the
fpu directories and placed then in the non-fpu directories (still inside
the unix/sysv/linux tree). If no processor-specific/linux-specific files
could be found, we "imply" the other tree's (sysdeps/powerpc/...) fpu
directory for that specific processor AND also the non-fpu directory for
that same tree.

If, again, no processor-specific code is found, we read another Implies
file that will point to the most compatible processor that we should
grab code from, and so on, until we reach the power4 processor.

So, in summary, the Implies files will live inside these directories
now:

* sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/[processor]
* sysdeps/powerpc/powerpc[32|64]/[processor]

Practical example of the order we will use to pick power6-specific code
with the new structure.

sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/power6/fpu ->
sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/power6 ->
sysdeps/powerpc/powerpc[32|64]/power6/fpu ->
sysdeps/powerpc/powerpc[32|64]/power6 ->
sysdeps/powerpc/powerpc[32|64]/power5+/fpu ->
sysdeps/powerpc/powerpc[32|64]/power5+ ->
sysdeps/powerpc/powerpc[32|64]/power5/fpu ->
sysdeps/powerpc/powerpc[32|64]/power5 ->
sysdeps/powerpc/powerpc[32|64]/power4/fpu ->
sysdeps/powerpc/powerpc[32|64]/power4 (from here, it'll go to the
generic path as usual)
2010-06-30 09:57:38 -07:00
H.J. Lu
6fb8cbcb58 Improve 64bit memcpy/memmove for Atom, Core 2 and Core i7
This patch includes optimized 64bit memcpy/memmove for Atom, Core 2 and
Core i7.  It improves memcpy by up to 3X on Atom, up to 4X on Core 2 and
up to 1X on Core i7.  It also improves memmove by up to 3X on Atom, up to
4X on Core 2 and up to 2X on Core i7.
2010-06-30 08:26:11 -07:00
Andreas Schwab
e35fcef8b7 More fixes to error handling in getlogin_r. 2010-06-21 07:57:12 -07:00
Ulrich Drepper
63c4ed22b5 Fix error handling in Linux getlogin*. 2010-06-19 09:54:28 -07:00
Ulrich Drepper
af6edc9c6a More whitespace fixes. 2010-06-14 17:16:23 -07:00
Ulrich Drepper
1dc242356a Fix whitespaces. 2010-06-14 17:15:33 -07:00
Luis Machado
158db12267 power7 string compare optimizations 2010-06-14 17:13:24 -07:00
Ulrich Drepper
b2ef2c014b Define F_SETPIPE_SZ and F_GETPIPE_SZ. 2010-06-14 14:47:34 -07:00
Emilio Pozuelo Monfort
2a50c07836 Hurd: Fix linkat symlink handling. 2010-06-02 10:25:56 -07:00
Luis Machado
eb5ad2eb0d Small fix to POWER7 32-bit memcpy 2010-05-28 14:19:21 -07:00
H.J. Lu
3c88fe1e3a Incorrect x86 CPU family and model check. 2010-05-27 11:14:18 -07:00
Takashi Yoshii
d2f7315176 Fix iov[] size in SH register_dump() 2010-05-26 07:01:43 -07:00
Luis Machado
ebd2e13d67 Small fix to POWER7 32-bit memset 2010-05-24 17:56:44 -07:00
Andreas Schwab
3d04ff3a5d Implement recvmmsg also as socketcall 2010-05-21 12:11:28 -07:00
Andreas Schwab
5b08ac571f Make <sys/timex.h> compatible with C++ 2010-05-21 11:45:17 -07:00
Luis Machado
33b8d90a1b Add missing files. 2010-05-20 04:35:05 -07:00
Andrew Stubbs
21a2b1aeeb Fix FP exception control. 2010-05-12 10:18:26 -07:00
Ulrich Drepper
5ae958d741 Handle too-small buffers in Linux getlogin_r. 2010-05-05 09:44:50 -07:00
Ulrich Drepper
3155f06621 Remove unnecessary Alpha support. 2010-05-05 00:26:14 -07:00
Andreas Schwab
5a2a1d7504 Don't deadlock in __dl_iterate_phdr while (un)loading objects. 2010-05-03 08:08:28 -07:00
Bruno Haible
8c0677fe5d BZ #11538: Fix ttyname_r callers not to expect errno was set. 2010-04-28 15:00:14 -07:00
Bruno Haible
6cffee3611 BZ #11537: Hurd: Fix ttyname_r error return value. 2010-04-26 10:07:15 -07:00
H.J. Lu
6cc2b8a6df Fix bugs in x86-32 strcmp-sse4.S and strcmp-ssse3.S 2010-04-15 07:49:30 -07:00
Ulrich Drepper
94a27fabeb Whitespace fix. 2010-04-14 22:29:51 -07:00
H.J. Lu
a11ec63713 Add x86-32 FMA support 2010-04-14 22:27:59 -07:00
H.J. Lu
df87f54923 Check DATA_CACHE_SIZE_HALF 2010-04-14 22:18:27 -07:00
H.J. Lu
dd37cd1a12 Optimie x86-64 SSE4 memcmp for unaligned data. 2010-04-14 17:53:44 -07:00
H.J. Lu
404a6e3201 x86-64 SSE4 optimized memcmp
This is 64bit SSE4 optimized memcmp. It improves memcmp by upto 3X
on Intel Core i7.
2010-04-14 00:12:53 -07:00
Ulrich Drepper
bbbdd77809 Update x86-64 cpu multiarch selection header. 2010-04-13 19:17:10 -07:00
Andreas Schwab
0dabf204ef Fix makecontext on s390/s390x 2010-04-13 10:23:22 -07:00
Ulrich Drepper
aa6436d6ad Fix reading loginuid file in getlogin{,_r}. 2010-04-08 19:04:33 -07:00
Andreas Schwab
de240a05b3 Fix fallocate error return on i386. 2010-04-08 15:44:55 -07:00
Ulrich Drepper
88e236a627 Fix cproj implmentation. 2010-04-08 15:32:51 -07:00
Roland McGrath
f571a994ce Move unwind-resume code from NPTL to sysdeps/gnu. 2010-04-05 20:07:39 -07:00
Ulrich Drepper
cb652f30b0 Handle POSIX-compliant errno value of unlink in remove. 2010-04-04 02:08:37 -07:00
Ulrich Drepper
22f4f44b67 Fix concurrent handling of __cpu_features. 2010-04-04 00:25:46 -07:00
Ulrich Drepper
1a81139728 Handle unnecessary padding in getdents64.
The getdents64 syscall adds on 32-but platforms padding which isn't needed
and not included in the userlevel data structure definition.  We have to
avoid copying those padding bytes in the readdir64_r function.
2010-04-03 23:51:40 -07:00
Ulrich Drepper
b8b14c4cc3 Fix changes to interface list during getifaddrs calls. 2010-04-03 20:36:59 -07:00
Ryan S. Arnold
3ed8e24122 Remove incorrect paring of /proc/stat etc. 2010-04-03 19:20:29 -07:00
David S. Miller
960af486d2 Fix build of mmap64. 2010-03-31 14:07:39 -07:00
Ulrich Drepper
6d28d423b2 Define MSG_WAITFORONE. 2010-03-29 22:31:44 -07:00
Ulrich Drepper
ab61c641c2 Fix typos from last patch. 2010-03-29 18:43:06 -07:00
Thomas Schwinge
bc58236c65 Handle platforms without aux vector 2010-03-29 15:13:53 -07:00
Ulrich Drepper
8f4a5048ee Optimize __getpagesize a bit. 2010-03-27 06:19:50 -07:00
Ulrich Drepper
463ed2f0be Fix comments and indentation. 2010-03-27 04:48:18 -07:00
Ulrich Drepper
62f8db6e49 Define miss_F_GETOWN_EX only if needed.
When doing i686-unknown-linux-gnu build configured with --enable-kernel=2.6.24,
there are several warnings like this:

  ../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: ‘miss_F_GETOWN_EX’ defined but not used
2010-03-27 04:11:14 -07:00
Richard Henderson
d09580b1e6 Mark _dl_random attribute_relro in the header file.
It's already so marked in dl-sysdep.c.  Failure to so mark
in the header file leads the compiler to believe that the
variable should be addressable via the .sdata section.

Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 09:51:57 -07:00
Richard Henderson
b1c1949e60 Don't take the address of a void object.
GCC 4.5 warns about "extern void _end; &end;".
Use char[] instead, as that also doesn't fall foul
of a target's .sdata optimizations.

Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 09:16:21 -07:00
Ulrich Drepper
07f9ca32a9 Fix one case of last checkin.
If the v4 lookup failed but v6 succeeded we treat this as a success.
2010-03-26 05:52:39 -07:00
Ulrich Drepper
7c9302908e Don't abort immediately on successful lookup in getaddrinfo.
When not using gethostbyname4 methods we immediately aborted the loop
over the nss modules on the first successful lookup.  While this is
almost always what is wanted the nsswitch.conf file allows to select
something different.
2010-03-26 05:40:27 -07:00
Andreas Schwab
c3dfadb87e Fix spurious UNAVAIL status is getaddrinfo 2010-03-26 05:35:50 -07:00
Ulrich Drepper
70c90289ff Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
	ChangeLog
2010-03-25 19:45:20 -07:00
Ulrich Drepper
89a4419cc3 Add support for new clocks.
Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW,
CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.
2010-03-25 04:01:33 -07:00
Andreas Schwab
34b514dff6 Fix typo in cuserid 2010-03-25 11:36:02 +01:00
Ulrich Drepper
c8727fa6e5 Fix Linux getlogin{_r,} implementation
The old implementation uses fd 0 to determine the login TTY.  This
was needed because using /dev/tty it is not possible to deduce the
login TTY.  For some time now there is the pseudo-file
/proc/self/loginuid which directly helps us to find the user.  Prefer
using this file.  It also works if stdin is closed, redirected, or
re-opened.
2010-03-24 17:02:57 -07:00
Jonathan Geisler
fd8ccb0427 calls to cuserid() can result in buffer overruns and/or overflows 2010-03-24 16:02:15 -07:00
Ulrich Drepper
085f930b8f Allow variable shift values in mmap2. 2010-03-24 14:59:43 -07:00
H.J. Lu
7d9335ecd7 Don't define __strpbrk_sse42 in static library 2010-03-24 12:16:24 -07:00
H.J. Lu
b170ff0f8f Fix sysdeps/i386/i686/multiarch/memcmp-ssse3.S 2010-03-18 11:40:46 -07:00
Ulrich Drepper
d8c47894ca Extended ELF ABI version handling only for Linux.
If the OSABI is generic we should not allow the ABI version to be nonzero.
Move all the new functionality into Linux-specific files.
2010-03-16 23:34:59 -07:00
Ulrich Drepper
8ed9a2b18b Also update Linux-specific VALID_ELF_ABIVERSION definition. 2010-03-16 14:39:45 -07:00
Ulrich Drepper
94db8db8e8 Define UMOUNT_NOFOLLOW. 2010-03-12 08:44:10 -08:00
Ulrich Drepper
b8907dfd8b Fix whitespace issues. 2010-03-10 07:28:04 -08:00
Luis Machado
fb084e5e80 power7-optimized 64-bit and 32-bit memcpy 2010-03-10 07:14:16 -08:00
David S. Miller
462a5227b0 sparc: Optimize strlen using techniques from powerpc implementation. 2010-03-09 06:42:53 -08:00
David S. Miller
2fe000dfd6 sparc32: Fix non-v9 build failure in memcpy. 2010-03-09 06:37:45 -08:00
David S. Miller
d6d1c4c87c sparc64: Fix handling of R_SPARC_TLS_LE_* relocations. 2010-03-09 03:48:24 -08:00
Ulrich Drepper
b886abfbac Fix one left over from last change to statvfs. 2010-03-07 18:22:52 -08:00
Ulrich Drepper
6e0a06fa40 Handle ext4 and logfs in statvfs functions. 2010-03-06 15:40:50 -08:00
H.J. Lu
01f1f5ee8b Pass -mtune=i686 to assembler when compiling for i686 2010-03-04 21:30:17 -08:00
Richard Guenther
e39acb1f16 Fix R_X86_64_PC32 overflow detection 2010-03-04 19:33:41 -08:00
Ulrich Drepper
356af22323 Fixups. 2010-03-04 09:16:16 -08:00
David S. Miller
65ba5b4661 sparc32: Remove unused code.
2010-03-04  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
	* sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
2010-03-04 04:25:37 -08:00
David S. Miller
605277213e sparc64: Use dbl-64/wordsize-64 math lib code.
* sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
2010-03-04 01:02:45 -08:00
Ulrich Drepper
d8c34cd19f More in.h definitions from the Linux kernel. 2010-03-03 15:37:12 -08:00
Aurelien Jarno
321029f1c3 sparc64: Fix msgrcv()
msgrcv() does not work on sparc64, as it passes the 6th argument using
the ipc kludge, while the kernel waits for a 6 arguments syscall. This
patches fixes the problem by using a sparc64 specific version of
msgrcv.c.

2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>

	* sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
2010-03-03 02:14:03 -08:00
David S. Miller
7ec1221ff7 sparc: Use ba,a,pt in PLTs and fix bugs in R_SPARC_JMP_IREL handling.
2010-03-03  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
	pass '1' for 't' argument to sparc_fixup_plt.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
	Likewise.
	* sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
	(sparc_fixup_plt): Document 't' argument.  Enable branch
	optimization and use v9 branches when possible.  Explain why we
	cannot unconditionally patch the branch into the first PLT
	instruction.
	* sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
	argument.  Use v9 branches when possible.  Explain why we can in
	fact unconditionally use a branch in the first PLT instruction
	here.
2010-03-03 02:14:02 -08:00
Roland McGrath
42488a4d31 Merge commit 'origin/davem/sparc' 2010-03-02 11:58:09 -08:00
H.J. Lu
dc21aae6c1 Fix unwind info in x86 strcmp-sse4.S 2010-02-26 19:54:50 -08:00
David S. Miller
3afd5a3b55 sparc: Add multiarch support for memset/bzero/memcpy.
2010-02-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
	* sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
	gen-as-const-headers.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
	* sysdeps/sparc/sparc64/multiarch/Makefile: New file.
	* sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
	* sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
	* sysdeps/sparc/sparc64/multiarch/memset.S: New file.
2010-02-25 23:58:51 -08:00
David S. Miller
e44f6f89da sparc: Pull bcopy/memmove out of memcpy.S implementations.
2010-02-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc32/bcopy.c: Delete.
	* sysdeps/sparc/sparc32/memmove.c: Delete.
	* sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
	* sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
	* sysdeps/sparc/sparc64/bcopy.c: Delete.
	* sysdeps/sparc/sparc64/memmove.c: Delete.
	* sysdeps/sparc/sparc64/memcopy.h: New.
	* sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
	* sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
	* sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
	* sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
	* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
2010-02-25 23:58:50 -08:00
David S. Miller
dbcaf07c32 sparc: Reimplement 64-bit aligned copy routines and remove from memcpy files.
2010-02-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
	* sysdeps/sparc/sparc64/align-cpy.S: New.
	* sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
	__align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
	* sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
	__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
	Remove.
	* sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
	__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
	Remove.
	* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
	__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
	Remove.
2010-02-25 23:58:50 -08:00
Ulrich Drepper
4a1297d761 We can use the 64-bit register versions of the double functions. 2010-02-24 20:00:30 -08:00
H.J. Lu
3093e0c713 Fix issues in x86 memcpy-ssse3-rep.S 2010-02-24 18:26:30 -08:00
H.J. Lu
a0ac24d98a Fix issues in x86 memcpy-ssse3.S 2010-02-24 18:20:57 -08:00
H.J. Lu
cc50f1a4b4 Fix issues in x86 memset-sse2.S/memset-sse2-rep.S 2010-02-24 18:11:35 -08:00
David S. Miller
34a407de96 sparc: Fix 32-bit makecontext arg passing.
test-makecontext3 fails because we fill in the argument
stack slots past the 5th using the wrong index.
2010-02-20 13:48:07 -08:00
David S. Miller
2daff75bab sparc: Fix v9 memchr with long buffer lengths.
test-memchr fails on 32-bit sparc with v9 optimized memchr because
it uses signed branch comparisons on the buffer pointers.
2010-02-20 13:48:06 -08:00
David S. Miller
5c866a8b9b Fix PLT rewrite when prelinking fails on 32-bit sparc.
When prelinking fails we have to rewrite the PLT, but the code
doing so forgets to adjust all rela->r_offset addresses by the
location of where the object was actually mapped.
2010-02-20 13:48:06 -08:00
Joseph Myers
1d204bf294 Fix PLT rewrite when prelinking fails on 64-bit sparc.
When prelinking fails we have to rewrite the PLT, but the code
doing so forgets to adjust all rela->r_offset addresses by the
location of where the object was actually mapped.
2010-02-20 13:48:05 -08:00
H.J. Lu
039c8ae6d5 Use CPUID_OFFSET instead of FEATURE_OFFSET 2010-02-18 23:11:21 -08:00
H.J. Lu
020ecba7fc Align x86 memcmp-sse4.S and fix unwind info. 2010-02-17 23:01:55 -08:00
H.J. Lu
c60bce2cdd Fix unwind info in x86 memcmp-ssse3. 2010-02-17 22:35:18 -08:00
H.J. Lu
28be6098c3 Simplify x86 strcmp-sse4 unwind info. 2010-02-17 22:27:41 -08:00
Ulrich Drepper
82abe82ad7 Fix and cleanup unwind info in x86 strcmp-ssse<F3>. 2010-02-17 22:13:55 -08:00
Ulrich Drepper
d22ae6cf50 Remove commented-out code. 2010-02-15 18:47:02 -08:00
Ulrich Drepper
6bb74d9f86 Fix up new x86 string functions. 2010-02-15 13:04:54 -08:00
H.J. Lu
904057bc17 32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2 2010-02-15 11:17:50 -08:00
Luis Machado
41288fbb78 Cleanup old obsolete PPC_REL16 checks 2010-02-12 07:55:01 -08:00
Andreas Krebbel
a3dc465852 S/390: Disable two UTF conversion instructions 2010-02-11 07:22:58 -08:00
David S. Miller
311927f1bd Sparc STT_GNU_IFUNC support 2010-02-10 07:42:17 -08:00
Luis Machado
61c9346ddc Fix POWER7 Implies 2010-02-10 07:15:01 -08:00
Ulrich Drepper
0ee5660b7c More compact unwind info. 2010-02-09 22:59:11 -08:00
Ulrich Drepper
1d7223f31a Fix i386 __mpn_lshift unwind info 2010-02-09 22:54:36 -08:00
Ulrich Drepper
029f8f41c7 Fix whitespace issues. 2010-02-09 22:46:23 -08:00
Luis Machado
0f507b6c95 power7-optimized classification functions 2010-02-09 22:42:38 -08:00
Andreas Schwab
7eb22e757e Avoid PLT call to fegetenv on s390 2010-02-09 22:34:17 -08:00
Ulrich Drepper
0cbcca89ba Whitespace and copyright year fixes. 2010-02-06 02:38:53 -08:00
H.J. Lu
70b7d00fc7 memchr overshoots on ia64 2010-02-06 02:13:56 -08:00
Andreas Schwab
03849910cd Avoid PLT calls in utmp compat wrappers on Linux/s390 2010-02-06 02:03:10 -08:00
Andreas Schwab
70da4a1826 Add new errlist compat entry for 2.12. 2010-02-06 02:02:22 -08:00
Ulrich Drepper
1712734592 Update constants for current kernels. 2010-02-03 06:55:30 -08:00
Samuel Thibault
b34e12e22c Give Hurd weak aliases for getsysstats get_* functions. 2010-01-26 17:44:58 -08:00
Andreas Schwab
e3b7670be2 Fix ____longjmp_chk for s390/s390x. 2010-01-20 07:59:30 -08:00
H.J. Lu
cff0be8849 Support __memmove_ssse3_rep when SHARED isn't defined. 2010-01-19 12:20:57 -08:00
Samuel Thibault
d924beb0f2 Define __rtld_lock_recursive_* for Hurd. 2010-01-18 14:44:22 -08:00
Ulrich Drepper
d6ac9329b3 Fix whitespace issues. 2010-01-18 12:43:47 -08:00
Ulrich Drepper
057edf90e0 memcpy for ppc/cell. 2010-01-18 12:40:29 -08:00
Andreas Schwab
f87d0dac8b Remove duplicate definitions of O_DSYNC and O_RSYNC for Linux/sparc. 2010-01-18 08:38:18 -08:00
Jakub Jelinek
64f388285e sysdeps/ieee754/ldbl-128/ fixes 2010-01-16 17:55:37 -08:00
Andreas Krebbel
7760ccced8 /390: Add runtime check for the highgprs kernel feature. 2010-01-15 09:10:44 -08:00
Andreas Krebbel
3a56ea2673 ld.so: Adjust the auxv if ld.so is directly invoked.
If a binary gets invoked by passing it as argument to ld.so the stack
still holds the auxiliary vector of ld.so when entering the _start
routine of the executable.  So the invocation via ld.so is not fully
transparent to the executable.  This causes problems if the executable
wants to scan the auxv itself.
2010-01-15 09:09:35 -08:00
Philip Prindeville
dca5d51ebf Define IPTOS_CLASS_* macros according to RFC 2474. 2010-01-14 23:28:05 -08:00
Ulrich Drepper
f69190e74a Prevent silent errors should x86-64 strncmp be needed outside libc. 2010-01-14 08:09:32 -08:00
H.J. Lu
5a7af22fbb Unroll the loop x86-64 SSE4.2 strlen. 2010-01-13 07:51:48 -08:00
Ulrich Drepper
f9a97ddaff Fix whitespace problems. 2010-01-12 11:28:17 -08:00
H.J. Lu
3af48cbdfa Optimize 32bit memset/memcpy with SSE2/SSSE3. 2010-01-12 11:22:03 -08:00
Ulrich Drepper
64c1f3af5d Fix double-inclusion problem of bits/stat.h. 2010-01-11 11:03:27 -08:00
Ulrich Drepper
33780b6d33 FIx up signal.h for XPG7. 2010-01-10 18:43:30 -08:00
Ulrich Drepper
f095bb7204 Add support for XPG7 testing.
The header conformance testing code needed extending for XPG7.  This
exposed a few bugs in the headers.  There are more changes to come.
2010-01-09 10:56:41 -08:00
Samuel Thibault
e70ffcb0fa Hurd: Fix spurious mach_port_deallocate in getcwd. 2009-12-22 11:47:13 -08:00
Martin Schwidefsky
caf512dec2 Implement handling of the needed S390 relocations. 2009-12-22 08:34:07 -08:00
Ulrich Drepper
4286fa41ed Handle AT_FDCWD in futimens. 2009-12-21 14:08:05 -08:00
Ulrich Drepper
f282f6b90a Update poll.h header for POSIX 2008. 2009-12-15 13:05:14 -08:00
H.J. Lu
2510d01ddb Define bit_SSE2 and index_SSE2. 2009-12-13 15:23:02 -08:00