OSDN Git Service
David Schleef [Mon, 15 Oct 2001 22:07:58 +0000 (22:07 -0000)]
include/bits from glibc-2.2.4-1
Eric Andersen [Mon, 15 Oct 2001 16:56:14 +0000 (16:56 -0000)]
Turn off program_invocation_name and friend
Eric Andersen [Sun, 14 Oct 2001 04:50:39 +0000 (04:50 -0000)]
Erwin Authried <eauth@softsys.co.at> noticed that _XOPEN_SOURCE is
supposed to be a number
Eric Andersen [Fri, 12 Oct 2001 22:01:07 +0000 (22:01 -0000)]
Beef up the fork test, checking for proper SIGCHLD behavior
Eric Andersen [Fri, 12 Oct 2001 19:21:40 +0000 (19:21 -0000)]
A small patch from Erwin Authried <eauth@softsys.co.at>
*) changed ARM crt0.S / crt0pic.S selection -- depends on DOPIC now.
*) Minor tweek to syscall definitions
David Schleef [Thu, 11 Oct 2001 23:06:20 +0000 (23:06 -0000)]
Fix problem with version naming
David Schleef [Thu, 11 Oct 2001 22:56:29 +0000 (22:56 -0000)]
Little script to create a properly-named snapshot for Debian packaging
David Schleef [Thu, 11 Oct 2001 22:55:24 +0000 (22:55 -0000)]
Fixes for finding appropriate kernel headers, changelog entry
Eric Andersen [Thu, 11 Oct 2001 18:50:26 +0000 (18:50 -0000)]
Add missing values.h
Eric Andersen [Thu, 11 Oct 2001 08:36:33 +0000 (08:36 -0000)]
Add strndup, written by Stefan Soucek <ssoucek@coactive.com>
Eric Andersen [Thu, 11 Oct 2001 08:29:22 +0000 (08:29 -0000)]
Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.
He sent this patch to me a month ago, but I forgot to apply it...
Eric Andersen [Fri, 5 Oct 2001 19:59:12 +0000 (19:59 -0000)]
Minor update
Eric Andersen [Fri, 5 Oct 2001 11:31:48 +0000 (11:31 -0000)]
Wohoo! David McCullough found the bug! His comments follow:
I had a look at it and you won't believe it was always broken.
I'll try and explain it, let me know if it doesn't make sense.
* ash calls setjmp, which messes with the stack to look like it has
two args instead of one and then jmps (actually falls) into
sigsetjmp.
BUG
* sigsetjmp then saves the registers and "jumps" to __sigset_save, a C
function.
BUG1 - because the caller pops its args off the stack, a program that
changes it's number of args is broken because the caller will
not
pop the correct number of args.
I think that jumping from the sigsetjmp asm to the 'C' code is unsafe
but I can't think of an example. Anyway, I have attached what I think
is
a working fix.
The reason this worked without -fomit-frame-pointer is that the
_sigset_save 'C' code would restore the stack pointer from %ebp (the
frame
pointer) and because none of the asm had moded it, when we returned
from
__sigset_save the stack was back to it's correct position for 1
argument
despite our best attempts to stuff it up ;-)
Eric Andersen [Thu, 4 Oct 2001 10:08:51 +0000 (10:08 -0000)]
Yet more minor cleanups
Eric Andersen [Thu, 4 Oct 2001 07:38:56 +0000 (07:38 -0000)]
Patch from David McCullough <davidm@lineo.com>:
* reduce the sigset types to 32 bits (I've mentioned this before)
I think I saw this change go in for another platform anyway ;-)
* Do not use _IO_FILE as it clashes with the C++ libraries which know
too much about how glibc workds :-(
* Do not use _G_va_list for the same reason.
* remove the CTORS/DTORS from crt0.S for ARM as the compiler provided
crtbegin.o and crtend.o have these (and only these) already in them and
you get multiple defined errs :-(
David McCullough [Thu, 4 Oct 2001 03:44:35 +0000 (03:44 -0000)]
With all the headerfile changes, some functions didn't get there arg types
fixed up.
Eric Andersen [Wed, 3 Oct 2001 09:26:48 +0000 (09:26 -0000)]
Minor cleanups
Eric Andersen [Wed, 3 Oct 2001 09:15:04 +0000 (09:15 -0000)]
Silly little changes
Eric Andersen [Wed, 3 Oct 2001 09:12:28 +0000 (09:12 -0000)]
Cleanup brk/sbrk
Eric Andersen [Tue, 2 Oct 2001 19:18:58 +0000 (19:18 -0000)]
termcap.h is supposed to be part of ncurses, and has no place in the C
library includes.
Eric Andersen [Tue, 2 Oct 2001 10:45:16 +0000 (10:45 -0000)]
Add in some math lib tests
Eric Andersen [Tue, 2 Oct 2001 09:25:58 +0000 (09:25 -0000)]
Turn off optimization when debugging
Eric Andersen [Sun, 30 Sep 2001 04:55:22 +0000 (04:55 -0000)]
Fix nasty behavior difference from glibc -- also fixes getline()
-Erik
Eric Andersen [Sat, 29 Sep 2001 21:35:08 +0000 (21:35 -0000)]
Minor cleanup
Eric Andersen [Sat, 29 Sep 2001 21:11:36 +0000 (21:11 -0000)]
Fix prototype
Eric Andersen [Sat, 29 Sep 2001 21:08:09 +0000 (21:08 -0000)]
Fix a stupid typo...
Eric Andersen [Sat, 29 Sep 2001 07:53:25 +0000 (07:53 -0000)]
Add in gcvt()
Eric Andersen [Thu, 27 Sep 2001 07:48:05 +0000 (07:48 -0000)]
Sigh. Erik mucks it up again...
Eric Andersen [Thu, 27 Sep 2001 07:40:15 +0000 (07:40 -0000)]
Make iopl and ioperm work
Eric Andersen [Thu, 27 Sep 2001 07:23:46 +0000 (07:23 -0000)]
Duh.
Eric Andersen [Thu, 27 Sep 2001 07:22:21 +0000 (07:22 -0000)]
Be more careful about not redefining stuf
Eric Andersen [Thu, 27 Sep 2001 07:20:27 +0000 (07:20 -0000)]
Add inb, outb and friends,
Eric Andersen [Thu, 27 Sep 2001 07:02:33 +0000 (07:02 -0000)]
re-enable ntohl and friends
Eric Andersen [Thu, 27 Sep 2001 06:48:46 +0000 (06:48 -0000)]
Silence a silly warning
Eric Andersen [Thu, 27 Sep 2001 06:31:38 +0000 (06:31 -0000)]
Silence stupid warnings caused by bad kernel network includes
Eric Andersen [Thu, 27 Sep 2001 06:17:21 +0000 (06:17 -0000)]
Gut this file, and quit referrng to _IO_* junk
Eric Andersen [Thu, 27 Sep 2001 06:09:37 +0000 (06:09 -0000)]
Optimize for size, and disable expensive inlining
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...