OSDN Git Service
Eric Andersen [Fri, 23 May 2003 06:42:53 +0000 (06:42 -0000)]
Cope with autoconf's broken AC_FUNC_MALLOC macro, which redefines malloc as
rpl_malloc if it does not detect glibc style
returning-a-valid-pointer-for-malloc(0) behavior. This wrapper calls malloc()
as usual, but if N is zero, we allocate and return a 1-byte block instead....
sigh...
-Erik
Manuel Novoa III [Thu, 15 May 2003 21:32:31 +0000 (21:32 -0000)]
Fix (hopefully) scanf behavior for nul bytes in the stream when processing
%c, %s, and %[ specifiers. Note that scanf is undergoing rewrite so I
didn't bother optimizing this. I did run all my regression tests though.
Set EOF correctly for fmemopen on readonly streams. I really need to
check what glibc behavior is for the various open modes though.
David McCullough [Wed, 14 May 2003 13:35:27 +0000 (13:35 -0000)]
Add in a default file for m68k.
David McCullough [Wed, 14 May 2003 05:10:58 +0000 (05:10 -0000)]
Sleep was returning the wrong value because:
* nanosleep returns the remaining time, not the time slept
* nanosleep only fills out the remaining time if it returns -1 (ie., the
sleep was interrupted)
Fix from Paul Dale <pauli@snapgear.com>
Miles Bader [Thu, 8 May 2003 02:36:12 +0000 (02:36 -0000)]
(__libc_open): Fix wacky indentation.
David McCullough [Thu, 1 May 2003 05:28:43 +0000 (05:28 -0000)]
setjmp was trashing r12 which is bad and can cause apps to crash if they are
using r12. r12 is supposed to be preserved across C function calls. r0-r7
are trashable :-)
David McCullough [Tue, 29 Apr 2003 14:46:31 +0000 (14:46 -0000)]
Some small fixups for the h8 support and add the h8s platform support.
David McCullough [Tue, 29 Apr 2003 14:41:48 +0000 (14:41 -0000)]
Fixup __libc_open to use varargs and match the prototype.
On the H8 varargs are rather unusual and if you declare a function with
varargs, it had better use them or it won't work.
Eric Andersen [Tue, 29 Apr 2003 07:25:59 +0000 (07:25 -0000)]
uClibc 0.9.19 has a bug in globfree(). If the previous call to
glob(...,pglob) used the GLOB_DOOFFS flag to reserve the first
pglob->gl_offs slots of pglob->gl_pathv, globfree(pglob) would attempt
to free the objects pointed to by those slots. If those objects were not
on the heap, the system would crash.
The attached patch fixes this.
Norm
Eric Andersen [Fri, 25 Apr 2003 09:09:56 +0000 (09:09 -0000)]
Comment on glibc's MALLOC_CHECK_ support.
Eric Andersen [Wed, 23 Apr 2003 20:59:01 +0000 (20:59 -0000)]
Thierry De Corte notices that when UCLIBC_HAS_FLOAT is disabled, we must also
disable drand48, drand48_r, erand48, and erand48_r since they use floats.
Eric Andersen [Mon, 21 Apr 2003 19:07:26 +0000 (19:07 -0000)]
Fix SIGTRAP handling on arm. The defination of struct ucontext,
which was copied from glibc, is wrong. So fix it.
-Erik
Eric Andersen [Sat, 19 Apr 2003 23:35:01 +0000 (23:35 -0000)]
Patch from Marshall M. Midden:
It turns out that uClibc's syslog.c does not close sockets when
doing retries and when it exits due to errors. This patch fixes
it.
Eric Andersen [Sat, 19 Apr 2003 23:25:34 +0000 (23:25 -0000)]
Konrad Taro Eisele noticed the sparc struct stat was broken.
Fix it.
Eric Andersen [Wed, 16 Apr 2003 00:59:00 +0000 (00:59 -0000)]
Patch from Liam Girdwood to fix mips profiling when using
newer gcc versions.
Miles Bader [Wed, 2 Apr 2003 06:40:43 +0000 (06:40 -0000)]
(free_to_heap): Unlock the heap before returning in the
__UCLIBC_UCLINUX_BROKEN_MUNMAP__ case. Fix from YYang1@Winbond.com.tw.
Eric Andersen [Mon, 31 Mar 2003 16:27:18 +0000 (16:27 -0000)]
Avoid errors with buggy preprocessors
Eric Andersen [Thu, 13 Mar 2003 19:54:36 +0000 (19:54 -0000)]
Oops. Don't call strip twice
Eric Andersen [Thu, 13 Mar 2003 19:43:38 +0000 (19:43 -0000)]
resync with glibc 2.3
Eric Andersen [Tue, 11 Mar 2003 20:27:02 +0000 (20:27 -0000)]
sjhill needs to buy donuts for everyone
Eric Andersen [Tue, 11 Mar 2003 20:08:01 +0000 (20:08 -0000)]
Make it so debugging pthreads works, even with DODEBUG turned off
-Erik
Eric Andersen [Tue, 11 Mar 2003 20:07:00 +0000 (20:07 -0000)]
Minor cleanup to better sync with glibc 2.3
"Steven J. Hill" [Tue, 11 Mar 2003 16:54:43 +0000 (16:54 -0000)]
Compliance with MIPS ABI and MIPS kernel changes.
Eric Andersen [Mon, 10 Mar 2003 17:23:42 +0000 (17:23 -0000)]
Patch from Jordan Crouse to avoid potential rendering problems
Eric Andersen [Fri, 7 Mar 2003 12:39:51 +0000 (12:39 -0000)]
remove a leftover debug printf
Eric Andersen [Fri, 7 Mar 2003 12:23:11 +0000 (12:23 -0000)]
Patch from Stefan Allius
the ldd.c wasn't compilable for SuperH due to a missing ELFCLASSM define and
the readelf executable was linked with a wrong dynamic linker path. To fix
this I removed the --uclibc-use-build-dir.
The patch also fixed all the compiler warnings (-Wall -W).
Erik made a few additional changes to eliminate unused function arguments
and fixup a static variable that was was doing the wrong thing
Eric Andersen [Fri, 7 Mar 2003 12:07:13 +0000 (12:07 -0000)]
Patch from Stefan Allius:
a make install_target stops if we have some sysmlinks in the destination
target. This little patch force to install over a previous installed
uClibc version,so we will allways get a consistent uClibc installation.
Eric Andersen [Fri, 7 Mar 2003 12:05:48 +0000 (12:05 -0000)]
Patch from Stefan Allius:
fix a couple of gcc 3.3 compiler warnings in gmon.c
Eric Andersen [Thu, 6 Mar 2003 22:00:12 +0000 (22:00 -0000)]
Fixup ldd handling of multiple files
Eric Andersen [Thu, 6 Mar 2003 20:57:44 +0000 (20:57 -0000)]
more random changes
Eric Andersen [Thu, 6 Mar 2003 20:45:11 +0000 (20:45 -0000)]
/me needs to learn to proofread
Eric Andersen [Thu, 6 Mar 2003 20:41:33 +0000 (20:41 -0000)]
Make the text a bit more clear
Eric Andersen [Thu, 6 Mar 2003 16:56:02 +0000 (16:56 -0000)]
For now, leave mmap on mips using mmap1, since mmap2 seems
to have 'issues' (i.e. it doesn't work 100% properly).
-Erik
Eric Andersen [Thu, 6 Mar 2003 15:03:33 +0000 (15:03 -0000)]
Finish off gmon based profiling for powerpc
Eric Andersen [Thu, 6 Mar 2003 14:16:36 +0000 (14:16 -0000)]
Make profiling on arm work
Eric Andersen [Thu, 6 Mar 2003 13:57:31 +0000 (13:57 -0000)]
Patch from Stefan Allius to finish off the last required bits
for gmon profiling support for the SuperH target.
Eric Andersen [Thu, 6 Mar 2003 11:28:09 +0000 (11:28 -0000)]
Update website
Eric Andersen [Wed, 5 Mar 2003 10:57:14 +0000 (10:57 -0000)]
Patch from Konrad Eisele to add include/asm-generic since, at least
on sparc, this is needed by some of the include/asm files
Eric Andersen [Wed, 5 Mar 2003 10:55:31 +0000 (10:55 -0000)]
Patch from Konrad Eisele to omit -Wl,--dynamic-linker from
the gcc wrapper when not building with shared library support.
Eric Andersen [Wed, 5 Mar 2003 10:52:44 +0000 (10:52 -0000)]
Patch from Stefan Allius:
Hi Erik,
I patched the initfini.awk script, so we can build crt[in].S for the SuperH
targets with gmon-support.
The patch moves all labels into the wright sections, and add some assembler
statements to jump over them. (only activ on SH targets)
The patch also avoid any references of _GLOBAL_OFFSET_TABLE_ or *gmon_start*
in the crtn.S file. This should work on every target.
Bye Stefan
Eric Andersen [Wed, 5 Mar 2003 10:30:30 +0000 (10:30 -0000)]
The vfork system call on powerpc seems to be completely
broken. Use fork instead, per glibc behavior.
Eric Andersen [Wed, 5 Mar 2003 10:28:53 +0000 (10:28 -0000)]
Default to using fork() for vfork() when no arch specific
implementation of vfork is present.
Eric Andersen [Tue, 4 Mar 2003 20:56:01 +0000 (20:56 -0000)]
Seperate pthread debugging from uClibc debugging. They are used
for different things.
Eric Andersen [Tue, 4 Mar 2003 10:47:50 +0000 (10:47 -0000)]
Patch from Stefan Allius adding the function 'thread_self_stack'
from glibc 2.3 that is needed for pthreads to compile for SuperH.
Eric Andersen [Tue, 4 Mar 2003 10:39:05 +0000 (10:39 -0000)]
Patch from Stefan Allius to make ldd.c compile under Solaris
Eric Andersen [Tue, 4 Mar 2003 10:13:01 +0000 (10:13 -0000)]
Teach ldd to be a bit more helpful by telling you specifically
what the problem library is that is linked vs glibc.
-Erik
Eric Andersen [Tue, 4 Mar 2003 07:05:33 +0000 (07:05 -0000)]
Fix compile when profiling is disabled
Eric Andersen [Mon, 3 Mar 2003 22:01:09 +0000 (22:01 -0000)]
Fix grammar
Eric Andersen [Mon, 3 Mar 2003 20:58:42 +0000 (20:58 -0000)]
Initial effort at adding profiling support.
Eric Andersen [Mon, 3 Mar 2003 20:01:26 +0000 (20:01 -0000)]
Updates for release
Eric Andersen [Mon, 3 Mar 2003 19:31:21 +0000 (19:31 -0000)]
Update version
Eric Andersen [Mon, 3 Mar 2003 19:30:35 +0000 (19:30 -0000)]
Fix location of cvs
Eric Andersen [Mon, 3 Mar 2003 19:09:47 +0000 (19:09 -0000)]
begin preparing for release
Manuel Novoa III [Mon, 3 Mar 2003 14:32:22 +0000 (14:32 -0000)]
Remove bogus link_warning. It is meaningless and stupid. While the
previous committed patch was well-meaning, the #warning it replaced
was simply a reminder I accidently left in when implementing strcoll/wcscoll.
Besides, strcmp is completely locale invariant.
David McCullough [Mon, 3 Mar 2003 06:47:56 +0000 (06:47 -0000)]
more uClinux shared libs fixups
David McCullough [Mon, 3 Mar 2003 06:32:21 +0000 (06:32 -0000)]
fix coldfire/68000 support properly this time, ifdef logic was back to
front.
David McCullough [Mon, 3 Mar 2003 00:05:15 +0000 (00:05 -0000)]
Fix the double sub #48, should have been an add :-)
Eric Andersen [Sun, 2 Mar 2003 10:41:06 +0000 (10:41 -0000)]
cut-n-paste strikes again
Eric Andersen [Sun, 2 Mar 2003 10:32:32 +0000 (10:32 -0000)]
Add missing alias __modify_ldt
Eric Andersen [Sat, 1 Mar 2003 11:02:44 +0000 (11:02 -0000)]
Teach ldd to act just the glibc provided one (relying on the
shared lib loader to do the work) when it is possible to do
so, and only go poking about through the ELF headers when that
fails so we can still use 'ldd' on cross compiled stuff.
-Erik
Eric Andersen [Sat, 1 Mar 2003 09:12:15 +0000 (09:12 -0000)]
Patch from Jeffrey Damick:
With glibc if you do a res_init() that forces a reread of the nameservers file,
but in uClibc the res_init will not force a reread if it has already read the
file because then the nameservers value is greater than 0.
So res_init must call close_nameservers() before calling open_nameservers().
Eric Andersen [Sat, 1 Mar 2003 09:04:55 +0000 (09:04 -0000)]
Use a funky version in a probably vein attempt at preventing gdb
from dlopen()'ing glibc's libthread_db library...
Eric Andersen [Sat, 1 Mar 2003 07:49:07 +0000 (07:49 -0000)]
doh. I forgot mips can't talk to globals that early on in the
process. Fix that up too.
Eric Andersen [Sat, 1 Mar 2003 07:47:08 +0000 (07:47 -0000)]
doh. I forgot mips can't talk to globals that early on in the
process. Fix that up too.
-Erik
Eric Andersen [Sat, 1 Mar 2003 07:11:39 +0000 (07:11 -0000)]
Fix the shared library loader so we can properly debug things like pthreads.
Mips gdb support for pthreads and similar complex stuff is broken, but then it
couldn't have worked before either...
-Erik
Eric Andersen [Fri, 28 Feb 2003 15:29:47 +0000 (15:29 -0000)]
Fix a potential compile error
Eric Andersen [Fri, 28 Feb 2003 08:20:00 +0000 (08:20 -0000)]
Fixup mips pthreads
David McCullough [Fri, 28 Feb 2003 04:12:09 +0000 (04:12 -0000)]
restore the coldfire changes
Eric Andersen [Thu, 27 Feb 2003 18:13:05 +0000 (18:13 -0000)]
Major update for pthreads, based in large part on improvements
from glibc 2.3. This should make threads much more efficient.
-Erik
Eric Andersen [Thu, 27 Feb 2003 17:04:22 +0000 (17:04 -0000)]
Fix a silly bug
Eric Andersen [Thu, 27 Feb 2003 03:59:33 +0000 (03:59 -0000)]
Patch from David Airlie to fix handling of ctor/dtor stuff when used in
combination with and w/o both the nostdinc and nostdlib options.
Eric Andersen [Wed, 26 Feb 2003 02:13:56 +0000 (02:13 -0000)]
Prefer mmap2 for mips when available. Fix the mmap test.
-Erik
Eric Andersen [Wed, 26 Feb 2003 02:05:41 +0000 (02:05 -0000)]
Fixup a really stupid and terribly obvious bug that was causing
the shared lib loader on mips to puke...
-Erik
Eric Andersen [Wed, 26 Feb 2003 01:58:43 +0000 (01:58 -0000)]
Add a bunch of additional early debugg messages into the shared
lib loader to make it more obvious what is wrong when things puke
early on in the process.
-Erik
Eric Andersen [Tue, 25 Feb 2003 19:49:08 +0000 (19:49 -0000)]
Add a toolchain section. Mention Steven J. Hill's mips RPMs.
Eric Andersen [Mon, 24 Feb 2003 12:54:11 +0000 (12:54 -0000)]
Fixup some small issues that show up when large file support is disabled
David McCullough [Sun, 23 Feb 2003 23:24:44 +0000 (23:24 -0000)]
Fix FP handling alignment problems on ARM platforms without an FPU,
patch from Vadim Lebedev <vadim@7chips.com>.
Eric Andersen [Sun, 23 Feb 2003 05:39:26 +0000 (05:39 -0000)]
Some stuff I forgot to check in about a month ago...
-Erik
Miles Bader [Fri, 21 Feb 2003 10:17:43 +0000 (10:17 -0000)]
Reserve stack space for args we pass to __uClibc_main.
Miles Bader [Thu, 20 Feb 2003 09:55:34 +0000 (09:55 -0000)]
Add back in PTRACE_SINGLESTEP.
Use decimal instead of hex to agree with common/sys/ptrace.h.
Eric Andersen [Tue, 18 Feb 2003 05:48:08 +0000 (05:48 -0000)]
Fixup ioctl so we can special case powerpc silliness
Eric Andersen [Mon, 17 Feb 2003 14:40:26 +0000 (14:40 -0000)]
Mention latest update
Eric Andersen [Mon, 17 Feb 2003 14:39:48 +0000 (14:39 -0000)]
Fixup bui
Eric Andersen [Mon, 17 Feb 2003 14:19:21 +0000 (14:19 -0000)]
Patch from Stefan Allius
And at last I fixed a warning in test's Makefile. (ldso was first
added to the ALL_SUBDIRS variable in line 25):
Eric Andersen [Mon, 17 Feb 2003 14:17:30 +0000 (14:17 -0000)]
Patch from Stefan Allius:
In libc/string/wstring I replaced a '#warning ..' statement by the
link_warning macro.
Eric Andersen [Mon, 17 Feb 2003 14:16:14 +0000 (14:16 -0000)]
Patch from Stefan Allius:
I patched the link_warning macro in features.h to fix warnings like:
locale.c:358: warning: `__evoke_link_warning_localeconv' defined but not used
David McCullough [Mon, 17 Feb 2003 13:03:21 +0000 (13:03 -0000)]
updates to the uClinux-dist romfs and uClinux shared library targets.
David McCullough [Mon, 17 Feb 2003 12:59:06 +0000 (12:59 -0000)]
Use a define for the path to /etc/TZ
David McCullough [Mon, 17 Feb 2003 12:55:57 +0000 (12:55 -0000)]
Using -g when doing the initfini compilation breaks the SH4 case pretty
badly. I have removed -g for all platforms as I suspect no one wants it for
the initfini creation process.
David McCullough [Mon, 17 Feb 2003 12:20:42 +0000 (12:20 -0000)]
If floating point was enabled, setjmp would write to memory well past the
end of the buffer.
Eric Andersen [Sun, 16 Feb 2003 01:22:41 +0000 (01:22 -0000)]
Fixup powerpc syscalls to eliminate warnings with gcc-3.2, and fix
some other minor warnings.
Eric Andersen [Sat, 15 Feb 2003 23:49:41 +0000 (23:49 -0000)]
Add missing ';'s so powerpc will compile
Eric Andersen [Sat, 15 Feb 2003 21:17:10 +0000 (21:17 -0000)]
Don't just tune, use -march which implies -mcpu as well
Eric Andersen [Sat, 15 Feb 2003 09:40:16 +0000 (09:40 -0000)]
Fix a _ton_ of system call user type/kernel type translation
problems, causing user space to get scrambled hosed up results.
-Erik
David Schleef [Wed, 12 Feb 2003 22:07:38 +0000 (22:07 -0000)]
Update CVS to Debian 0.9.18-1 package
Eric Andersen [Wed, 12 Feb 2003 19:35:55 +0000 (19:35 -0000)]
Oops. Point to .18 not .17
Eric Andersen [Wed, 12 Feb 2003 15:48:15 +0000 (15:48 -0000)]
Move dev system comment
Eric Andersen [Wed, 12 Feb 2003 15:47:32 +0000 (15:47 -0000)]
Update to note dev system
Eric Andersen [Wed, 12 Feb 2003 13:15:03 +0000 (13:15 -0000)]
Minor update regarding binutils
Eric Andersen [Wed, 12 Feb 2003 13:10:00 +0000 (13:10 -0000)]
Some minor doc updates