OSDN Git Service

uclinux-h8/uclibc-ng.git
23 years agoSome more updates and explanation
Eric Andersen [Wed, 2 May 2001 22:37:41 +0000 (22:37 -0000)]
Some more updates and explanation

23 years agoAnother cleanup. Never pass addresses as an 'int'
Eric Andersen [Tue, 1 May 2001 19:06:35 +0000 (19:06 -0000)]
Another cleanup.  Never pass addresses as an 'int'
 -Erik

23 years agoI forgot to check this in.
Eric Andersen [Tue, 1 May 2001 18:42:50 +0000 (18:42 -0000)]
I forgot to check this in.
 -Erik

23 years agoYet another major rework. This time around, rework it to no longer
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

23 years agoSanitize the calling of _dl_linux_resolver so it can be read by
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

23 years agoFix up a comment
Eric Andersen [Sat, 28 Apr 2001 04:20:49 +0000 (04:20 -0000)]
Fix up a comment

23 years agoGet rid of the a.out header file
Eric Andersen [Fri, 27 Apr 2001 23:13:44 +0000 (23:13 -0000)]
Get rid of the a.out header file

23 years agoAdd in missing ARM support. I really need to port this whole thing
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

23 years agoFor m68k I forgot a needed #undef
Eric Andersen [Fri, 27 Apr 2001 20:21:06 +0000 (20:21 -0000)]
For m68k I forgot a needed #undef

23 years agoEliminate the useless _dl_interpreter_exit function
Eric Andersen [Fri, 27 Apr 2001 19:27:16 +0000 (19:27 -0000)]
Eliminate the useless _dl_interpreter_exit function

23 years agoI messed up the comment
Eric Andersen [Fri, 27 Apr 2001 19:25:42 +0000 (19:25 -0000)]
I messed up the comment

23 years agoYet another large update to ld.so. In this iteration I finally got
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

23 years agoAs noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias for
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.

23 years agoPatch from Tom Walsh <tom@cyberiansoftware.com> to fix a thinko
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.

23 years agoIgnore stuff
Eric Andersen [Fri, 27 Apr 2001 07:10:16 +0000 (07:10 -0000)]
Ignore stuff

23 years agoMore trivial changes.
Eric Andersen [Fri, 27 Apr 2001 07:09:41 +0000 (07:09 -0000)]
More trivial changes.

23 years agoA few more compilation updates
Eric Andersen [Fri, 27 Apr 2001 07:05:59 +0000 (07:05 -0000)]
A few more compilation updates

23 years agoJust use 'ls -l' since ls -sh lacks sufficient granularity
Eric Andersen [Fri, 27 Apr 2001 05:46:40 +0000 (05:46 -0000)]
Just use 'ls -l' since ls -sh lacks sufficient granularity

23 years agoIgnore strerror
Eric Andersen [Fri, 27 Apr 2001 05:44:46 +0000 (05:44 -0000)]
Ignore strerror

23 years agoIgnore generated binary
Eric Andersen [Thu, 26 Apr 2001 19:15:14 +0000 (19:15 -0000)]
Ignore generated binary

23 years agooops again! I forgot to pull in the arch specific stuff, and forgot
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

23 years agoDon't hard-code the major number
Eric Andersen [Thu, 26 Apr 2001 16:29:45 +0000 (16:29 -0000)]
Don't hard-code the major number

23 years agoOk, this should finish things up
Eric Andersen [Thu, 26 Apr 2001 16:21:29 +0000 (16:21 -0000)]
Ok, this should finish things up
 -Erik

23 years agoMissed these
Eric Andersen [Thu, 26 Apr 2001 16:15:29 +0000 (16:15 -0000)]
Missed these

23 years agoBe more careful about not hard coding names.
Eric Andersen [Thu, 26 Apr 2001 16:12:47 +0000 (16:12 -0000)]
Be more careful about not hard coding names.

