| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
The INLINE_SYSCALL_NCS() macro was using "res" and "err" as local variable
names, but this caused conflicts with some code (like clock_getres) whose
arguments were named the same.
libc/sysdeps/linux/common/clock_getres.c: In function 'clock_getres':
libc/sysdeps/linux/common/clock_getres.c:15: warning: 'res' is used uninitialized in this function
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
If an arch (like alpha and others) have no ldso support at all, then there
is no point in attempting to walk loaded modules in the dl-* helper funcs.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
The latest sanitized linux kernel headers no longer export asm/elf.h, so do
not rely on it anymore.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
Tested basic functionality with coreutils and things seem to work. At
least gives us a basis to jump from.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
The latest alpha Linux kernel defines __NR_fdatasync like everyone else and
deprecates the older __NR_osf_fdatasync, so support that setup.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
This syncs the dirent related functions with the glibc behavior -- rather
than take void pointers everywhere, make the struct dirent pointers
explicit in the API. After all, the functions themselves will cast the
pointers to a dirent structure, so if it isn't as expected, people will
crash.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
| |
Avoid gcc warnings about #if statements with defines that aren't defined.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
| |
Reported-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This patch is a uClibc equivalent of
<http://sourceware.org/ml/libc-ports/2008-11/msg00006.html>, to
compute all syscall arguments on ARM in temporary variables before
loading them into register variables. The principle is as for that
glibc patch; the problem I actually observed was a GCC internal
compiler error building ld.so for Thumb-2.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
| |
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
| |
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
| |
|
|
|
|
|
|
| |
Avoid including akefile.commonarch in each Makefile.arch.
Include it instead from Makefile.in just after the arch specific
Makefile.arch
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
| |
|
|
|
|
|
|
|
|
| |
Signed-off-by: Hideo Saito <saito@densan.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
See Linux Kernel commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e08b954c9a140f2062649faec72514eb505f18c3
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
| |
|
|
| |
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cherry picked these commits:
afdfa59588: Do not install libc-XXX.h files
fb863f7592: Make HARDWIRED_ABSPATH a config option
e0c8160a38: Allow people to run hostutils targets without .config
e0da861a29: Don't rely on features.h
ac1087a727: Denis's resolv.c cleanup
Pulled out the thread local __res_state in resolv.
Will reapply it in a future commit.
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
Declare common NCS (non-constant syscall) variants and convert the existing
ports over to this.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
Ports missing INLINE_SYSCALL() support need to get fixed, so drop the cruft
keeping them alive since it no longer works with the unification.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
| |
Unify all the common syscall defines in syscalls-common.h and scrub all
the duplicated code from relevant ports. This should also make converting
existing ports to INLINE_SYSCALL() much easier as they don't have to get
lost in all the unrelated noise, as well as creating new ports.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
| |
Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
| |
The test here is a constant expression and will compile out.
For platforms that don't need the shift the code gets slightly smaller
and simpler, for those that do the result is unchanged.
Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
| |
Once again all of these reduce the noise from gcc-4.4.
Replaces a few more (USE_TLS && HAVE___THREAD) with USE___THREAD while we need
to mess with them for this anyhow.
Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
This cuts down on a lot of noise from gcc-4.4
Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The __syscall_error() function stores the errno value in the edx register
before invoking the __set_errno() macro. When using the pthread library
this macro calls thread_self() to determine the errno location, which might
clobber the edx register. The errno value must be stored in a "real"
variable so the compiler can take care of saving/restoring it if necessary.
Signed-off-by: Ingo van Lil <inguin@gmx.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
| |
Make sure each arch has the same complete list to make comparing between
them easier.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
| |
The comments on register usage in ARM memcpy had dest and src the
wrong way round; this patch (originally from Mark Shinwell) corrects
this and adds a note on the return value.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
| |
Many Thumb-2 instructions cannot use sp or pc as operands, and the
assembler now diagnoses these. setjmp had one such instruction, movs;
this patch changes it to mov.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
| |
When an IT block was changed from having two instructions to having
one, the IT instruction at the start of the block was not updated,
causing memcpy to fail to assemble for Thumb-2; this patch makes the
obvious fix.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The ARM EABI has a document CLIBABI specifying various __aeabi_*
functions and variables to be provided for the use of portable objects
that can be linked with different EABI-conforming C libraries.
__aeabi_stdin, __aeabi_stdout and __aeabi_stderr were missing in
uClibc; this patch (originally from Nathan Froyd and for glibc) adds
them.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
The error message should output "fromcode -> tocode" rather than
"tocode -> fromcode". Seems to be a typo due to the order of the func
called:
iconv_t iconv_open(const char *tocode, const char *fromcode);
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Rather than ripping out the default output format from the linker, include
the big/little endian alternatives for the people who link with bi-endian
toolchains.
URL: http://lists.uclibc.org/pipermail/uclibc/2009-June/042595.html
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
| |
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
| |
|
|
|
| |
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
| |
|
|
|
|
|
|
|
| |
The POSIX waitid() takes 4 args, but the Linux one takes 5 args, so make
sure we stuff the 5th arg with a NULL. Otherwise garbage gets randomly
passed up and considering this is a pointer, that's baaaad.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
| |
Also get rid of warning in sparc sigaction
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
| |
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
| |
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
| |
This brings sparc inline with other archs with nptl support
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
| |
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
| |
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
| |
|
|
|
|
|
|
|
| |
This will generate a Scrt1.o that is linked to executabled
when compiled as PIE code (position independent executable) without
requiring relocation in .text section (not allowed on uclibc/sh4).
Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://kraj@svn.uclibc.org/svn/trunk/uClibc
........
r26046 | aldot | 2009-04-09 10:48:17 -0700 (Thu, 09 Apr 2009) | 2 lines
- fix typo
........
r26062 | austinf | 2009-04-10 17:08:47 -0700 (Fri, 10 Apr 2009) | 4 lines
sparc also needs CONSTANT_STRING_GOT_FIXUP for doing debug printing in ldso
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
........
r26066 | austinf | 2009-04-11 12:30:04 -0700 (Sat, 11 Apr 2009) | 5 lines
for sparc v8 MAGIC1 was defined incorrectly
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
........
r26078 | vapier | 2009-04-12 17:06:40 -0700 (Sun, 12 Apr 2009) | 1 line
make sure to block all signals when calling daemon() to prevent delivery while the parent is sharing the stack
........
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://svn.uclibc.org/svn/trunk/uClibc
........
r25971 | vapier | 2009-04-05 23:40:57 -0700 (Sun, 05 Apr 2009) | 1 line
apply getline() fix from linux kernel
........
r26002 | vapier | 2009-04-06 22:52:48 -0700 (Mon, 06 Apr 2009) | 1 line
implement daemon() using clone() on no-mmu systems as suggested by Jamie Lokier
........
|