OSDN Git Service
Eric Andersen [Thu, 10 May 2001 22:36:17 +0000 (22:36 -0000)]
Oops. Forgot the makefile updates
Eric Andersen [Thu, 10 May 2001 17:54:23 +0000 (17:54 -0000)]
These are needed for ash-0.3.8
Eric Andersen [Thu, 10 May 2001 17:08:51 +0000 (17:08 -0000)]
Seems a few apps need this one...
Eric Andersen [Thu, 10 May 2001 05:44:29 +0000 (05:44 -0000)]
Check if ld.so is included in the NEEDED list. If so, do not _again_
try to fix up its symbols since they are already fixed up, thank-you
very much.
This checkin fixes the dlopen problems Manuel noticed.
-Erik
Eric Andersen [Thu, 10 May 2001 05:41:56 +0000 (05:41 -0000)]
Fix up naming of ld.so so every uses the same define. The top level
was using one name and the ld.so-1 dir was using another (they happened
to be the same). Fix that.
-Erik
Eric Andersen [Thu, 10 May 2001 04:45:56 +0000 (04:45 -0000)]
Ignore generated file
Eric Andersen [Thu, 10 May 2001 04:24:33 +0000 (04:24 -0000)]
minor formatting cleanups
Eric Andersen [Thu, 10 May 2001 04:23:19 +0000 (04:23 -0000)]
Add in _dl_strrchr
Eric Andersen [Thu, 10 May 2001 00:40:28 +0000 (00:40 -0000)]
uClibc now has a math library. muahahahaha!
-Erik
Eric Andersen [Thu, 10 May 2001 00:36:24 +0000 (00:36 -0000)]
Don't hard code path to TARGET_CC
Eric Andersen [Wed, 9 May 2001 18:00:04 +0000 (18:00 -0000)]
ignore generated stuff
Eric Andersen [Wed, 9 May 2001 17:08:22 +0000 (17:08 -0000)]
Add in an older libc5 glob implementation, which is a bit thinner.
-Erik
Eric Andersen [Wed, 9 May 2001 16:40:35 +0000 (16:40 -0000)]
By default, leave out the RPC junk (it adds over 30k). Add in a compile
time option to include it if NFS support is wanted (does anyone every
use this for anything else these days?)
-Erik
Eric Andersen [Wed, 9 May 2001 05:41:52 +0000 (05:41 -0000)]
compile up libutil
Eric Andersen [Wed, 9 May 2001 01:16:48 +0000 (01:16 -0000)]
Yipe. This was still pulling in kernel headers.
-Erik
Eric Andersen [Tue, 8 May 2001 19:58:20 +0000 (19:58 -0000)]
Add in libutil, based on Cory Visi's variant of Michael Shmulevich's libutil
port. I have reworked the code quite a bit so that the stuff that is supposed
to be in libc is in libc, and I added a bunch of missing stuff so the libutil
interface matches that of glibc's libutil. The only caveat is that
libutil/login.c is currently a stub.
-Erik
Eric Andersen [Tue, 8 May 2001 18:09:01 +0000 (18:09 -0000)]
Turns out alphasort was totally broken. This fixed one works.
-Erik
Eric Andersen [Tue, 8 May 2001 18:06:08 +0000 (18:06 -0000)]
A patch from Jon Nelson <jnelson@securepipe.com> to make scandir
sort things as it is supposed to do.
Eric Andersen [Tue, 8 May 2001 18:04:43 +0000 (18:04 -0000)]
Add in a qsort, alphasort, scandir test from Jon Nelson, jnelson@securepipe.com
Eric Andersen [Tue, 8 May 2001 17:09:45 +0000 (17:09 -0000)]
Make sure types are pulled in
Eric Andersen [Tue, 8 May 2001 17:08:03 +0000 (17:08 -0000)]
Some very minor cleanups
David McCullough [Tue, 8 May 2001 13:59:30 +0000 (13:59 -0000)]
Code did not match the prototypes, from what I can tell it should be using
size_t as the header files have it already.
David McCullough [Tue, 8 May 2001 13:56:56 +0000 (13:56 -0000)]
Quick fix to setjmp/longjmp/sigsetjmp etc to make them work.
This should really be fixed to fall into line with the other archs.
Manuel Novoa III [Tue, 8 May 2001 12:56:17 +0000 (12:56 -0000)]
Fix comment for #endif to remove warnings.
Eric Andersen [Tue, 8 May 2001 00:08:00 +0000 (00:08 -0000)]
Looks like I forgot to commit this.
Eric Andersen [Mon, 7 May 2001 22:02:05 +0000 (22:02 -0000)]
Use the symbolic name, don't hard code.
Eric Andersen [Mon, 7 May 2001 21:58:54 +0000 (21:58 -0000)]
Put in but leave commented the DL_DEBUG define
Manuel Novoa III [Mon, 7 May 2001 20:17:35 +0000 (20:17 -0000)]
Fix fwrite return value bug reported by Matthias Kilian <kili@outback.escape.de>.
Eric Andersen [Mon, 7 May 2001 18:29:33 +0000 (18:29 -0000)]
Change FILENAME_MAX to be only 255. Max filename on ext2 is 255,
so there is no reason to allocate 4k. Change working of execvep.c
per patch from Matthias Kilian <kili@outback.escape.de> so that there
is not a fixed 127 byte buffer. Too easy to overflow...
-Erik
Manuel Novoa III [Mon, 7 May 2001 16:19:17 +0000 (16:19 -0000)]
A couple of printf fixes from Johan Adolfsson (johan.adolfsson@axis.com).
Eric Andersen [Fri, 4 May 2001 23:39:15 +0000 (23:39 -0000)]
Add in inet_ntop() and inet_pton() -- ported from glibc 2.2.3
by Cory Visi <merlin@phear.lwz.org>
Eric Andersen [Fri, 4 May 2001 23:09:58 +0000 (23:09 -0000)]
Fixup ppc to powerpc
Eric Andersen [Fri, 4 May 2001 23:00:34 +0000 (23:00 -0000)]
Another update to make sure things work properly on x86 now.
Eric Andersen [Fri, 4 May 2001 22:29:43 +0000 (22:29 -0000)]
This patch allows powerpc to compile again. It also checks if we
are compiling for an arch for which uClibc has an ld.so or not,
and otherwise sets things up to use the system ld.so.
-Erik
Eric Andersen [Fri, 4 May 2001 17:03:47 +0000 (17:03 -0000)]
Initial sparc port, thanks to Mathew Bosworth <mbosworth@metaflow.com>,
who sent this to me a month ago and I forgot to check it in. Oops.
Better late then never.
-Erik
Eric Andersen [Fri, 4 May 2001 01:30:26 +0000 (01:30 -0000)]
This is kindof neat. With this update, you can now simply set your
PATH and things will now simply compile vs uClibc. Or you can add
INSTALL_DIR/usr/bin to your path and use it as a cross compiler.
Either way, it works now.
-Erik
David McCullough [Fri, 4 May 2001 00:46:29 +0000 (00:46 -0000)]
Clean up some issues for building on m68k.
Eric Andersen [Thu, 3 May 2001 15:56:13 +0000 (15:56 -0000)]
Dont segfault when folks run ld-uclibc as an executable.
Eric Andersen [Thu, 3 May 2001 06:35:12 +0000 (06:35 -0000)]
Describe what this routine is supposed to do so we can port it
to other achitectures.
Eric Andersen [Thu, 3 May 2001 06:34:13 +0000 (06:34 -0000)]
Some more minor updates. Add in some debug stuff, and
a way to print out addresses _early_ on in the process.
Eric Andersen [Thu, 3 May 2001 06:20:12 +0000 (06:20 -0000)]
Avoid needing to distinguis between the install dir and the build
dir. Use both automagically when compiling.
-Erik
Eric Andersen [Wed, 2 May 2001 22:37:41 +0000 (22:37 -0000)]
Some more updates and explanation
Eric Andersen [Tue, 1 May 2001 19:06:35 +0000 (19:06 -0000)]
Another cleanup. Never pass addresses as an 'int'
-Erik
Eric Andersen [Tue, 1 May 2001 18:42:50 +0000 (18:42 -0000)]
I forgot to check this in.
-Erik
Eric Andersen [Tue, 1 May 2001 14:20:45 +0000 (14:20 -0000)]
Yet another major rework. This time around, rework it to no longer
use linux kernel header files.
-Erik
Eric Andersen [Mon, 30 Apr 2001 21:28:56 +0000 (21:28 -0000)]
Sanitize the calling of _dl_linux_resolver so it can be read by
mere mortals, and so it says what it means. Ick this stuff was
nasty.
-Erik
Eric Andersen [Sat, 28 Apr 2001 04:20:49 +0000 (04:20 -0000)]
Fix up a comment
Eric Andersen [Fri, 27 Apr 2001 23:13:44 +0000 (23:13 -0000)]
Get rid of the a.out header file
Eric Andersen [Fri, 27 Apr 2001 20:21:49 +0000 (20:21 -0000)]
Add in missing ARM support. I really need to port this whole thing
to use a modern version of elf.h from glibc.
-Erik
Eric Andersen [Fri, 27 Apr 2001 20:21:06 +0000 (20:21 -0000)]
For m68k I forgot a needed #undef
Eric Andersen [Fri, 27 Apr 2001 19:27:16 +0000 (19:27 -0000)]
Eliminate the useless _dl_interpreter_exit function
Eric Andersen [Fri, 27 Apr 2001 19:25:42 +0000 (19:25 -0000)]
I messed up the comment
Eric Andersen [Fri, 27 Apr 2001 17:23:26 +0000 (17:23 -0000)]
Yet another large update to ld.so. In this iteration I finally got
the C based syscalls working, which greatly simplifies what it takes
to get new architectures running.
-Erik
Eric Andersen [Fri, 27 Apr 2001 15:37:06 +0000 (15:37 -0000)]
As noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias for
srand was in the wrong file, causing rand.o to be needlessly included in some
cases.
Eric Andersen [Fri, 27 Apr 2001 15:32:56 +0000 (15:32 -0000)]
Patch from Tom Walsh <tom@cyberiansoftware.com> to fix a thinko
on my patch.
Eric Andersen [Fri, 27 Apr 2001 07:10:16 +0000 (07:10 -0000)]
Ignore stuff
Eric Andersen [Fri, 27 Apr 2001 07:09:41 +0000 (07:09 -0000)]
More trivial changes.
Eric Andersen [Fri, 27 Apr 2001 07:05:59 +0000 (07:05 -0000)]
A few more compilation updates
Eric Andersen [Fri, 27 Apr 2001 05:46:40 +0000 (05:46 -0000)]
Just use 'ls -l' since ls -sh lacks sufficient granularity
Eric Andersen [Fri, 27 Apr 2001 05:44:46 +0000 (05:44 -0000)]
Ignore strerror
Eric Andersen [Thu, 26 Apr 2001 19:15:14 +0000 (19:15 -0000)]
Ignore generated binary
Eric Andersen [Thu, 26 Apr 2001 16:47:34 +0000 (16:47 -0000)]
oops again! I forgot to pull in the arch specific stuff, and forgot
to update those makefiles.
-Erik
Eric Andersen [Thu, 26 Apr 2001 16:29:45 +0000 (16:29 -0000)]
Don't hard-code the major number
Eric Andersen [Thu, 26 Apr 2001 16:21:29 +0000 (16:21 -0000)]
Ok, this should finish things up
-Erik
Eric Andersen [Thu, 26 Apr 2001 16:15:29 +0000 (16:15 -0000)]
Missed these
Eric Andersen [Thu, 26 Apr 2001 16:12:47 +0000 (16:12 -0000)]
Be more careful about not hard coding names.
Eric Andersen [Thu, 26 Apr 2001 16:05:36 +0000 (16:05 -0000)]
Keep major number in sync with the toplevel makefile
Eric Andersen [Thu, 26 Apr 2001 16:03:17 +0000 (16:03 -0000)]
Oops. I forgot to check this in last night, so if anybody built
uClibc during the last 18 hours it would have failed. Sorry about
that...
-Erik
Eric Andersen [Thu, 26 Apr 2001 16:00:56 +0000 (16:00 -0000)]
Some minor makefile fixups
Eric Andersen [Wed, 25 Apr 2001 23:42:36 +0000 (23:42 -0000)]
Fix up default .so number. This should avoid conflicts with libc5
libraries...
Eric Andersen [Wed, 25 Apr 2001 23:41:53 +0000 (23:41 -0000)]
Revert my ill-advised change to force the shared lib loader to always
be linked. Just make libc.so link vs the shared lib loader and everything
works fine. Duh. Thanks to Michael Shmulevich <michaels@jungo.com> for
clueing me in.
-Erik
Eric Andersen [Wed, 25 Apr 2001 23:36:24 +0000 (23:36 -0000)]
Be really sneaky and use GNU ld special stuff so that whenever folks
use the unsafe gets, they will get a warning from the linker. muahahaha.
This method will soon be applied to fork() w/o an mmu etc...
-Erik
Eric Andersen [Wed, 25 Apr 2001 23:30:01 +0000 (23:30 -0000)]
Update ignore target
Eric Andersen [Wed, 25 Apr 2001 23:29:12 +0000 (23:29 -0000)]
Move libdl and udate build method a bit
-Erik
Eric Andersen [Wed, 25 Apr 2001 16:17:39 +0000 (16:17 -0000)]
As pointed out by Michiel Thuys <michiel.thuys@intersil.com>, this was
checking sizeof which was pure bloat and in many cases wrong.
-Erik
Eric Andersen [Wed, 25 Apr 2001 16:09:48 +0000 (16:09 -0000)]
Be more strict with the malloc implementation. Return NULL
when folks do a malloc(0) using malloc-simple.
-Erik
Eric Andersen [Wed, 25 Apr 2001 16:07:47 +0000 (16:07 -0000)]
Be more strict with the glibc style malloc implementation. Return NULL
when folks do a malloc(0) using malloc-930716.
Eric Andersen [Tue, 24 Apr 2001 20:42:34 +0000 (20:42 -0000)]
Make sure 'make install' creates needed dirs.
Eric Andersen [Tue, 24 Apr 2001 20:41:48 +0000 (20:41 -0000)]
Disable an ugly bug-workaround for ancient versions of gcc.
-Erik
Eric Andersen [Tue, 24 Apr 2001 20:40:53 +0000 (20:40 -0000)]
Avoid a chicken-and-the-egg problem. Use $(LD) to compile the
libdl library, not $(CC).
-Erik
Eric Andersen [Tue, 24 Apr 2001 20:39:51 +0000 (20:39 -0000)]
Silence a warning
Eric Andersen [Tue, 24 Apr 2001 04:14:30 +0000 (04:14 -0000)]
These are needed for arm ld.so support (not at all working yet...)
-Erik
Eric Andersen [Mon, 23 Apr 2001 21:52:35 +0000 (21:52 -0000)]
Make sure that we list the shared lib loader as a required lib
by explicitly linking against it. That way 'ldd' tells us what
we need to know.
-Erik
Eric Andersen [Mon, 23 Apr 2001 21:33:52 +0000 (21:33 -0000)]
Fix up the main makefile. Autobuild ld.so and install it
when appropriate,
Eric Andersen [Mon, 23 Apr 2001 21:23:19 +0000 (21:23 -0000)]
Define where the shared lib loader now lives...
-Erik
Eric Andersen [Mon, 23 Apr 2001 21:21:49 +0000 (21:21 -0000)]
Fix up compiler name
Eric Andersen [Mon, 23 Apr 2001 21:20:42 +0000 (21:20 -0000)]
Always use __NR_<name>, not SYS_<name>
-Erik
Eric Andersen [Mon, 23 Apr 2001 21:18:14 +0000 (21:18 -0000)]
Revert my syscall changes. The _syscall# macros are not PIC
friendly and don't work. Back to nasty asm...
With this change in place, it now works for me on x86.
-Erik
Eric Andersen [Mon, 23 Apr 2001 20:36:01 +0000 (20:36 -0000)]
Ok, seems this _must_ be compiled as PIC code.
-Erik
Eric Andersen [Mon, 23 Apr 2001 20:11:40 +0000 (20:11 -0000)]
Ignore generated stuff. Add a 'make install' target that works.
-Erik
Eric Andersen [Mon, 23 Apr 2001 17:43:54 +0000 (17:43 -0000)]
Initial checkin for ld.so. This is a combination of effort from Manuel Novoa
III and me. I've been working on stripping out arch dependant stuff and
replacing it with generic stuff whenever possible.
-Erik
Eric Andersen [Mon, 23 Apr 2001 14:56:15 +0000 (14:56 -0000)]
Only compile in daemon() if the target has an MMU.
-Erik
Eric Andersen [Fri, 20 Apr 2001 19:14:22 +0000 (19:14 -0000)]
Use the real getnetbyname(), not the stub in resolv.c
Eric Andersen [Fri, 20 Apr 2001 18:50:22 +0000 (18:50 -0000)]
Stub out fpathconf() -- FIXME
-Erik
Eric Andersen [Fri, 20 Apr 2001 18:48:34 +0000 (18:48 -0000)]
Add in a trivial getlogin implementation
Eric Andersen [Fri, 20 Apr 2001 17:51:43 +0000 (17:51 -0000)]
Update the ignore targets
Eric Andersen [Fri, 20 Apr 2001 17:49:19 +0000 (17:49 -0000)]
Oops. I forgot the header file
-Erik
Eric Andersen [Fri, 20 Apr 2001 17:48:24 +0000 (17:48 -0000)]
Add missing header file for daemon.c, add missing functions into unistd.h.
I still need to implement getlogin.c fpathconf.c, but they are required
for IEEE Std. 1003.13-1998 POSIX_FILE_SYSTEM conformance and we don't
have them yet. But we will very very soon. :-)
-Erik
Eric Andersen [Fri, 20 Apr 2001 17:26:51 +0000 (17:26 -0000)]
Nobody should be using the SYS_ syscall names. Use the __NR_<foo>
names instead.
-Erik
Eric Andersen [Fri, 20 Apr 2001 16:47:10 +0000 (16:47 -0000)]
getnetbyname.o, res_init.o and res_query.o were missing from the Makefile,
patch thanks to John Hall <John.Hall@optionexist.co.uk>