23 years agoKeep major number in sync with the toplevel makefile
Eric Andersen [Thu, 26 Apr 2001 16:05:36 +0000 (16:05 -0000)]
Keep major number in sync with the toplevel makefile

23 years agoOops. I forgot to check this in last night, so if anybody built
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

23 years agoSome minor makefile fixups
Eric Andersen [Thu, 26 Apr 2001 16:00:56 +0000 (16:00 -0000)]
Some minor makefile fixups

23 years agoFix up default .so number. This should avoid conflicts with libc5
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...

23 years agoRevert my ill-advised change to force the shared lib loader to always
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

23 years agoBe really sneaky and use GNU ld special stuff so that whenever folks
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

23 years agoUpdate ignore target
Eric Andersen [Wed, 25 Apr 2001 23:30:01 +0000 (23:30 -0000)]
Update ignore target

23 years agoMove libdl and udate build method a bit
Eric Andersen [Wed, 25 Apr 2001 23:29:12 +0000 (23:29 -0000)]
Move libdl and udate build method a bit
 -Erik

23 years agoAs pointed out by Michiel Thuys <michiel.thuys@intersil.com>, this was
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

23 years agoBe more strict with the malloc implementation. Return NULL
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

23 years agoBe more strict with the glibc style malloc implementation. Return NULL
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.

23 years agoMake sure 'make install' creates needed dirs.
Eric Andersen [Tue, 24 Apr 2001 20:42:34 +0000 (20:42 -0000)]
Make sure 'make install' creates needed dirs.

23 years agoDisable an ugly bug-workaround for ancient versions of gcc.
Eric Andersen [Tue, 24 Apr 2001 20:41:48 +0000 (20:41 -0000)]
Disable an ugly bug-workaround for ancient versions of gcc.
 -Erik

23 years agoAvoid a chicken-and-the-egg problem. Use $(LD) to compile the
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

23 years agoSilence a warning
Eric Andersen [Tue, 24 Apr 2001 20:39:51 +0000 (20:39 -0000)]
Silence a warning

23 years agoThese are needed for arm ld.so support (not at all working yet...)
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

23 years agoMake sure that we list the shared lib loader as a required lib
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

23 years agoFix up the main makefile. Autobuild ld.so and install it
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,

23 years agoDefine where the shared lib loader now lives...
Eric Andersen [Mon, 23 Apr 2001 21:23:19 +0000 (21:23 -0000)]
Define where the shared lib loader now lives...
 -Erik

23 years agoFix up compiler name
Eric Andersen [Mon, 23 Apr 2001 21:21:49 +0000 (21:21 -0000)]
Fix up compiler name

23 years agoAlways use __NR_<name>, not SYS_<name>
Eric Andersen [Mon, 23 Apr 2001 21:20:42 +0000 (21:20 -0000)]
Always use __NR_<name>, not SYS_<name>
 -Erik

23 years agoRevert my syscall changes. The _syscall# macros are not PIC
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

23 years agoOk, seems this _must_ be compiled as PIC code.
Eric Andersen [Mon, 23 Apr 2001 20:36:01 +0000 (20:36 -0000)]
Ok, seems this _must_ be compiled as PIC code.
 -Erik

23 years agoIgnore generated stuff. Add a 'make install' target that works.
Eric Andersen [Mon, 23 Apr 2001 20:11:40 +0000 (20:11 -0000)]
Ignore generated stuff.  Add a 'make install' target that works.
 -Erik

23 years agoInitial checkin for ld.so. This is a combination of effort from Manuel Novoa
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

23 years agoOnly compile in daemon() if the target has an MMU.
Eric Andersen [Mon, 23 Apr 2001 14:56:15 +0000 (14:56 -0000)]
Only compile in daemon() if the target has an MMU.
 -Erik

23 years agoUse the real getnetbyname(), not the stub in resolv.c
Eric Andersen [Fri, 20 Apr 2001 19:14:22 +0000 (19:14 -0000)]
Use the real getnetbyname(), not the stub in resolv.c

