OSDN Git Service
Eric Andersen [Sat, 2 Nov 2002 16:24:12 +0000 (16:24 -0000)]
update all the Config files for the various arches so they work with the new
config system. Hopefully I got everything here correct...
-Erik
Eric Andersen [Sat, 2 Nov 2002 14:58:18 +0000 (14:58 -0000)]
Update TODO items
Eric Andersen [Sat, 2 Nov 2002 04:09:13 +0000 (04:09 -0000)]
A few cosmetic adjustments, and fixup the makefile a bit
Eric Andersen [Sat, 2 Nov 2002 04:03:47 +0000 (04:03 -0000)]
Fix PIC configuration, so shared libraries once again work
-Erik
Eric Andersen [Sat, 2 Nov 2002 01:47:55 +0000 (01:47 -0000)]
It looks like I lost DEVEL_TOOL_PREFIX. Put it back.
-Erik
Manuel Novoa III [Fri, 1 Nov 2002 22:56:45 +0000 (22:56 -0000)]
Fix a stupid bug.
Manuel Novoa III [Fri, 1 Nov 2002 21:44:25 +0000 (21:44 -0000)]
Reworked setlocale() return values and locale arg processing to
be more like glibc. Applications expecting to be able to
query locale settings should now work... at the cost of almost
doubling the size of the setlocale object code.
Fixed a bug in the internal fixed-size-string locale specifier code.
Manuel Novoa III [Fri, 1 Nov 2002 21:43:07 +0000 (21:43 -0000)]
Add a few more entries.
Manuel Novoa III [Fri, 1 Nov 2002 21:40:30 +0000 (21:40 -0000)]
Work around glibc brain-damage regarding nl_langinfo and {mon_}grouping
entries.
Eric Andersen [Fri, 1 Nov 2002 14:18:44 +0000 (14:18 -0000)]
Fix udhcp link
Eric Andersen [Fri, 1 Nov 2002 02:51:00 +0000 (02:51 -0000)]
Don't assume i386
Eric Andersen [Thu, 31 Oct 2002 23:26:31 +0000 (23:26 -0000)]
Make it so arch specific stuff can be simpler. Initial attempt at
making CPU_CFLAGS, which should allow things to be optimized per-CPU
and/or per-system.
-Erik
Eric Andersen [Thu, 31 Oct 2002 23:20:35 +0000 (23:20 -0000)]
Oops. Kill generated binaries.
Eric Andersen [Thu, 31 Oct 2002 20:08:26 +0000 (20:08 -0000)]
Skip the dependancy on .config for now
Eric Andersen [Thu, 31 Oct 2002 20:06:14 +0000 (20:06 -0000)]
Fix a lingering reference to Config
-Erik
Eric Andersen [Thu, 31 Oct 2002 20:04:06 +0000 (20:04 -0000)]
Allow 'make clean' on the test stuff to work with the new config system.
-Erik
Eric Andersen [Thu, 31 Oct 2002 20:01:23 +0000 (20:01 -0000)]
Don't force gcc 3.2 on the world
-Erik
Eric Andersen [Thu, 31 Oct 2002 18:20:21 +0000 (18:20 -0000)]
Ok, this commit is _huge_ and its gonna change the world. I've
been working on a new config system on and off for about 6 months
now, but I've never been fully satisfied. Well, I'm finally am
happy with the new config system, so here it is. This completely
removes the old uClibc configuration system, and replaces it with
an entirely new system based on LinuxKernelConf, from
http://www.xs4all.nl/~zippel/lc/
As it turns out, Linus has just merged LinuxKernelConf into Linux
2.5.45, so it looks like I made the right choice.
I have thus far updated only x86. I'll be updating the other
architectures shortly.
-Erik
Eric Andersen [Thu, 31 Oct 2002 12:45:05 +0000 (12:45 -0000)]
Ignore generated stuff
Eric Andersen [Thu, 31 Oct 2002 12:43:21 +0000 (12:43 -0000)]
Add a simple realloc test
-Erik
Eric Andersen [Thu, 31 Oct 2002 11:54:22 +0000 (11:54 -0000)]
Fixup script to avoid potential spurious whining over empty object files.
-Erik
Eric Andersen [Wed, 30 Oct 2002 20:53:18 +0000 (20:53 -0000)]
Use '#ifdef __linux__' not '#ifdef linux'
Eric Andersen [Wed, 30 Oct 2002 06:52:34 +0000 (06:52 -0000)]
Use a nifty macro to make testing gcc features simpler
and easier to read.
-Erik
Manuel Novoa III [Tue, 29 Oct 2002 18:59:19 +0000 (18:59 -0000)]
Fix a couple of 'restrict' bugs in mbstowcs and wcstombs.
Eric Andersen [Tue, 29 Oct 2002 12:10:10 +0000 (12:10 -0000)]
Fix a silly typo for Manuel
-Erik
Eric Andersen [Tue, 29 Oct 2002 12:00:28 +0000 (12:00 -0000)]
For now, comment out the broken part
Eric Andersen [Tue, 29 Oct 2002 11:25:10 +0000 (11:25 -0000)]
Remove my horrible SH hack infavor of this fix for initfini.awk from
Stefan Allius <allius@atecom.com>, which does a better job.
Eric Andersen [Tue, 29 Oct 2002 11:21:35 +0000 (11:21 -0000)]
A patch from Arne Jonsson <arne.jonsson@i3micro.com>:
Attached are the changes we think is necessary in order to use user
defined stacksizes for each thread. When testing I forgot to lower the
PTHREAD_STACK_MIN to the lowest value used for the stacks, this caused
stranged reboots.
As said before, we are using uClinux 2.0.38 on a ARM7TDMI.
Eric Andersen [Tue, 29 Oct 2002 05:28:15 +0000 (05:28 -0000)]
Add in a horrible hack that seems necessary for the Hitachi
SH processors to work properly.
-Erik
Manuel Novoa III [Tue, 29 Oct 2002 01:47:39 +0000 (01:47 -0000)]
Fix a problem in vasprintf (reported by vodz a while back) when built
without custom stream support. In that case, it is necessary to do
a va_copy. Note: The affected code is not built in the stock config.
Also, make sure each va_copy has a matching va_end, as required by C99.
Manuel Novoa III [Mon, 28 Oct 2002 21:29:21 +0000 (21:29 -0000)]
ANSI/ISO C99 requires assert() to write to stderr. This means that
writing to STDERR_FILENO is insufficient, as the user could freopen
stderr. It is also insufficient to output to fileno(stderr) since
this would fail in the custom stream case. I didn't remove the
old code though, as it doesn't use stdio stream functionality
and is useful in debugging the stdio code.
Manuel Novoa III [Mon, 28 Oct 2002 19:01:15 +0000 (19:01 -0000)]
Allow timezone info to be specified in a file... /etc/TZ. Turned on by
default for now. From the comments...
* Defining __TIME_TZ_FILE causes tzset() to attempt to read the TZ value
* from the file /etc/TZ if the TZ env variable isn't set. The file contents
* must be the intended value of TZ, followed by a newline. No other chars,
* spacing, etc is allowed. As an example, an easy way for me to init
* /etc/TZ appropriately would be: echo CST6CDT > /etc/TZ
Also optimized timezone setting when the timezone string hasn't changed,
as well as fixed a minor buglet wrt SUSv3-allowed chars in TZ std and
dst fields.
Miles Bader [Mon, 28 Oct 2002 08:34:38 +0000 (08:34 -0000)]
Define TOPDIR to be just `.' when invoking gen_bits_syscall_h.sh, since
we've already chdir'ed to $(TOPDIR).
Miles Bader [Mon, 28 Oct 2002 08:33:08 +0000 (08:33 -0000)]
Add appropriate -I options so that any files included by unistd.h are
found correctly.
Tweak the whitespace of the generated file.
Eric Andersen [Fri, 25 Oct 2002 15:00:40 +0000 (15:00 -0000)]
Fixup depends
Eric Andersen [Fri, 25 Oct 2002 14:53:37 +0000 (14:53 -0000)]
Put it back the way it was. Sigh.
Eric Andersen [Fri, 25 Oct 2002 14:21:29 +0000 (14:21 -0000)]
Sigh. Lets not use LD to link, or we lose the INTERP field.
-Erik
Eric Andersen [Fri, 25 Oct 2002 14:01:49 +0000 (14:01 -0000)]
Doh. Add a missing #include to interp.c. I wonder why it used to
work? Perhaps the wrapper bug miles fixed? Regardless this is very
much needed.
-Erik
Eric Andersen [Fri, 25 Oct 2002 13:52:23 +0000 (13:52 -0000)]
Overwriting the crt1.o link is fine
Eric Andersen [Fri, 25 Oct 2002 13:28:29 +0000 (13:28 -0000)]
Be nicer to gcc -- add a link for crt1.o
Eric Andersen [Fri, 25 Oct 2002 12:12:37 +0000 (12:12 -0000)]
Actually install libdl.a
-Erik
Eric Andersen [Wed, 23 Oct 2002 06:49:32 +0000 (06:49 -0000)]
A patch from Arne Jonsson <arne.jonsson@i3micro.com> to allow
uClibc's libpthread to run on linux 2.0.x kernels which lack
poll() and therefore must use select() instead.
Miles Bader [Wed, 23 Oct 2002 05:06:03 +0000 (05:06 -0000)]
Make `-nostdlib' and `-nodefaultlibs' work correctly.
Eric Andersen [Tue, 22 Oct 2002 07:13:57 +0000 (07:13 -0000)]
When UNIX98PTY_ONLY was false, but Unix 98 ptys were in fact working and
functional, everything would succeed but then we would return a failure due to
a silly logic bug. This patch fixes it so things will work correctly
regardless of the UNIX98PTY_ONLY setting.
-Erik
Eric Andersen [Mon, 21 Oct 2002 20:30:11 +0000 (20:30 -0000)]
Update freeswan entry, per success report from Arne Bernin
Eric Andersen [Fri, 18 Oct 2002 23:03:14 +0000 (23:03 -0000)]
This patch, based on a patch from Stefan Allius, lets us pick an
appropriate awk implementation at compile time, so we can again
compile on Solaris and whatnot.
-Erik
Eric Andersen [Fri, 18 Oct 2002 23:01:46 +0000 (23:01 -0000)]
Echo mmu-less warning where appropriate
Eric Andersen [Fri, 18 Oct 2002 10:19:07 +0000 (10:19 -0000)]
Add in an initial list of the differences between glibc and uClibc.
This is not complete, but covers some of the main points.
-Erik
Miles Bader [Fri, 18 Oct 2002 04:19:57 +0000 (04:19 -0000)]
Don't infinitely recurse when trying to grow __malloc_mmb_heap.
Eric Andersen [Thu, 17 Oct 2002 11:15:14 +0000 (11:15 -0000)]
Add a test from Alex King <alex@morrison.king.net.nz> which
shows a failure in ptsname when ASSUME_DEVPTS=false
-Erik
Eric Andersen [Thu, 17 Oct 2002 10:37:43 +0000 (10:37 -0000)]
Fix malloc so it compiles and works when using pthreads
-Erik
Eric Andersen [Wed, 16 Oct 2002 21:16:50 +0000 (21:16 -0000)]
Remove -fuclibc-ctors
Eric Andersen [Wed, 16 Oct 2002 21:05:47 +0000 (21:05 -0000)]
Kill a warning. Patch from Joel Coltoff <joel@wmi.com>
"Steven J. Hill" [Tue, 15 Oct 2002 21:27:49 +0000 (21:27 -0000)]
Fixed 'dlopen' call for MIPS. Things seem to work swimingly. Woohoo!
Miles Bader [Tue, 15 Oct 2002 07:57:12 +0000 (07:57 -0000)]
(uClibc_config): Define __UCLIBC_UCLINUX_BROKEN_MUNMAP__ for MMU-less systems.
Miles Bader [Tue, 15 Oct 2002 02:16:58 +0000 (02:16 -0000)]
Use __heap_[un]lock instead of __malloc_[un]lock.
Miles Bader [Tue, 15 Oct 2002 02:16:19 +0000 (02:16 -0000)]
Get rid of old malloc lock stuff.
Miles Bader [Tue, 15 Oct 2002 02:15:16 +0000 (02:15 -0000)]
Fix locking to not deadlock when __UCLIBC_UCLINUX_BROKEN_MUNMAP__ is defined.
Eric Andersen [Mon, 14 Oct 2002 07:21:51 +0000 (07:21 -0000)]
Kill the now redundant initfini.pl
-Erik
Eric Andersen [Mon, 14 Oct 2002 07:20:58 +0000 (07:20 -0000)]
Patch from Christian MICHON <christian_michon@yahoo.fr> to reimplement
my little initfini.pl script in awk. This eliminates uClibc's
compile-time dependancy on perl, and lets us use the much lighter
weight awk, which facilitates building uClibc standalone environments.
Eric Andersen [Sun, 13 Oct 2002 01:31:30 +0000 (01:31 -0000)]
It turns out that __thread is now a gcc keyword. We used __thread in
a few spots in our header files. In this change I do a
s/__thread/__thread_id/
so we no longer conflict with newer CVS versions of gcc (such as the
patched up gcc 3.2 included with RedHat 3.0).
-Erik
Eric Andersen [Wed, 9 Oct 2002 20:39:41 +0000 (20:39 -0000)]
Octal to hex
Eric Andersen [Wed, 9 Oct 2002 11:46:39 +0000 (11:46 -0000)]
Support O_STREAMING
Miles Bader [Wed, 9 Oct 2002 10:27:56 +0000 (10:27 -0000)]
* Add support for uClinux's broken munmap, contingent on
__UCLIBC_UCLINUX_BROKEN_MUNMAP__ (which is currently not defined anywhere).
This makes other cases a tiny bit less efficient too.
* Move the malloc lock into the heap structure (locking is still done
at the malloc level though, not by the heap functions).
* Initialize the malloc heap to contain a tiny initial static free-area so
that programs that only do a very little allocation won't ever call mmap.
"Steven J. Hill" [Tue, 8 Oct 2002 22:21:28 +0000 (22:21 -0000)]
Implemented 'romfs' target so that uClibc works with building uClinux.
Eric Andersen [Tue, 1 Oct 2002 17:25:57 +0000 (17:25 -0000)]
Patch from Marshall M. Midden <m4@brecis.com> to fixup crt0 for
mips where I had made a mess
Eric Andersen [Tue, 1 Oct 2002 16:50:04 +0000 (16:50 -0000)]
Patch from Stefan Allius <allius@atecom.com>:
'wcschrnul.o' appeares two times in MOBJW2
Eric Andersen [Tue, 1 Oct 2002 16:49:19 +0000 (16:49 -0000)]
Patch from Stefan Allius <allius@atecom.com>:
-----------------------------------
In extra/Configs/Config.sh
I added the INCLUDE_PTHREADS statement and change the default values for
BUILD_UCLIBC_LDSO and HAVE_SHARED.
-----------------------------------
In extra/scripts/initfini.pl
My last patch removes two labels, which migth be used by the .size statements.
(Sorry, but I'm a perl beginner) I fixed it.
-----------------------------------
In libc/sysdeps/linux/common/initfini.c
I fixed two warnings "nested extern declaration of `i_am_not_a_leaf..
-----------------------------------
In libc/sysdeps/linux/sh/__init_brl.c brk.c sbrk.c
I fixed some compiler warnings which comes from a wrong
inclusion order.
-----------------------------------
Eric Andersen [Tue, 1 Oct 2002 05:30:25 +0000 (05:30 -0000)]
This commit contains a patch from Stefan Allius <allius@atecom.com> to change
how uClibc handles _init and _fini, allowing shared lib constructors and
destructors to initialize things in the correct sequence. Stefan ported the SH
architecture. I then ported x86, arm, and mips. x86 and arm are working fine,
but I don't think I quite got things correct for mips.
Eric Andersen [Tue, 1 Oct 2002 04:01:04 +0000 (04:01 -0000)]
Sigh. OpenBSD used /usr/bin/{true|false}
Eric Andersen [Thu, 26 Sep 2002 15:27:21 +0000 (15:27 -0000)]
Replace _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__
-Erik
Eric Andersen [Thu, 26 Sep 2002 15:19:21 +0000 (15:19 -0000)]
A few additions
Eric Andersen [Thu, 26 Sep 2002 13:49:08 +0000 (13:49 -0000)]
A bug fix from Alexey V. Neyman:
In case of vfork(), the parent was left with __exit_count of -1 and
thus tried to find non-NULL value of __exit_function_table[-1].atexit,
__exit_function_table[-2].atexit and call this function; of course, it
leads to coredump.
Tobias Anderberg [Mon, 23 Sep 2002 12:21:14 +0000 (12:21 -0000)]
Cosmetic cleanup.
Tobias Anderberg [Mon, 23 Sep 2002 10:37:16 +0000 (10:37 -0000)]
Removed redundant code. Same thing exist in sys/syscalls.h so include that
instead.
Tobias Anderberg [Fri, 20 Sep 2002 15:19:28 +0000 (15:19 -0000)]
Build libpthread now that the CRIS as support for it!
Tobias Anderberg [Fri, 20 Sep 2002 15:17:16 +0000 (15:17 -0000)]
* Added clone() system call.
* Proper implementation of bits/syscalls.h, no cheating by just including
<asm/unistd.h>.
* Proper implementation of syscall.S, it no longer contains the
__syscall_error, instead it contains code which makes syscall(nr,...) a
system call.
* Added sysdep.S which contains the code for __syscall_error.
* Added some macros to sysdep.h.
* Added sys/procfs.h, which is needed when compiling with thread support.
* Removed unused syscall-cris.c.
Tobias Anderberg [Fri, 20 Sep 2002 15:09:58 +0000 (15:09 -0000)]
Added pthread support for CRIS.
Tobias Anderberg [Fri, 20 Sep 2002 11:12:13 +0000 (11:12 -0000)]
Removed unused file
Manuel Novoa III [Thu, 19 Sep 2002 17:34:34 +0000 (17:34 -0000)]
Add gnu obstack support. I still need to implement the obstack_printf
and obstack_vprintf, but at least now the reiserfsprogs build.
Manuel Novoa III [Thu, 19 Sep 2002 17:31:15 +0000 (17:31 -0000)]
Add SUSv3 function getsubopt.
Manuel Novoa III [Thu, 19 Sep 2002 17:30:05 +0000 (17:30 -0000)]
Hide my personal #warning reminders. Add __wcschrnul, rename strchrnul
to __strchrnul, and add weak aliases for them.
Tobias Anderberg [Thu, 19 Sep 2002 13:43:05 +0000 (13:43 -0000)]
* Changed paramater names to match their register, i.e. __a -> __r10.
* Do not clobber things that are specified as outputs.
David McCullough [Tue, 17 Sep 2002 02:08:25 +0000 (02:08 -0000)]
Fixup thread support for the 5200/5307 coldfire platforms.
David McCullough [Tue, 17 Sep 2002 01:43:35 +0000 (01:43 -0000)]
Add in clone and make the assembler PIC/msep-data friendly.
David McCullough [Tue, 17 Sep 2002 01:41:54 +0000 (01:41 -0000)]
Fixup JMPBUF_UNWINDS so that is will compile if used :-)
David McCullough [Tue, 17 Sep 2002 01:40:47 +0000 (01:40 -0000)]
Fix a memory corruption bug.
With gcc, sizeof on a sized array argument to a function returns 4, not
16 as was expected in this code. This caused inet_ntoa to overwrite
whatever came before the buffer in the BSS by up to 12 bytes.
Eric Andersen [Mon, 16 Sep 2002 19:28:08 +0000 (19:28 -0000)]
Add url
Eric Andersen [Mon, 16 Sep 2002 19:24:29 +0000 (19:24 -0000)]
Update index
Eric Andersen [Mon, 16 Sep 2002 15:39:55 +0000 (15:39 -0000)]
Use __UCLIBC_HAVE_LFS__ not __USE_LARGEFILE64 to decide if
64 bit interfaces should be used.
-Erik
Tobias Anderberg [Mon, 16 Sep 2002 08:18:46 +0000 (08:18 -0000)]
* Added semi-support for version scripts. If sysdeps/linux/<arch>/libc.map
exists read it and include it when linking.
* Add LIBGCC when linking libc.
Tobias Anderberg [Mon, 16 Sep 2002 08:16:08 +0000 (08:16 -0000)]
* Updated for the CRIS port.
* Added variable LIBGCC which is included when linking libc.so. Arch
specific linker options go into LIBGCC_CFLAGS defined in Config.<arch>.
Tobias Anderberg [Mon, 16 Sep 2002 08:13:37 +0000 (08:13 -0000)]
Configuration for the CRIS port.
Tobias Anderberg [Mon, 16 Sep 2002 08:12:33 +0000 (08:12 -0000)]
Updated for the CRIS port.
Tobias Anderberg [Mon, 16 Sep 2002 08:11:43 +0000 (08:11 -0000)]
Initial version of the dynamic linker code for the CRIS port.
Tobias Anderberg [Mon, 16 Sep 2002 08:09:21 +0000 (08:09 -0000)]
Added cris to ALL_SUBDIRS
Tobias Anderberg [Mon, 16 Sep 2002 08:08:37 +0000 (08:08 -0000)]
Initial version of the CRIS port.
Eric Andersen [Mon, 16 Sep 2002 06:32:16 +0000 (06:32 -0000)]
Fix stupid typo noticed by John Mullin <john.mullin@homenetcomm.com>
Eric Andersen [Sat, 14 Sep 2002 19:00:07 +0000 (19:00 -0000)]
Fix a thinko -- I used the wrong symbol to check for LFS support.
-Erik
Miles Bader [Fri, 13 Sep 2002 07:45:50 +0000 (07:45 -0000)]
(__heap_check_failure): New function.
(__heap_check): Add more checks. Use `__heap_check_failure'.