OSDN Git Service
Eric Andersen [Thu, 27 Sep 2001 05:29:22 +0000 (05:29 -0000)]
Add in missing file
Eric Andersen [Thu, 27 Sep 2001 05:27:43 +0000 (05:27 -0000)]
Scrub up a few test things
Eric Andersen [Thu, 27 Sep 2001 05:25:55 +0000 (05:25 -0000)]
Finish syncing up arm
Eric Andersen [Thu, 27 Sep 2001 05:24:26 +0000 (05:24 -0000)]
Update to accomodate the header file changes
Eric Andersen [Thu, 27 Sep 2001 05:21:15 +0000 (05:21 -0000)]
Rev all the header files to sync things with glibc 2.2.4
Manuel Novoa III [Tue, 25 Sep 2001 19:39:46 +0000 (19:39 -0000)]
Fix fseek behavior.
Eric Andersen [Fri, 21 Sep 2001 05:52:27 +0000 (05:52 -0000)]
Fix the vfork test so it actually works this time.
-Erik
Eric Andersen [Fri, 21 Sep 2001 05:25:52 +0000 (05:25 -0000)]
Add in a simple vfork test
Eric Andersen [Sat, 15 Sep 2001 08:49:46 +0000 (08:49 -0000)]
Oops
Eric Andersen [Sat, 15 Sep 2001 08:38:12 +0000 (08:38 -0000)]
Recurse into 'file'
Eric Andersen [Sat, 15 Sep 2001 08:31:43 +0000 (08:31 -0000)]
Add lockf
Eric Andersen [Thu, 13 Sep 2001 21:48:48 +0000 (21:48 -0000)]
Patch from John Tyner <jtyner@cs.ucr.edu> to avoid redefined
symbols by piping results through uniq
Eric Andersen [Thu, 6 Sep 2001 19:42:48 +0000 (19:42 -0000)]
Patch from Andrew Ip <aip@cwlinux.com> to add ftime,
allowing openssl to be built.
Eric Andersen [Fri, 31 Aug 2001 06:09:13 +0000 (06:09 -0000)]
Preevaluate some stuff so it only gets run once, speeding the compile
Eric Andersen [Thu, 30 Aug 2001 17:38:27 +0000 (17:38 -0000)]
"Kim B. Heino" <Kim.Heino@bluegiga.com> reports
In the libc/stdlib/bsd_getpt.c file you have line:
memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) - 1);
It really should be:
memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) );
The last nul character must be copied too because the next line uses
strlen() to get buf's length.
Eric Andersen [Wed, 29 Aug 2001 16:47:35 +0000 (16:47 -0000)]
Wrap up some long long stuff in __UCLIBC_HAS_LONG_LONG__
Eric Andersen [Wed, 29 Aug 2001 00:07:05 +0000 (00:07 -0000)]
Minor update
Eric Andersen [Tue, 28 Aug 2001 21:16:12 +0000 (21:16 -0000)]
Fix goofy formatting
Eric Andersen [Tue, 28 Aug 2001 17:15:53 +0000 (17:15 -0000)]
This will hopefully make global constructors and destructors work
Eric Andersen [Tue, 28 Aug 2001 17:04:13 +0000 (17:04 -0000)]
Add "__write" as a weak alias for "write"
Eric Andersen [Mon, 27 Aug 2001 22:09:41 +0000 (22:09 -0000)]
elide some debug noise
Eric Andersen [Mon, 27 Aug 2001 20:03:52 +0000 (20:03 -0000)]
Make gdb/gcc/binutils happy
Eric Andersen [Fri, 24 Aug 2001 23:24:43 +0000 (23:24 -0000)]
Use "stdin", "stdout", and "stderr", not "_stdin", "_stdout", and
"_stderr", since this is what gcc and libgcc expect...
-Erik
Eric Andersen [Fri, 24 Aug 2001 22:40:48 +0000 (22:40 -0000)]
Add the __fopen prototype, since I pulled it from stdio.h
Eric Andersen [Fri, 24 Aug 2001 22:23:24 +0000 (22:23 -0000)]
Get rid of non standard macros for things that are functions
Eric Andersen [Fri, 24 Aug 2001 21:05:39 +0000 (21:05 -0000)]
atoi, atol, atoll, and atof are supposed to be functions, not macros.
-Erik
Eric Andersen [Tue, 21 Aug 2001 23:27:53 +0000 (23:27 -0000)]
Add missing shadow.h
Eric Andersen [Tue, 21 Aug 2001 04:24:24 +0000 (04:24 -0000)]
Add byteswap.h, per glibc
Eric Andersen [Sat, 18 Aug 2001 19:52:41 +0000 (19:52 -0000)]
Fix problem with possible redundant entries.
Eric Andersen [Fri, 17 Aug 2001 19:51:36 +0000 (19:51 -0000)]
Fix a silly bug with the header file
Eric Andersen [Fri, 17 Aug 2001 19:50:34 +0000 (19:50 -0000)]
Fix a stupid bug causing the ld-uClibc entry to be lost.
Eric Andersen [Tue, 14 Aug 2001 23:13:33 +0000 (23:13 -0000)]
Don't use --uclibc-use-build-dir for the tests unless BUILD_UCLIBC_LDSO=true
Eric Andersen [Tue, 14 Aug 2001 21:49:20 +0000 (21:49 -0000)]
powerpc doesn't have sbrk yet, so use "malloc", not "malloc-930716"
Eric Andersen [Tue, 14 Aug 2001 21:17:30 +0000 (21:17 -0000)]
Put a bandaid on getpgrp behavior
Eric Andersen [Tue, 14 Aug 2001 21:11:24 +0000 (21:11 -0000)]
Proper support for tests spannint multiple .o files
-Erik
Eric Andersen [Tue, 14 Aug 2001 21:08:48 +0000 (21:08 -0000)]
use some #defines internal to the ctype functions to eliminate them
calling other tiny ctype functions. Now all ctype funcs will end up
with no extern references, which ends up shrinking both the uClibc
shared lib and shrinking client code.
-Erik
Eric Andersen [Tue, 14 Aug 2001 20:40:36 +0000 (20:40 -0000)]
Fix the "install_target" target to install to $(PREFIX)$(TARGET_PREFIX)
Eric Andersen [Mon, 13 Aug 2001 22:20:28 +0000 (22:20 -0000)]
A few more (final?) cleanups for the installer behavior. I now think
things are working perfectly (perhaps I shouln't think so much)
Eric Andersen [Mon, 13 Aug 2001 20:40:30 +0000 (20:40 -0000)]
Add in a make release target
Eric Andersen [Mon, 13 Aug 2001 20:00:34 +0000 (20:00 -0000)]
Fix SYSTEM_DEVEL_PREFIX to allow install of the <arch>-uclibc- spoofer
toolchain to any arbitrary directory...
Eric Andersen [Mon, 13 Aug 2001 18:52:28 +0000 (18:52 -0000)]
Add in TARGET_PREFIX, which was still used in a few spots (and
appropriately so). Leave this hidden and set to a sane default
since nobody should really need to change it...
Eric Andersen [Sat, 11 Aug 2001 04:21:52 +0000 (04:21 -0000)]
Use malloc on arm (since I've never bothered to write sbrk)
Eric Andersen [Sat, 11 Aug 2001 04:17:52 +0000 (04:17 -0000)]
I just wrote a stpncpy() since someone wanted it
Eric Andersen [Sat, 11 Aug 2001 04:11:46 +0000 (04:11 -0000)]
I rewrote strcat without any function calls.
Eric Andersen [Sat, 11 Aug 2001 04:09:22 +0000 (04:09 -0000)]
Sync up ldd behavior
Eric Andersen [Sat, 11 Aug 2001 04:08:41 +0000 (04:08 -0000)]
Fix the library searching routine so it is way simpler, and so
it matches the routine in ldd.c
David Schleef [Sat, 11 Aug 2001 03:21:21 +0000 (03:21 -0000)]
Add a cvsignore for this dir
David Schleef [Sat, 11 Aug 2001 03:19:52 +0000 (03:19 -0000)]
Change name of package to uclibc-toolchain. Various changes
following the Makefile changes.
David Schleef [Sat, 11 Aug 2001 03:18:59 +0000 (03:18 -0000)]
Need to create $(SYSTEM_DEVEL_PREFIX)/usr/bin
Eric Andersen [Sat, 11 Aug 2001 00:18:07 +0000 (00:18 -0000)]
Begin removing some unnecessary inlining, and fix naming
of _dl_fprintf which should really be _dl_dprintf
-Erik
Eric Andersen [Fri, 10 Aug 2001 08:49:12 +0000 (08:49 -0000)]
Oops. Symlink args were backwards...
Eric Andersen [Fri, 10 Aug 2001 08:43:35 +0000 (08:43 -0000)]
Don't blow away existing files when trying to install a ldso symlink...
Eric Andersen [Fri, 10 Aug 2001 08:00:08 +0000 (08:00 -0000)]
Update the build system, yet again. I hope this is the last time...
Here is the basic theory of operation:
SHARED_LIB_LOADER_PATH/ <The location where the shared lib
loader will be installed and where the
compiler will cause apps to look for it.>
DEVEL_PREFIX/
bin/ <contains gcc, ld, etc for setting PATH=$DEVEL_PREFIX/bin:$PATH>
lib/ <contains all runtime and static libs>
include/ <Where all the header files go>
SYSTEM_DEVEL_PREFIX/
usr/bin/ <contains arch-uclibc-gcc, arch-uclibc-ld, etc that
might be installed by a .deb or .rpm into /usr/bin,
but can happily live under DEVEL_PREFIX>
PREFIX
This is prepended during 'make install's allowing you to shift things to
be installed under some alternate location (such as when building a .deb)
-Erik
David McCullough [Fri, 10 Aug 2001 00:33:01 +0000 (00:33 -0000)]
Make _PATH_VARRUN actually point to /var/run.
Eric Andersen [Thu, 9 Aug 2001 20:25:20 +0000 (20:25 -0000)]
Fix behavior when installing the devel env, since somewhere
along the line this got messed up...
David McCullough [Thu, 9 Aug 2001 15:25:15 +0000 (15:25 -0000)]
Add cmsg_nxthdr function for the cases where the headers
do not so it inline.
David McCullough [Thu, 9 Aug 2001 13:44:22 +0000 (13:44 -0000)]
Add in changes from philipc@lineo:
Fix three bugs and bring into line with glibc:
1. The first character read using getc() was being ignored if it was EOF.
Normally this is okay because the next getc() returns EOF as well, but
for sscanf, this was causing us to skip the null terminator and start
scanning whatever happened to be next in memory.
2. %s, %c, and %[ formats now return -1 if EOF is reached before any
characters are read, instead of 0. This was causing an infinite loop
in diald.
3. Default to base 10 for %i fields if not prefix modifier present.
David McCullough [Thu, 9 Aug 2001 12:54:00 +0000 (12:54 -0000)]
Add hstrerror, it just points to strerror like h_errno.
David McCullough [Thu, 9 Aug 2001 12:08:51 +0000 (12:08 -0000)]
Added sigset_t casts so we behave like the other platforms.
David McCullough [Thu, 9 Aug 2001 12:06:19 +0000 (12:06 -0000)]
Fix a couple of warnings
David McCullough [Thu, 9 Aug 2001 11:37:33 +0000 (11:37 -0000)]
Make sure the weak aliases are defined before the functions/vars
they use as stubs, otherwise, some compilers (ie., m68k-elf) tie them to
the local symbols and the weak aliases do not work.
David Schleef [Thu, 9 Aug 2001 01:20:43 +0000 (01:20 -0000)]
Changed uclibc-gcc to uclibc-toolchain. Added fixups for changes
in the Makefiles.
Eric Andersen [Wed, 8 Aug 2001 17:03:36 +0000 (17:03 -0000)]
This syncs things up with my local tree. Mainly changes installer
issues, and syns things (as far as I am willing) with Dave Schleef's
tree. We may need to go another round or so, but we do seem to be
converging...
Eric Andersen [Mon, 6 Aug 2001 22:51:31 +0000 (22:51 -0000)]
Try search for the shared lib interpreter. Eliminate all double "//"s
from the output
-Erik
Eric Andersen [Mon, 6 Aug 2001 19:27:51 +0000 (19:27 -0000)]
If /etc/ld.so.preload was size 0, the shared lib loader would
choke and die. Test for non-zero size as well,
-Erik
David McCullough [Mon, 6 Aug 2001 12:46:12 +0000 (12:46 -0000)]
Fixup the pipe system call for the SH target.
The FD's are returned in registers.
Manuel Novoa III [Sat, 28 Jul 2001 15:06:31 +0000 (15:06 -0000)]
Oops... left in a debugging line.
Manuel Novoa III [Sat, 28 Jul 2001 14:51:45 +0000 (14:51 -0000)]
Back out the changes to _uClibc_fread and loop in fread() if incomplete, to
avoid problems with fgets on tty streams. I actually did some testing this
time. ;-)
Note: there is a difference in behavior between glibc and uClibc here
regarding fread() on a tty stream. glibc's fread() seems to return after
reading all _available_ data even if not at end-of-file, while uClibc's
fread() continues reading until all requested or eof or error. The latter
behavior seems correct w.r.t. the standards.
Manuel Novoa III [Thu, 26 Jul 2001 02:52:53 +0000 (02:52 -0000)]
Yes... the previous "fix" was broken too... the result of careless cutting
and pasting while pressed for time. I haven't checked this one either. :-(
Manuel Novoa III [Wed, 25 Jul 2001 22:31:25 +0000 (22:31 -0000)]
Ok... the fix wasn't quite so straightforward. Hopefully this will do it.
Manuel Novoa III [Wed, 25 Jul 2001 21:01:10 +0000 (21:01 -0000)]
Fix fread bug reported by Vodz. The fix is straightforward, but I haven't
tested it (lack of time).
Manuel Novoa III [Wed, 25 Jul 2001 14:40:40 +0000 (14:40 -0000)]
Fix small typo vodz reported.
David Schleef [Wed, 18 Jul 2001 22:11:18 +0000 (22:11 -0000)]
Fix the /lib link
David Schleef [Tue, 17 Jul 2001 23:33:15 +0000 (23:33 -0000)]
Better generation of control, fix up DESTDIR
David Schleef [Tue, 17 Jul 2001 20:56:15 +0000 (20:56 -0000)]
Fix typo.
David Schleef [Tue, 17 Jul 2001 09:54:09 +0000 (09:54 -0000)]
Changes to build cross-compiling libraries
David Schleef [Tue, 17 Jul 2001 09:44:30 +0000 (09:44 -0000)]
Better rule for locating dynamic linker
Eric Andersen [Tue, 17 Jul 2001 05:34:33 +0000 (05:34 -0000)]
search_for_named_library forgot to wipe the target string, so each time
around the loop it was getting bigger...
Eric Andersen [Tue, 17 Jul 2001 05:32:41 +0000 (05:32 -0000)]
Elimintate spurious trailing /
Eric Andersen [Tue, 17 Jul 2001 04:00:27 +0000 (04:00 -0000)]
Turn off USE_CACHE by default (so ldconfig, by default, isn't
needed).
Fix a stupid typo in dlib.c where I had several weak symbols
set up backwards, breaking libdl (dlopen and friends),
-Erik
Eric Andersen [Tue, 17 Jul 2001 01:44:36 +0000 (01:44 -0000)]
Fix missing function when USE_CACHE is enabled
-Erik
Eric Andersen [Tue, 17 Jul 2001 01:19:15 +0000 (01:19 -0000)]
Oops. USE_CACHE was disabled and didn't compile when enabled
since I'd forgotten a one liner...
-Erik
Eric Andersen [Tue, 17 Jul 2001 00:55:53 +0000 (00:55 -0000)]
Forgot this...
Eric Andersen [Tue, 17 Jul 2001 00:52:44 +0000 (00:52 -0000)]
We already have tar.h, so might as well include cpio.h as well...
Eric Andersen [Tue, 17 Jul 2001 00:52:04 +0000 (00:52 -0000)]
Some cleanups needed for things to compile and work as expected
with the new build system...
-Erik
Eric Andersen [Mon, 16 Jul 2001 23:47:15 +0000 (23:47 -0000)]
use ln -fs
Eric Andersen [Fri, 13 Jul 2001 06:16:26 +0000 (06:16 -0000)]
Scrub up a few things I forgot. Add a few more cleanups.
-Erik
Eric Andersen [Fri, 13 Jul 2001 06:05:01 +0000 (06:05 -0000)]
This takes about 6k off the size of the x86 shared lib loader...
-Erik
David Schleef [Fri, 13 Jul 2001 03:51:01 +0000 (03:51 -0000)]
fixperms needs the correct name for ld-uClibc
David Schleef [Fri, 13 Jul 2001 03:22:18 +0000 (03:22 -0000)]
PowerPC has a different kernel interface for termios. Grrr...
David Schleef [Fri, 13 Jul 2001 03:21:16 +0000 (03:21 -0000)]
The previous termios.h strongly appeared to be from a different
architecture.
David Schleef [Fri, 13 Jul 2001 03:08:08 +0000 (03:08 -0000)]
Add test for proper realloc() behavior.
Eric Andersen [Thu, 12 Jul 2001 21:41:31 +0000 (21:41 -0000)]
This commit merges David Schleef's updates to the build system, which a
few tiny fixups here and there from me. Seems to work just fine and
will hopefully be a bit better behaved.
-Erik
Eric Andersen [Thu, 12 Jul 2001 20:40:53 +0000 (20:40 -0000)]
Use uClibc's ldd, not the system one which is probably broken
anyways. This ensures correct answers, and prevents all the
annoying segfaults from the system ldd.
-Erik
Eric Andersen [Thu, 12 Jul 2001 18:56:10 +0000 (18:56 -0000)]
Add missing in_addr_t
David Schleef [Thu, 12 Jul 2001 12:30:13 +0000 (12:30 -0000)]
Added #ifdef DEBUG where appropriate.
Fixed icache clearing during _dl_init_got().
Added a few more reloc types.
Added out-of-range check for R_PPC_REL24.
David Schleef [Thu, 12 Jul 2001 10:14:09 +0000 (10:14 -0000)]
First cut of PowerPC port. It works for hello world, but has lots
of debugging information is still there.
David Schleef [Thu, 12 Jul 2001 10:11:33 +0000 (10:11 -0000)]
Small fixups for powerpc
David McCullough [Wed, 11 Jul 2001 13:47:45 +0000 (13:47 -0000)]
Added __BEGIN_DECLS and __END_DECLS to the files that didn't have
it and that I could see needed it.
Should be pretty low impact as these are only defined when using C++.
David McCullough [Wed, 11 Jul 2001 13:33:21 +0000 (13:33 -0000)]
The main part of the C++ support is the definition of __BEGIN_DECLS
and __END_DECLS in this file based on the __cplusplus define.