23 years agoStub out fpathconf() -- FIXME
Eric Andersen [Fri, 20 Apr 2001 18:50:22 +0000 (18:50 -0000)]
Stub out fpathconf() -- FIXME
 -Erik

23 years agoAdd in a trivial getlogin implementation
Eric Andersen [Fri, 20 Apr 2001 18:48:34 +0000 (18:48 -0000)]
Add in a trivial getlogin implementation

23 years agoUpdate the ignore targets
Eric Andersen [Fri, 20 Apr 2001 17:51:43 +0000 (17:51 -0000)]
Update the ignore targets

23 years agoOops. I forgot the header file
Eric Andersen [Fri, 20 Apr 2001 17:49:19 +0000 (17:49 -0000)]
Oops.  I forgot the header file
 -Erik

23 years agoAdd missing header file for daemon.c, add missing functions into unistd.h.
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

23 years agoNobody should be using the SYS_ syscall names. Use the __NR_<foo>
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

23 years agogetnetbyname.o, res_init.o and res_query.o were missing from the Makefile,
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>

23 years agoUpdate the gcc wrapper. Changes described in the notes at the top of the file.
Manuel Novoa III [Fri, 20 Apr 2001 07:53:33 +0000 (07:53 -0000)]
Update the gcc wrapper.  Changes described in the notes at the top of the file.

23 years agoChange shared lib name. Update install_new target in Makefile.
Manuel Novoa III [Fri, 20 Apr 2001 07:52:06 +0000 (07:52 -0000)]
Change shared lib name.  Update install_new target in Makefile.

23 years agoRemove the old crypt implementation
Eric Andersen [Thu, 19 Apr 2001 20:55:41 +0000 (20:55 -0000)]
Remove the old crypt implementation

23 years agoAdd in a libcrypt implementation. About 8k.
Eric Andersen [Thu, 19 Apr 2001 20:53:49 +0000 (20:53 -0000)]
Add in a libcrypt implementation.  About 8k.
 -Erik

23 years agoBring sh and i386 longjmp implementations into sync
Eric Andersen [Thu, 19 Apr 2001 15:42:16 +0000 (15:42 -0000)]
Bring sh and i386 longjmp implementations into sync

23 years agoAdd missing alias siglongjmp = longjmp;
Eric Andersen [Thu, 19 Apr 2001 15:31:06 +0000 (15:31 -0000)]
Add missing alias siglongjmp = longjmp;
 -Erik

23 years agoRemove all the __THROW macros
Eric Andersen [Thu, 19 Apr 2001 14:42:48 +0000 (14:42 -0000)]
Remove all the __THROW macros

23 years agoPosix 1003.13 POSIX_MULTI_PROCESS specifies that execle() should
Eric Andersen [Wed, 18 Apr 2001 22:00:20 +0000 (22:00 -0000)]
Posix 1003.13 POSIX_MULTI_PROCESS specifies that execle() should
be there, so I just wrote it up.
 -Erik

23 years agoAdd missing time()
Eric Andersen [Wed, 18 Apr 2001 21:12:09 +0000 (21:12 -0000)]
Add missing time()

23 years agoUpdate temp file handling and use a single function to do all
Eric Andersen [Wed, 18 Apr 2001 20:13:13 +0000 (20:13 -0000)]
Update temp file handling and use a single function to do all
the heavy lifting (most of the heavy lifting stolen from glibc,
but reduced a bit).

23 years agoFix dynamic linking bug. If you need -ldl, you must explicitly add the
Manuel Novoa III [Sat, 7 Apr 2001 16:44:38 +0000 (16:44 -0000)]
Fix dynamic linking bug.  If you need -ldl, you must explicitly add the
library (path and version!!!) to the args instead.  For example, add
/lib/libdl.so.1 if DYNAMIC_LINKER is /lib/ld-linux.so.1.

