OSDN Git Service
David McCullough [Fri, 16 Jan 2004 00:44:34 +0000 (00:44 -0000)]
Make sure we remove -fomit-frame-pointer from the ldso build. It's
inclusion will cause the loader to crash when jumping to the application.
The reason is due to the START macro having a "leave" instruction included
to fixup the stack before starting the app.
Eric Andersen [Wed, 14 Jan 2004 22:37:55 +0000 (22:37 -0000)]
Include missing errno.h header (as noted by Alan Hourihane).
Fix uninitialized pthread mutex used to lock the list of aligned
memory blocks.
Eric Andersen [Wed, 14 Jan 2004 10:31:58 +0000 (10:31 -0000)]
Use the gcc 3.4 -funit-at-a-time optimization when available
Manuel Novoa III [Wed, 14 Jan 2004 09:14:47 +0000 (09:14 -0000)]
Ok.. we need to link with libgcc.a for some archs. I haven't looked at
all cases, but the archs I've looked at do build the needed routines as
PIC so we should be ok.
Manuel Novoa III [Wed, 14 Jan 2004 06:30:59 +0000 (06:30 -0000)]
Add a dummy (always fails) wcsftime. This is needed for the libstdc++ locale
implementation to build. Later this month I'll add a functional wcsftime.
Manuel Novoa III [Tue, 13 Jan 2004 10:26:56 +0000 (10:26 -0000)]
Add another devfs subdir to the list of checked subdirs.
Eric Andersen [Tue, 13 Jan 2004 05:58:00 +0000 (05:58 -0000)]
Fixup dated comments
Manuel Novoa III [Mon, 12 Jan 2004 11:07:02 +0000 (11:07 -0000)]
Oops... Seems I forgot an else...
Eric Andersen [Fri, 9 Jan 2004 09:13:37 +0000 (09:13 -0000)]
As mjn3 noticed, 64 bit arches should select UCLIBC_HAS_LFS
Eric Andersen [Tue, 6 Jan 2004 01:05:12 +0000 (01:05 -0000)]
Some badly behaved arches fail to provide a PAGE_SIZE define
Eric Andersen [Sun, 4 Jan 2004 09:35:20 +0000 (09:35 -0000)]
Implement res_search and res_querydomain based on netbsd code,
but remove support for host aliases (the HOSTALIASES env variable)
which looks like a very bad idea.
-Erik
Eric Andersen [Sun, 4 Jan 2004 09:32:14 +0000 (09:32 -0000)]
Bump .deb version
Eric Andersen [Sun, 4 Jan 2004 05:49:55 +0000 (05:49 -0000)]
Fix paragraph seperation
Eric Andersen [Sun, 4 Jan 2004 05:46:15 +0000 (05:46 -0000)]
spell 'pthread' properly
Eric Andersen [Sun, 4 Jan 2004 05:34:35 +0000 (05:34 -0000)]
Fix grammar
Eric Andersen [Sun, 4 Jan 2004 05:32:21 +0000 (05:32 -0000)]
Update for release
Manuel Novoa III [Sun, 4 Jan 2004 01:29:01 +0000 (01:29 -0000)]
My mistake. We do need some weak pthread_* funcs. But we were previously
missing one in the glibc abi, and including a number of extras (which I
left in commented).
Unfortunately, this brings back the perl pthread bug. Fixing the incorrect
weaks in libpthread wasn't sufficient to escape the shared loader bug. :-(
Eric Andersen [Sat, 3 Jan 2004 11:17:11 +0000 (11:17 -0000)]
Fix up the news a bit
Eric Andersen [Sat, 3 Jan 2004 11:06:48 +0000 (11:06 -0000)]
Update for release
Eric Andersen [Sat, 3 Jan 2004 10:18:08 +0000 (10:18 -0000)]
Be sure to fully clean 2.6 kernel headers on 'make clean'
Eric Andersen [Sat, 3 Jan 2004 10:10:37 +0000 (10:10 -0000)]
Add ldflags where needed
Eric Andersen [Sat, 3 Jan 2004 08:49:04 +0000 (08:49 -0000)]
And just like that, clone is now fixed.... Previously the
error handling code was mostly broken.
-Erik
Eric Andersen [Sat, 3 Jan 2004 05:54:49 +0000 (05:54 -0000)]
oops
Eric Andersen [Sat, 3 Jan 2004 05:52:34 +0000 (05:52 -0000)]
Minor changes
Eric Andersen [Fri, 2 Jan 2004 23:35:10 +0000 (23:35 -0000)]
A useful/useless little malloc time test
Eric Andersen [Fri, 2 Jan 2004 23:34:13 +0000 (23:34 -0000)]
Peter S. Mazinger writes:
Hello Erik!
I have made some cosmetical changes to the files, removed the added
SCRT=-fPIC option from building the crt0.S file (but it is a requirement
to build them with -fPIC), and changed some comments. I have left the
ldso.c patch with PIE_SUPPORT ifdefs, but consider applying it w/o them
(see some earlier comment from PaX Team on this issue, as it is considered
a bug). To have it work correctly, you'll also need removing
COMPLETELY_PIC.
One thing is missing: PIE_SUPPORT should be usable only for i386 (for
now).
Also added the support for propolice protection (that works for me and
catches memcpy/strcpy attacks (but needs a special gcc version).
Thanks, Peter
Eric Andersen [Fri, 2 Jan 2004 23:24:17 +0000 (23:24 -0000)]
Minor update of the debian packaging stuff
Eric Andersen [Fri, 2 Jan 2004 23:10:37 +0000 (23:10 -0000)]
Remove remnants of the gcc wrapper
Eric Andersen [Fri, 2 Jan 2004 23:07:57 +0000 (23:07 -0000)]
Do not make tests depend on CC, since we no longer build a wrapper.
Eric Andersen [Fri, 2 Jan 2004 12:02:24 +0000 (12:02 -0000)]
Bump version, cleanup whitespace
Eric Andersen [Fri, 2 Jan 2004 11:59:28 +0000 (11:59 -0000)]
Cope with 2.6.x headers
Eric Andersen [Fri, 2 Jan 2004 11:12:16 +0000 (11:12 -0000)]
rohde at soap dot adsl dot dk writes:
The macro to do some floating point checks in libc/sysdeps/linux/powerpc/setjmp.S is incorrect.
The following should fix it.
Same applies to uClibc/libc/sysdeps/linux/powerpc/__longjmp.S
Hope there aren't other files I've missed :)
Eric Andersen [Fri, 2 Jan 2004 10:52:38 +0000 (10:52 -0000)]
rohde at soap dot adsl dot dk writes:
The macro to do some floating point checks in libc/sysdeps/linux/powerpc/setjmp.S is incorrect.
The following should fix it.
Manuel Novoa III [Fri, 2 Jan 2004 09:21:33 +0000 (09:21 -0000)]
Fix __freadable and __fwritable... were using '~' instead of '!'. (ugh)
Fix (hopefully) a potential problem with failed freopen() calls. The
fix isn't tested since I've been working on the replacement stdio
core code which will go in after the next release.
Manuel Novoa III [Fri, 2 Jan 2004 09:20:33 +0000 (09:20 -0000)]
Oops... temporarily support the old stdio code.
Manuel Novoa III [Fri, 2 Jan 2004 08:47:22 +0000 (08:47 -0000)]
The checking Erik added seems to be unnecessary. Without it, I am not
seeing any LTP failures.
Manuel Novoa III [Fri, 2 Jan 2004 08:44:58 +0000 (08:44 -0000)]
Redo the exec functions to comply with SUSv3.
Manuel Novoa III [Fri, 2 Jan 2004 07:11:35 +0000 (07:11 -0000)]
Rewrite popen for SUSv3 compliance.
Added a list of popen()'d to store pids and use waitpid() in pclose().
Loop on waitpid() failure due to EINTR as required.
Close parent's popen()'d FILEs in the {v}fork()'d child.
Fix failure exit code for failed execve().
Manuel Novoa III [Fri, 2 Jan 2004 07:01:13 +0000 (07:01 -0000)]
Minor fix from upstream glibc.
Manuel Novoa III [Fri, 2 Jan 2004 07:00:29 +0000 (07:00 -0000)]
Kept the same approach, but rewrote the code for the most part.
Fixed some minor issues plus (as I recall) one SUSv3 errno case.
Eric Andersen [Wed, 31 Dec 2003 12:13:27 +0000 (12:13 -0000)]
Fir errno return when the file/path is NULL or points to an empty string.
-Erik
Eric Andersen [Wed, 31 Dec 2003 11:50:08 +0000 (11:50 -0000)]
Add extra checks for sigprocmask and rt_sigprocmask syscalls.
The rt_sigprocmask syscall has broken error handling in 2.4.x
kernels, while the sigprocmask syscall appears to get things
right. Regardless we should be extra careful, and add these
checks.
Eric Andersen [Tue, 30 Dec 2003 10:57:16 +0000 (10:57 -0000)]
Fix the manditory typo in my last minute untested fix.
-Erik
Eric Andersen [Tue, 30 Dec 2003 10:45:45 +0000 (10:45 -0000)]
Make sleep behave itself properly inthe presence of SIGCHLD
Eric Andersen [Tue, 30 Dec 2003 10:40:49 +0000 (10:40 -0000)]
Rework malloc. The new default implementation is based on dlmalloc from Doug
Lea. It is about 2x faster than the old malloc-930716, and behave itself much
better -- it will properly release memory back to the system, and it uses a
combination of brk() for small allocations and mmap() for larger allocations.
-Erik
Eric Andersen [Tue, 30 Dec 2003 01:41:14 +0000 (01:41 -0000)]
Update and restore malloc-simple. Slow as molasses, but trivially
simple and releases memory immediately when asked to do so.
-Erik
Eric Andersen [Sun, 28 Dec 2003 08:25:16 +0000 (08:25 -0000)]
Fix a really dumb bug introduced in version 1.4 of this file (a patch for ipv6
support) which could cause things like EOF and read errors while reading
/etc/services to always return a TRY_AGAIN. The perl test suite would alloc a
larger buffer and try again until all memory was exhausted. When we get a read
error, or EOF, it means we didn't get what we wanted, and so we should return
an error. Doing so fixes the failing perl 5.8.2 test.
-Erik
Eric Andersen [Sun, 28 Dec 2003 07:41:24 +0000 (07:41 -0000)]
Fix whitespace
Eric Andersen [Sun, 28 Dec 2003 00:25:31 +0000 (00:25 -0000)]
remove unused file
Manuel Novoa III [Sat, 27 Dec 2003 23:36:23 +0000 (23:36 -0000)]
Handle the app_fini stuff in exit without requiring atexit().
This avoids pulling in all the malloc/free code for a simple true/false app.
Manuel Novoa III [Sat, 27 Dec 2003 23:30:50 +0000 (23:30 -0000)]
Fix a long-standing bug with pthreads. A couple of linuxthreads files
were including libc-lock.h which had a bunch of weak pragmas. Also,
uClibc supplied a number of no-op weak thread functions even though
many weren't needed. This combined result was that sometimes the
functional versions of thread functions in pthread would not override
the weaks in libc.
While fixing this, I also prepended double-underscore to all necessary
weak thread funcs in uClibc, and removed all unused weaks.
I did a test build, but haven't tested this since these changes are
a backport from my working tree. I did test the changes there and
no longer need to explicitly add -lpthread in the perl build for
perl to pass its thread self tests.
Eric Andersen [Mon, 22 Dec 2003 11:22:59 +0000 (11:22 -0000)]
oops
Eric Andersen [Mon, 22 Dec 2003 11:19:49 +0000 (11:19 -0000)]
implement the worthless cuserid() function we claim to support.
This isn't in SuSv3, but is expected by at least some apps such
as emacs...
Eric Andersen [Mon, 22 Dec 2003 10:47:04 +0000 (10:47 -0000)]
In unistd.h, getpgrp() is redirected to __getpgid(), but
we did not have a __getpgid(). Fix that.
Eric Andersen [Mon, 22 Dec 2003 09:17:19 +0000 (09:17 -0000)]
That was awfully stupid.
Eric Andersen [Mon, 22 Dec 2003 08:56:37 +0000 (08:56 -0000)]
Use 'sed -i -e' rather than 'sed -ie' since we don't want
to leave backup files with "e" appended scattered all over
the place.
Eric Andersen [Mon, 22 Dec 2003 08:53:21 +0000 (08:53 -0000)]
Update the config used when building a .deb
Eric Andersen [Fri, 19 Dec 2003 11:45:21 +0000 (11:45 -0000)]
dev systems updated
Eric Andersen [Wed, 17 Dec 2003 18:34:15 +0000 (18:34 -0000)]
Use PAGE_SIZE rather than hard coding 4096
Eric Andersen [Wed, 17 Dec 2003 08:07:14 +0000 (08:07 -0000)]
Patch from Paul Mundt <lethal@linux-sh.org>:
Here's the patch for the ldso bits for sh64. This is still in need of a bunch
of debugging, testing, etc. and is really only being submitted for general
completeness. This assumes that the previous patches I've submitted have
already been applied.
I plan on playing with this and buildroot some more later, as I'd definitely
like to see buildroot images for sh64.
Eric Andersen [Wed, 17 Dec 2003 08:05:44 +0000 (08:05 -0000)]
Patch from Paul Mundt <lethal@linux-sh.org>:
For sh64 we need implicit access to the symtab, primarily to get at the
->st_other value. This presently isn't possible, as PERFORM_BOOTSTRAP_RELOC()
is invoked as such:
PERFORM_BOOTSTRAP_RELOC(rpnt, reloc_addr, symbol_addr, load_addr);
while we can easily get the symtab_index value from rpnt->r_info, this still
doesn't buy us easy access to the actual table. As such, I've modified
PERFORM_BOOTSTRAP_RELOC() to take an additional SYMTAB argument. Most
architectures aren't going to care about this, but unfortunately we don't
have any other options for sh64.
The following patch fixes up the API for what we need for sh64, and updates
the other architectures appropriately.
Eric Andersen [Wed, 17 Dec 2003 07:57:32 +0000 (07:57 -0000)]
Patch from Paul Mundt <lethal@linux-sh.org>:
The subject says it all.. optimized memset/memcpy/strcpy, lifted from SuperH's
glibc tree.
Eric Andersen [Wed, 17 Dec 2003 06:41:20 +0000 (06:41 -0000)]
When I switched from using stack allocated space for printf, I missed a case
where a sizeof(foo) was changed to the sizeof a pointer. This caused
_dl_printf to complain a lot when debug is enabled (which itself revealed a bug
since it should have exited on buffer overflow), and let me to find another
bug, where memory failures would try to recursively call _dl_printf....
What a mess.
Eric Andersen [Wed, 17 Dec 2003 04:23:42 +0000 (04:23 -0000)]
Add in the axis network cameras
Eric Andersen [Tue, 16 Dec 2003 08:00:28 +0000 (08:00 -0000)]
Add LEAF Bering-uClibc
Eric Andersen [Tue, 16 Dec 2003 07:11:11 +0000 (07:11 -0000)]
fix grammer such it is possible to understand what is written...
Eric Andersen [Tue, 16 Dec 2003 06:47:28 +0000 (06:47 -0000)]
Update for release (no really this time ;-)
Eric Andersen [Tue, 16 Dec 2003 06:45:49 +0000 (06:45 -0000)]
Update the website
Manuel Novoa III [Sun, 14 Dec 2003 23:52:57 +0000 (23:52 -0000)]
Link ldconfig with the appropriate libraries.
Manuel Novoa III [Sun, 14 Dec 2003 23:51:30 +0000 (23:51 -0000)]
Fix some dst issues in _time_mktime().
Normalize the tm_isdst value to -1, 0, or 1.
If no dst for this timezone, then reset tm_isdst to 0.
Manuel Novoa III [Sun, 14 Dec 2003 19:10:23 +0000 (19:10 -0000)]
Fix a couple of 'declaration after statement' errors.
Eric Andersen [Thu, 11 Dec 2003 08:18:42 +0000 (08:18 -0000)]
fix a cut-n-paste typo
Eric Andersen [Thu, 11 Dec 2003 07:55:13 +0000 (07:55 -0000)]
add image for validator
Eric Andersen [Thu, 11 Dec 2003 07:54:56 +0000 (07:54 -0000)]
fixup some silly html bugs
Eric Andersen [Thu, 11 Dec 2003 07:42:05 +0000 (07:42 -0000)]
mjn3 found a url for the darwin C lib
Eric Andersen [Thu, 11 Dec 2003 07:41:48 +0000 (07:41 -0000)]
more minor cleanups
Eric Andersen [Thu, 11 Dec 2003 07:16:11 +0000 (07:16 -0000)]
Rework the website
Eric Andersen [Mon, 8 Dec 2003 21:18:40 +0000 (21:18 -0000)]
Prepare for uClibc 0.9.24 release
Eric Andersen [Fri, 5 Dec 2003 20:39:51 +0000 (20:39 -0000)]
Paul Mundt <lethal@linux-sh.org> writes:
This patch adds the libpthread backend bits for sh64. As noted previously,
we can't inline things like the testandset() in pt-machine.h as we need to
use a completely different ISA / CFLAGS in order for this to work.
As a result, this patch is somewhat of a RFC as well to see what people think
of the libpthread/linuxthreads/sysdeps Makefile approach, etc. The approach
I've taken currently has been to provide a sysdeps/Makefile with a note that
TARGET_ARCHs that want build rules can simply add themselves into the list of
matching architectures to add to the subdir rule for. This probably isn't
the cleanest solution, but it's quite transparent and works quite well.
Eric Andersen [Fri, 5 Dec 2003 20:24:26 +0000 (20:24 -0000)]
move _dl_fixup so staticly linked apps using dlopen have a
chance of actually working
Manuel Novoa III [Thu, 4 Dec 2003 22:57:32 +0000 (22:57 -0000)]
Fix infinite loop in putgrent (forgotten increment).
Eric Andersen [Thu, 4 Dec 2003 22:07:51 +0000 (22:07 -0000)]
Fix arm profiling support, which was accidentally removed
Eric Andersen [Thu, 4 Dec 2003 18:25:36 +0000 (18:25 -0000)]
Set the default stdio buffer size to 4096, rather then 256.
256 is fine of course, but many applications use this value
and expect it to be larger.
Manuel Novoa III [Thu, 4 Dec 2003 06:37:34 +0000 (06:37 -0000)]
Don't download the local data if we have it already.
Manuel Novoa III [Thu, 4 Dec 2003 06:36:52 +0000 (06:36 -0000)]
Building of iconv.o was accidently always disabled.
Also, build the iconv app in utils.
Eric Andersen [Wed, 3 Dec 2003 23:38:43 +0000 (23:38 -0000)]
Henrik Grindal Bakken writes:
The patch touches a minor (well, not that minor, but perhaps only
rarely encountered) bug in the powerpc dynamic linker.
The problem is that addi is called in inline assembly, but there is no
restriction on the second argument. In powerpc assembler, if the
second argument to addi is r0, it is taken as the value 0, not the
contents of r0. This happened to me, making the stack pointer 0 on
the invocation on the application.
The patch is against 0.9.22, but there didn't seem to be any changes
to the relevant section in 0.9.23.
Eric Andersen [Wed, 3 Dec 2003 23:28:33 +0000 (23:28 -0000)]
Joakim Tjernlund writes:
This is just a wild guess, but you could try this to see if it fixes
Richards problem:
Eric Andersen [Wed, 3 Dec 2003 23:12:14 +0000 (23:12 -0000)]
Lethal noticed that the generated file gmon-start.S was not
being cleaned up.
Eric Andersen [Wed, 3 Dec 2003 23:07:50 +0000 (23:07 -0000)]
Patch from lethal, adding syscall() to the sh64 port
Eric Andersen [Wed, 3 Dec 2003 23:04:01 +0000 (23:04 -0000)]
Paul Mundt <lethal@linux-sh.org> writes:
Nothing overly interesting here, this renames Hitachi/Mitsubishi to Renesas
for the relevant platforms (in this case, h8, sh, and m32r). The same changes
have already been going on in gcc/binutils/gdb/glibc/etc.
Eric Andersen [Wed, 3 Dec 2003 21:35:01 +0000 (21:35 -0000)]
Eliminate some static buffers based on a patch from Tobias Anderberg
Eric Andersen [Wed, 3 Dec 2003 20:36:49 +0000 (20:36 -0000)]
remove some garbage
Eric Andersen [Wed, 3 Dec 2003 20:12:45 +0000 (20:12 -0000)]
Rob McMullen writes:
There is code in ldconfig that checks to see if a shared library is named
either ``lib*'' or ``ld-*'' before ldconfig -l will work on it. gawk uses this
feature of ldconfig to make /lib/rcscripts/filefuncs.so, so the build fails.
Eric Andersen [Wed, 3 Dec 2003 02:35:36 +0000 (02:35 -0000)]
force enable FORCE_SHAREABLE_TEXT_SEGMENTS for sh4
Eric Andersen [Tue, 2 Dec 2003 23:16:59 +0000 (23:16 -0000)]
Disable pthreads for sh64 for the time being (since it is not
currently supported)
Manuel Novoa III [Tue, 2 Dec 2003 20:37:08 +0000 (20:37 -0000)]
Include Rules.mk for consistency. Trying not to was simply too painful.
Manuel Novoa III [Tue, 2 Dec 2003 19:06:32 +0000 (19:06 -0000)]
Add a syscall() implementation using a hacked version of the syscall6 macro.
Untested, but syscall() is needed by busybox for pivot_root at least.
Eric Andersen [Tue, 2 Dec 2003 17:59:06 +0000 (17:59 -0000)]
Add function versions of ntohl and friends
Eric Andersen [Tue, 2 Dec 2003 17:58:24 +0000 (17:58 -0000)]
Avoid a potentially undefined operation with a veriable++ in a macro
Manuel Novoa III [Tue, 2 Dec 2003 04:58:41 +0000 (04:58 -0000)]
Put in a dummy reference to main so busybox will link.