OSDN Git Service
Eric Andersen [Wed, 27 Jun 2001 19:02:29 +0000 (19:02 -0000)]
Don't even threaten to include asm/* stuff
Eric Andersen [Wed, 27 Jun 2001 19:01:47 +0000 (19:01 -0000)]
Don't include asm/unistd.h
Eric Andersen [Wed, 27 Jun 2001 18:25:11 +0000 (18:25 -0000)]
Step one in a process to ween ourselves off of using asm/unistd.h.
This will break the build for a bit.
-Erik
Manuel Novoa III [Wed, 27 Jun 2001 18:01:58 +0000 (18:01 -0000)]
Fix syntax error in comment.
Manuel Novoa III [Wed, 27 Jun 2001 17:59:13 +0000 (17:59 -0000)]
Make these PIC and _LIBC_REENTRANT compatible.
Manuel Novoa III [Wed, 27 Jun 2001 17:58:05 +0000 (17:58 -0000)]
For now, we need to explicitly make clean in libc/unistd (sysconf stuff)
and libc/sysdeps/linux/common (unified syscall stuff).
Manuel Novoa III [Wed, 27 Jun 2001 15:07:26 +0000 (15:07 -0000)]
Yes... I forgot to update bits/dirent.h for the other archs. :-(
Manuel Novoa III [Tue, 26 Jun 2001 14:08:19 +0000 (14:08 -0000)]
ANSI/ISO specifies that no library function sets errno to 0.
Eric Andersen [Tue, 26 Jun 2001 04:48:15 +0000 (04:48 -0000)]
Looks like we lost clearing errno
David Schleef [Tue, 26 Jun 2001 02:44:33 +0000 (02:44 -0000)]
Change to allow compiling against unconfigured kernels. Creates
symlink to include/asm-${arch} instead of include/asm.
Manuel Novoa III [Mon, 25 Jun 2001 20:28:39 +0000 (20:28 -0000)]
Note need to fix scandir.c's dynamic memory handling.
Manuel Novoa III [Mon, 25 Jun 2001 20:26:29 +0000 (20:26 -0000)]
Remove simulated d_type support for getdents and the dirent struct, and use
the straight getdents syscall instead of the wrapper (which leaked memory).
Eric Andersen [Mon, 25 Jun 2001 19:11:55 +0000 (19:11 -0000)]
Add in missing syscalls.h for powerpc
David McCullough [Mon, 25 Jun 2001 04:11:28 +0000 (04:11 -0000)]
Fixed vfork so the child doesn't trash the parents return address.
Eric Andersen [Sat, 23 Jun 2001 14:15:11 +0000 (14:15 -0000)]
Make PIC a config option
Eric Andersen [Sat, 23 Jun 2001 13:40:33 +0000 (13:40 -0000)]
This adds in support for PIC on x86. Unfortunately, this will break
all arches till they add in an libc/sysdeps/linux/<arch>/bits/syscalls.h
file. Sorry about there, there was no other way...
-Erik
Eric Andersen [Thu, 21 Jun 2001 19:50:54 +0000 (19:50 -0000)]
Patch from Shane Nay, who noticed that these were not properly labeling
functions as such, thereby hosing the shared lib loader.
Manuel Novoa III [Tue, 19 Jun 2001 22:57:26 +0000 (22:57 -0000)]
Oops... forgot to remove rint.c from the makefile.
Manuel Novoa III [Tue, 19 Jun 2001 22:53:41 +0000 (22:53 -0000)]
Remove Erik's broken implementation of rint(). Replace it by one "less broken".
Also correct rounding beharior of round() and add trunc(). Note that round()
and rint() currently don't check for infs and nans. I decided to wait on
that until the big cleanup.
Eric Andersen [Tue, 19 Jun 2001 22:12:33 +0000 (22:12 -0000)]
Add in "HAVE_SHARED" so shared libs build or not as needed
-Erik
Eric Andersen [Tue, 19 Jun 2001 18:04:54 +0000 (18:04 -0000)]
This was violating policy and using a kernel header file...
-Erik
Eric Andersen [Mon, 18 Jun 2001 20:05:49 +0000 (20:05 -0000)]
This commit finishes adding support for the old m68k-coff toolchains by
working around a missing header file in the compiler shipped with the
uCsimm and uCdimm. This should make the folk in Toronto happy, since
now they can use the latest CVS version of uClibc.
-Erik
Eric Andersen [Mon, 18 Jun 2001 08:48:15 +0000 (08:48 -0000)]
I went nuts and wrote a generic rint implementation. I think it is
correct per the man page and a little testing seems to show it works.
-Erik
Manuel Novoa III [Sun, 17 Jun 2001 03:16:16 +0000 (03:16 -0000)]
Update TODO file.
Manuel Novoa III [Sun, 17 Jun 2001 02:53:47 +0000 (02:53 -0000)]
Add the in* and out* functions for i386. Note: the sys/io.h header for
glibc-2.2.2 actually defines static inline versions for i386, but only
provides prototypes for externs for the other archs I looked at. Since
uClibc shares this header amongst archs, I stashed the inline defs in
bits/io_i386.h and included it when __i386__ was defined. Better solutions
are most welcome, but it doesn't clutter sys/io.h too badly and now lilo
and the pcmcia tools build against uClibc on i386 without modification.
Eric Andersen [Fri, 15 Jun 2001 23:58:10 +0000 (23:58 -0000)]
A few build updates
Eric Andersen [Fri, 15 Jun 2001 23:55:25 +0000 (23:55 -0000)]
These are needed for powerpc to compile
Eric Andersen [Fri, 15 Jun 2001 20:24:04 +0000 (20:24 -0000)]
Note missing struct _res in resolv.h
Eric Andersen [Fri, 15 Jun 2001 20:14:44 +0000 (20:14 -0000)]
Make some nice SEND_ADDRESS_STDERR and SEND_NUMBER_STDERR macros that
operate inline, to help when debugging ldso (i.e. before we can do
things like function calls).
-Erik
Eric Andersen [Fri, 15 Jun 2001 20:06:39 +0000 (20:06 -0000)]
Now that our compiler wrapper is up to it, we can now use TARGET_CC
to compile ldso, simplifying the process of passing in special CFLAGS
and such (and simplifying the build in general since we no longer
need to go directly to LD to link things).
-Erik
Eric Andersen [Fri, 15 Jun 2001 20:02:37 +0000 (20:02 -0000)]
Make strrchr not call other string functions. Hopefully
speeding it a bit.
Eric Andersen [Fri, 15 Jun 2001 19:58:36 +0000 (19:58 -0000)]
I am very proud of myself. I managed to write a working _start for
x86 entirely in C -- no asm required. muahahahaha!
-Erik
Eric Andersen [Fri, 15 Jun 2001 19:51:00 +0000 (19:51 -0000)]
Add in (stub out really) __libc_current_sigrtmin, and
__libc_current_sigrtmax so current versions of ash will
compile.
-Erik
Eric Andersen [Fri, 15 Jun 2001 19:47:58 +0000 (19:47 -0000)]
Be consistant for all the client code, and use TARGET_CC with --uclibc-use-build-dir
Eric Andersen [Fri, 15 Jun 2001 19:06:07 +0000 (19:06 -0000)]
Make all the uClibc tests use the --uclibc-use-build-dir flag
Eric Andersen [Thu, 14 Jun 2001 21:51:51 +0000 (21:51 -0000)]
Some silly grammar stuff
Eric Andersen [Thu, 14 Jun 2001 21:37:48 +0000 (21:37 -0000)]
Yet more ldso cleanups. Be more discriminating about when using inlines
and when using real functions. Make things be more portable by
providing a default C routine to locate the got.
-Erik
Eric Andersen [Wed, 13 Jun 2001 22:10:41 +0000 (22:10 -0000)]
Fix a really stupid bug with ttyname, thanks to a patch from
Stefan Soucek <ssoucek@coactive.com>
Eric Andersen [Wed, 13 Jun 2001 17:37:44 +0000 (17:37 -0000)]
Don't create a fake readelf app. We are creating a real one now.
-Erik
Eric Andersen [Wed, 13 Jun 2001 17:06:57 +0000 (17:06 -0000)]
Default to something like a strongArm, (i.e. has an MMU)
Eric Andersen [Wed, 13 Jun 2001 16:11:41 +0000 (16:11 -0000)]
A few new todo items
Manuel Novoa III [Wed, 13 Jun 2001 14:01:39 +0000 (14:01 -0000)]
Fix printf so that %p outputs "(nil)" for (void *) 0, to match glibc behavior.
David Schleef [Wed, 13 Jun 2001 07:27:03 +0000 (07:27 -0000)]
Add warning message if Config doesn't exist
Manuel Novoa III [Wed, 13 Jun 2001 02:06:36 +0000 (02:06 -0000)]
Fix printf handling of %p to prepend "0x" since output is in hex.
Note: glibc output for (void *)0 is "(nil)" while uClibc output is "0".
Does anyone have a preference?
Eric Andersen [Wed, 13 Jun 2001 00:42:04 +0000 (00:42 -0000)]
Use sys/mman.h not asm/mman.h -- we don't want kernel headers...
-Erik
Eric Andersen [Tue, 12 Jun 2001 22:23:26 +0000 (22:23 -0000)]
Some sparc updates from Stanley <ngstanley@cwc.nus.edu.sg>
Eric Andersen [Tue, 12 Jun 2001 21:56:56 +0000 (21:56 -0000)]
Make sure these use the local sysdep.h header file
Eric Andersen [Tue, 12 Jun 2001 21:45:10 +0000 (21:45 -0000)]
Cleanup the toploevel makefile handing of shared libs. Add weak_alias
define, and set things up so nasty old coff toolchains can now compile
things and should actually work again.
-Erik
Eric Andersen [Tue, 12 Jun 2001 19:36:49 +0000 (19:36 -0000)]
Some socket cleanups
Eric Andersen [Tue, 12 Jun 2001 19:36:16 +0000 (19:36 -0000)]
Silence a few warnings.
Eric Andersen [Tue, 12 Jun 2001 19:14:21 +0000 (19:14 -0000)]
Default to testing shared libs.
Eric Andersen [Mon, 11 Jun 2001 18:37:00 +0000 (18:37 -0000)]
Default to malloc-930716 for x86
Eric Andersen [Mon, 11 Jun 2001 17:55:33 +0000 (17:55 -0000)]
Get rid of the unused LDSO_VERSION
Manuel Novoa III [Mon, 11 Jun 2001 13:52:43 +0000 (13:52 -0000)]
Fix bug in ldso/util/Makefile introduced when Erik added the readelf app.
It didn't show up if a previous install was done. This would have been
fixed two days ago if the initial bug report had been anything close to
lucid. :-( Also changed ldconfig back to staticly linked and update the
README file.
Eric Andersen [Thu, 7 Jun 2001 19:44:37 +0000 (19:44 -0000)]
Add in a test for outb (that currently fails)
Manuel Novoa III [Thu, 7 Jun 2001 13:38:31 +0000 (13:38 -0000)]
Commit _uClibc_fread bug fix (with minor edit) posted by Johan Adolfsson <johan.adolfsson@axis.com>.
David McCullough [Thu, 7 Jun 2001 12:08:54 +0000 (12:08 -0000)]
The m68k-elf compiler chokes on this code when compiling for PIC as
compile_regex is one big function (relative function calls further
than cpu32 can do).
The solution was to re-order the code a little to reduce the size of these
relative calls.
So the total sum of the changes is:
* Move compile_regex to the end of the file
* make store_op1 an inline
Unfortunately CVS diff doesn't show this and makes it look like the whole
file has been severely hacked. It hasn't.
David McCullough [Thu, 7 Jun 2001 11:54:28 +0000 (11:54 -0000)]
Changes needed to build the ldso dir for m68k. I haven't tested it,
who knows if it will work, it just compiles cleanly :-)
David McCullough [Thu, 7 Jun 2001 11:52:59 +0000 (11:52 -0000)]
ldso build always used $(NATIVE_ARCH)-uClibc-gcc, which doesn't work for
cross build (ie., m68k under i386). Changed it to use $(TARGET_ARCH)
instead.
David McCullough [Thu, 7 Jun 2001 11:49:53 +0000 (11:49 -0000)]
Up the m68k defaults a little so that uClibc will support a g++ build.
David McCullough [Thu, 7 Jun 2001 11:48:43 +0000 (11:48 -0000)]
Change the last 2 "make" invocations to use $(MAKE).
Eric Andersen [Tue, 5 Jun 2001 21:56:24 +0000 (21:56 -0000)]
Update the TODO file
Eric Andersen [Mon, 4 Jun 2001 23:08:09 +0000 (23:08 -0000)]
Add a new 'readelf' util I wrote this weekend.
-Erik
Eric Andersen [Mon, 4 Jun 2001 22:13:51 +0000 (22:13 -0000)]
Teach the ldso stuff to use the proper elf.h header file, not a local copy.
-Erik
Manuel Novoa III [Sat, 2 Jun 2001 22:10:22 +0000 (22:10 -0000)]
Update the todo. Add my personal list.
Manuel Novoa III [Sat, 2 Jun 2001 21:46:42 +0000 (21:46 -0000)]
Add locale-enabled strcoll function from vodz, plus supporting tool.
Manuel Novoa III [Sat, 2 Jun 2001 02:49:45 +0000 (02:49 -0000)]
Always check before you commit...^100. We need to build the dynamic linker
before we build shared libc. We need to build shared libc before libdl.
Manuel Novoa III [Sat, 2 Jun 2001 02:00:23 +0000 (02:00 -0000)]
Only build ldso if building shared. Also, if building ldso, build all subdirs.
Manuel Novoa III [Sat, 2 Jun 2001 01:45:55 +0000 (01:45 -0000)]
Fix misuse of DO_SHARED and LDSO_PRESENT. Add -f option to "cp"s.
Eric Andersen [Fri, 1 Jun 2001 17:40:43 +0000 (17:40 -0000)]
Put the locale stuff back how it was till we can get a proper implementation
that doesn't suck so badly.
-Erik
Eric Andersen [Fri, 1 Jun 2001 16:32:02 +0000 (16:32 -0000)]
oops.
Eric Andersen [Fri, 1 Jun 2001 16:31:08 +0000 (16:31 -0000)]
decouple this from strchr
Manuel Novoa III [Fri, 1 Jun 2001 16:14:58 +0000 (16:14 -0000)]
Fix bug: tried to install non-existant shared libs.
Eric Andersen [Fri, 1 Jun 2001 01:45:58 +0000 (01:45 -0000)]
Add in an initial TODO list. Please add stuff as needed (and feel
free to work on items in this list as well).
-Erik
Manuel Novoa III [Thu, 31 May 2001 23:07:50 +0000 (23:07 -0000)]
Added cmdline options --uclibc-use-build-dir and --uclibc-use-rpath so that
those behaviors can be invoked from the command line.
Manuel Novoa III [Thu, 31 May 2001 21:38:42 +0000 (21:38 -0000)]
Install ldd and ldconfig as appropriate.
Manuel Novoa III [Thu, 31 May 2001 21:23:20 +0000 (21:23 -0000)]
Removed INSTALL_DIR and replaced it with DEVEL_PREFIX, ROOT_DIR, and
TARGET_PREFIX to allow more flexibility. Also modified the gcc wrapper
to do the right thing if -Wl,--dynamic-linker,xxx is passed on the command
line. The gcc wrapper will also check the env variable UCLIBC_GCC_LDOPT
for a dynamic linker option at runtime (although command line arg overrides
the env variable).
Eric Andersen [Thu, 31 May 2001 17:34:49 +0000 (17:34 -0000)]
Cleanup some stupid warnings
Eric Andersen [Wed, 30 May 2001 20:37:35 +0000 (20:37 -0000)]
warn folks that libresolv is a stub
Manuel Novoa III [Wed, 30 May 2001 07:07:14 +0000 (07:07 -0000)]
Look's like I need to disable the rpath stuff for now as well.
To build with an uninstaled uClibc, set UCLIBC_GCC=build in your env,
or rename it/symlink to it using a name containing the string "build".
Manuel Novoa III [Wed, 30 May 2001 06:40:39 +0000 (06:40 -0000)]
Revert behavior of wrapper to not use dynamic linker in the build dir, so
those who want to should now be able to compile against uClibc without
installing it (using the "build" behavior).
Manuel Novoa III [Tue, 29 May 2001 19:48:27 +0000 (19:48 -0000)]
Give Erik's build-with-uClibc method.
Eric Andersen [Tue, 29 May 2001 19:23:27 +0000 (19:23 -0000)]
Remove the now obsolete "headers" target. Fix call to get-needed-libgcc-objects.sh
to we define NM and AR properly.
Eric Andersen [Tue, 29 May 2001 19:21:26 +0000 (19:21 -0000)]
Define "NM = $(CROSS)nm" and use $NM and $AR in get-needed-libgcc-objects.sh
in all cases.
Eric Andersen [Tue, 29 May 2001 17:43:46 +0000 (17:43 -0000)]
Sometimes (often) the kernel will return things other then -1.
Deal with it.
-Erik
Eric Andersen [Tue, 29 May 2001 17:42:04 +0000 (17:42 -0000)]
Comment out broken test
Manuel Novoa III [Mon, 28 May 2001 14:44:55 +0000 (14:44 -0000)]
Add a _really_ basic README outlining building/using uClibc.
Manuel Novoa III [Mon, 28 May 2001 14:38:12 +0000 (14:38 -0000)]
Make selection of uClibc floating point support in printf, etc. seperate
from libm float function support. Also, move all Config files out of the
main directory.
Manuel Novoa III [Sun, 27 May 2001 15:55:18 +0000 (15:55 -0000)]
Revert behavior to either INSTALL_DIR or BUILD_DIR but not both. Also, if
using BUILD_DIR and uClibc dynamic linker, use the one in the build dir.
If people want the "both dir" behavior, I'll enable it similar to the
"build" and "rpath" behaviors. See the comments in the file for how this
works.
Manuel Novoa III [Sat, 26 May 2001 19:43:06 +0000 (19:43 -0000)]
Minor fix.
Eric Andersen [Sat, 26 May 2001 06:18:30 +0000 (06:18 -0000)]
These are needed for arm to compile
Eric Andersen [Sat, 26 May 2001 06:16:44 +0000 (06:16 -0000)]
Don't try to run ldconfig unless it exists
David Schleef [Sat, 26 May 2001 01:50:21 +0000 (01:50 -0000)]
Added definition of __THROW
David Schleef [Sat, 26 May 2001 01:48:56 +0000 (01:48 -0000)]
Makefile targets to symlink arch-specific headers into include/ (only
used on mipsel.)
David Schleef [Sat, 26 May 2001 01:39:15 +0000 (01:39 -0000)]
Nasty hack to get around inconsistency between dynamic linker
entry and kernel entry to crt0.o.
Eric Andersen [Sat, 26 May 2001 00:17:26 +0000 (00:17 -0000)]
Make powerpc compile. Needs this header...
Eric Andersen [Sat, 26 May 2001 00:01:58 +0000 (00:01 -0000)]
Fix regex support to be compatible with 4.2 BSD regex library. This is
the last bit that was needed to get util-linux to compile.
Eric Andersen [Sat, 26 May 2001 00:00:27 +0000 (00:00 -0000)]
Add in message queue support, based on work from <tapu@371.net>.
This is required to compile util-linux
David Schleef [Fri, 25 May 2001 23:30:34 +0000 (23:30 -0000)]
Fixing flak from the directory rearrangement
David Schleef [Fri, 25 May 2001 23:28:20 +0000 (23:28 -0000)]
Added -Wall