23 years agoFix up more leftovers resultant from fixing _LIBC
Eric Andersen [Fri, 6 Apr 2001 23:34:52 +0000 (23:34 -0000)]
Fix up more leftovers resultant from fixing _LIBC

23 years agoFix include/errno.h to not use kernel header, and instead use bits/errno.h.
Eric Andersen [Fri, 6 Apr 2001 20:28:45 +0000 (20:28 -0000)]
Fix include/errno.h to not use kernel header, and instead use bits/errno.h.
This required we use _LIBC instead of __LIBC__ to be consistent with glibc.
This had some sideffects in sys/syscalls.h.  While fixing things, I made
everything use __set_errno() for (eventual) thread support.
 -Erik

23 years agoUpdate the ignore file to match
Eric Andersen [Fri, 6 Apr 2001 20:19:10 +0000 (20:19 -0000)]
Update the ignore file to match

23 years agoMake a naming change to be consistent with other cross compiling tools.
Eric Andersen [Fri, 6 Apr 2001 20:17:32 +0000 (20:17 -0000)]
Make a naming change to be consistent with other cross compiling tools.
Set up a default lib dir off the root of the uClibc compile dir.  This
really needs more thought, but is good enough for now I think.

23 years agoGet the full set of module creating syscalls in place.
Eric Andersen [Thu, 5 Apr 2001 07:34:20 +0000 (07:34 -0000)]
Get the full set of module creating syscalls in place.
 -Erik

23 years agoCompile the compiler last
Eric Andersen [Thu, 5 Apr 2001 03:11:57 +0000 (03:11 -0000)]
Compile the compiler last

23 years agoAdd in delete_module
Eric Andersen [Thu, 5 Apr 2001 03:09:58 +0000 (03:09 -0000)]
Add in delete_module
 -Erik

23 years agoAdd missing function sigfillset.
Manuel Novoa III [Wed, 4 Apr 2001 05:16:48 +0000 (05:16 -0000)]
Add missing function sigfillset.

23 years agoAccomodate mmuless systems.
Eric Andersen [Tue, 3 Apr 2001 23:58:52 +0000 (23:58 -0000)]
Accomodate mmuless systems.

23 years agoAdd in daemon.c, now used by busybox.
Eric Andersen [Tue, 3 Apr 2001 23:55:10 +0000 (23:55 -0000)]
Add in daemon.c, now used by busybox.
 -Erik

23 years agoFix a bug noted by David Beamonte <dbeamonte@intelnet.es>, so that
Eric Andersen [Tue, 3 Apr 2001 23:21:32 +0000 (23:21 -0000)]
Fix a bug noted by David Beamonte <dbeamonte@intelnet.es>, so that
we define "__linux__" in uClibc_config.h, not "__linux_".

23 years agoIt seems ARM 2.4.x kernels do not have iopl. Also add missing
Eric Andersen [Fri, 30 Mar 2001 20:25:02 +0000 (20:25 -0000)]
It seems ARM 2.4.x kernels do not have iopl.  Also add missing
bits/sem.h for ARM so everything now compiles and runs.
 -Erik

23 years agoReimplemented "make install" target. I left the old one as-is,
David Schleef [Thu, 29 Mar 2001 23:58:49 +0000 (23:58 -0000)]
Reimplemented "make install" target.  I left the old one as-is,
under the assumtion that someone will get confused if it suddenly
changes.

23 years agoBug fix from Peter Kjellerstedt <Peter.Kjellerstedt@axis.com>.
Manuel Novoa III [Fri, 23 Mar 2001 02:32:39 +0000 (02:32 -0000)]
Bug fix from Peter Kjellerstedt <Peter.Kjellerstedt@axis.com>.

23 years agoAdd some missing headers needed by ld.so-1.9.11.
Manuel Novoa III [Thu, 22 Mar 2001 15:00:46 +0000 (15:00 -0000)]
Add some missing headers needed by ld.so-1.9.11.

23 years agoAdd in random(), make rand use that under the hood. Fix the
Eric Andersen [Thu, 22 Mar 2001 06:14:18 +0000 (06:14 -0000)]
Add in random(), make rand use that under the hood.  Fix the
include file so folks know random is now there.

23 years agoStub out localeconv. Please look over this to check it is correct....
Eric Andersen [Wed, 21 Mar 2001 18:13:36 +0000 (18:13 -0000)]
Stub out localeconv.  Please look over this to check it is correct....
I started trying to read the glibc code -- but that code is far too
messy to be read.  So I just wrote a silly C app against glibc, set
the locale to POSIX, then called localeconv().  I wrote this version
of localeconv.c so it returns the same stuff.
 -Erik

23 years agoFix from Jon Nelson for error in timezone
Eric Andersen [Tue, 20 Mar 2001 21:54:01 +0000 (21:54 -0000)]
Fix from Jon Nelson for error in timezone
 -Erik

23 years agoAdd missed dependency. TODO: Should build gen_sysconf when cross-compiling.
Manuel Novoa III [Tue, 20 Mar 2001 16:04:27 +0000 (16:04 -0000)]
Add missed dependency.  TODO: Should build gen_sysconf when cross-compiling.

23 years agoFix longjmp on i386. Also adds siglongjmp.
Manuel Novoa III [Tue, 20 Mar 2001 15:32:43 +0000 (15:32 -0000)]
Fix longjmp on i386.  Also adds siglongjmp.

23 years agoPut regex back in
Eric Andersen [Tue, 20 Mar 2001 14:19:38 +0000 (14:19 -0000)]
Put regex back in

23 years agoAdd an empty DIRS target incase it gets inherited from the env.
David McCullough [Tue, 20 Mar 2001 10:52:50 +0000 (10:52 -0000)]
Add an empty DIRS target incase it gets inherited from the env.

23 years agoDo not remove const and extension when compiling with the elf tools.
David McCullough [Tue, 20 Mar 2001 10:51:57 +0000 (10:51 -0000)]
Do not remove const and extension when compiling with the elf tools.

23 years agoFix some strange formatting, so the compile looks prettier.
Eric Andersen [Tue, 20 Mar 2001 03:21:56 +0000 (03:21 -0000)]
Fix some strange formatting, so the compile looks prettier.

23 years agoI think this fixes the dependancy problems. Manuel, can you
Eric Andersen [Tue, 20 Mar 2001 03:20:50 +0000 (03:20 -0000)]
I think this fixes the dependancy problems.  Manuel, can you
double check that this is what you intended?
 -Erik

23 years agoAdd in the timezone global from time.h, from a patch by
Eric Andersen [Mon, 19 Mar 2001 23:34:12 +0000 (23:34 -0000)]
Add in the timezone global from time.h, from a patch by
Jon Nelson <jnelson@boa.org>

23 years agoSeems most folks don't have /sbin in their path
Eric Andersen [Mon, 19 Mar 2001 23:32:00 +0000 (23:32 -0000)]
Seems most folks don't have /sbin in their path

23 years agoAdd in alphasort (working fine) and scandir (just a stub for now).
Eric Andersen [Mon, 19 Mar 2001 23:22:41 +0000 (23:22 -0000)]
Add in alphasort (working fine) and scandir (just a stub for now).
 -Erik

23 years agoMove the dirent stuff. I suppose it is system dependant, but then
Eric Andersen [Mon, 19 Mar 2001 22:49:36 +0000 (22:49 -0000)]
Move the dirent stuff.  I suppose it is system dependant, but then
it really should be grouped together too.  And it needed to be grouped
more then it needed to be in sysdeps/linux/common

23 years agoDebug should be off by default
Eric Andersen [Mon, 19 Mar 2001 22:40:50 +0000 (22:40 -0000)]
Debug should be off by default