OSDN Git Service

uclinux-h8/uClibc.git
19 years agoUpdated to match Linux 2.6.11.
Peter Kjellerstedt [Mon, 18 Apr 2005 15:59:49 +0000 (15:59 -0000)]
Updated to match Linux 2.6.11.

19 years agoCopy vendor/linux/2.6.11/scripts/lxdialog to
Peter Kjellerstedt [Mon, 18 Apr 2005 15:47:36 +0000 (15:47 -0000)]
Copy vendor/linux/2.6.11/scripts/lxdialog to
trunk/uClibc/extra/config/lxdialog.

19 years agoIn Bug 116, dicksnippe writes:
Mike Frysinger [Sat, 16 Apr 2005 03:59:42 +0000 (03:59 -0000)]
In Bug 116, dicksnippe writes:

uClibc's mkstemp/mktemp tries to read /dev/urandom (or /dev/random) to
generate random contents for the .XXXXXX part of its argument.  In a
chrooted environment /dev/[u]random might not be available.  Thus the
mkstemp call fails.

Add back in the braindamaged gettimeofday/getpid code, but only as a
fallback for when reading /dev/[u]random fail for whatever reasons.

19 years agocbachman writes Bug 195:
Mike Frysinger [Sat, 16 Apr 2005 03:02:25 +0000 (03:02 -0000)]
cbachman writes Bug 195:
Add back in the code which sets the default facility if none specified.  This
may cause issues with klogd when it tries to use the libc's syslog(), but
klogd comes with its own syslog() implementation so that's a none issue.  For
more info, please see the following:
http://sources.redhat.com/ml/libc-alpha/2000-03/msg00059.html

19 years agoimport more updates from glibc
Mike Frysinger [Sat, 16 Apr 2005 02:28:55 +0000 (02:28 -0000)]
import more updates from glibc

19 years agoimport fixes/updates from glibc-2.3
Mike Frysinger [Fri, 15 Apr 2005 22:04:36 +0000 (22:04 -0000)]
import fixes/updates from glibc-2.3

19 years agoAdd missing definition for DL_OPENED
Eric Andersen [Wed, 13 Apr 2005 11:29:04 +0000 (11:29 -0000)]
Add missing definition for DL_OPENED

19 years agoAdjust indentation
Eric Andersen [Wed, 13 Apr 2005 11:03:28 +0000 (11:03 -0000)]
Adjust indentation

19 years agoThis update gets mips working again.
Eric Andersen [Wed, 13 Apr 2005 11:01:11 +0000 (11:01 -0000)]
This update gets mips working again.

19 years agoFurther rework the mips syscalls
Eric Andersen [Wed, 13 Apr 2005 10:56:20 +0000 (10:56 -0000)]
Further rework the mips syscalls

19 years agoOn some wierd arches (i.e. mips), none of the early debug stuff
Eric Andersen [Wed, 13 Apr 2005 10:54:39 +0000 (10:54 -0000)]
On some wierd arches (i.e. mips), none of the early debug stuff
works at all, so disable the whole lot.

19 years agoFix bug 214, reported by aurel. This is a major update that
Joakim Tjernlund [Wed, 13 Apr 2005 08:49:54 +0000 (08:49 -0000)]
Fix bug 214, reported by aurel. This is a major update that
possibly break other apps. Please test. Send a LD_DEBUG=1 log if
there is a problem.

19 years agoDon't write out the terminating NULL char
Eric Andersen [Wed, 13 Apr 2005 06:02:32 +0000 (06:02 -0000)]
Don't write out the terminating NULL char

19 years agoRework the dl-startup.c ldso early debugging macros to be
Eric Andersen [Wed, 13 Apr 2005 01:44:45 +0000 (01:44 -0000)]
Rework the dl-startup.c ldso early debugging macros to be
significantly less horrible

19 years agoearly debug stuff goes to stderr, not _dl_debug_file
Eric Andersen [Tue, 12 Apr 2005 23:56:55 +0000 (23:56 -0000)]
early debug stuff goes to stderr, not _dl_debug_file

19 years agofix a thinko -- we cant use
Eric Andersen [Tue, 12 Apr 2005 23:52:29 +0000 (23:52 -0000)]
fix a thinko -- we cant use

19 years agoOnly dl-startup.c should be using the SEND_STDERR macros,
Eric Andersen [Tue, 12 Apr 2005 23:14:17 +0000 (23:14 -0000)]
Only dl-startup.c should be using the SEND_STDERR macros,
which are intended only for early debugging support.

19 years agoRemove __FORCE_SHAREABLE_TEXT_SEGMENTS__ hack from ldso itself.
Joakim Tjernlund [Tue, 12 Apr 2005 23:07:43 +0000 (23:07 -0000)]
Remove __FORCE_SHAREABLE_TEXT_SEGMENTS__ hack from ldso itself.

19 years agoReplaced modulo code with the modulo operator.
Tobias Anderberg [Thu, 7 Apr 2005 13:32:05 +0000 (13:32 -0000)]
Replaced modulo code with the modulo operator.

19 years agoremove pthread_atfork() prototype since SuSv3 doesnt *require* it and glibc-2.3.x...
Mike Frysinger [Wed, 6 Apr 2005 23:10:17 +0000 (23:10 -0000)]
remove pthread_atfork() prototype since SuSv3 doesnt *require* it and glibc-2.3.x has since punted it too from unistd.h

19 years agoPrepare PowerPC some more for standalone exection of ldso.
Joakim Tjernlund [Sun, 3 Apr 2005 19:16:55 +0000 (19:16 -0000)]
Prepare PowerPC some more for standalone exection of ldso.
Note that every arch that wants to support standalone execution needs
to align its stack pointer in crtX since ldso will adjust the stack pointer
when adjusting argc and argv in standalone mode.

19 years agominor cosmetic cleanup
Eric Andersen [Fri, 1 Apr 2005 20:17:12 +0000 (20:17 -0000)]
minor cosmetic cleanup

19 years agoCleanup the mips syscalls a bit more, and fix a few
Eric Andersen [Fri, 1 Apr 2005 19:47:07 +0000 (19:47 -0000)]
Cleanup the mips syscalls a bit more, and fix a few
annoying warnings.

19 years agoOptimize _dl_elf_hash(), both smaller and faster. Mostly
Joakim Tjernlund [Fri, 1 Apr 2005 17:11:55 +0000 (17:11 -0000)]
Optimize _dl_elf_hash(), both smaller and faster. Mostly
taken from glibc.

19 years agosh64 ldso updates and fixes.
Paul Mundt [Thu, 31 Mar 2005 19:30:38 +0000 (19:30 -0000)]
sh64 ldso updates and fixes.

Update the sh64 ldso backend to work with Jocke's ldso changes.
We also handle a few more relative relocations, and fix a few spots where
the LSB was being set incorrectly for SHmedia branches.

19 years agoAdd some more SH relocation types.
Paul Mundt [Thu, 31 Mar 2005 19:18:54 +0000 (19:18 -0000)]
Add some more SH relocation types.

19 years agopoint to osuosl
Eric Andersen [Thu, 31 Mar 2005 18:14:44 +0000 (18:14 -0000)]
point to osuosl

19 years agoMoved the addition of load address from the fast path
Joakim Tjernlund [Tue, 29 Mar 2005 13:47:21 +0000 (13:47 -0000)]
Moved the addition of load address from the fast path
where possible. This will also make ldso smaller.
However the patch touches all archs and I have only tested PPC and x86.

19 years agoLet mconfig support options specified using the menuconfig directive
Peter Kjellerstedt [Mon, 21 Mar 2005 16:38:20 +0000 (16:38 -0000)]
Let mconfig support options specified using the menuconfig directive
again (this code snippet seems to have vanished somewhere between the
original Linux 2.6 kconfig code and here).

19 years agoForgot to change name of builtin buffer during last rewrite.
Manuel Novoa III [Mon, 21 Mar 2005 14:48:49 +0000 (14:48 -0000)]
Forgot to change name of builtin buffer during last rewrite.

19 years agoPass _dl_fini function ptr to __uClibc_start_main().
Joakim Tjernlund [Mon, 21 Mar 2005 10:42:43 +0000 (10:42 -0000)]
Pass _dl_fini function ptr to __uClibc_start_main().

To actually use it, one must define _DL_DO_FINI_IN_LIBC globally.
That will also break ABI for apps linked with previous version of crtX.S.
They must be relinked with this version to work again.

19 years agoPrepare for moving ldso FINI handling to libc by passing _dl_fini. This should not...
Joakim Tjernlund [Mon, 21 Mar 2005 10:40:38 +0000 (10:40 -0000)]
Prepare for moving ldso FINI handling to libc by passing _dl_fini. This should not break ABI.
Minor cleanup as well.

19 years agoPass _dl_fini function ptr to __uClibc_start_main().
Joakim Tjernlund [Sun, 20 Mar 2005 23:37:24 +0000 (23:37 -0000)]
Pass _dl_fini function ptr to __uClibc_start_main().

To actually use it, one must define _DL_DO_FINI_IN_LIBC globally.
That will also break ABI for apps linked with previous version of crtX.S.
They must be relinked with this version to work again.

19 years agoPrepare for moving ldso FINI handling to libc by passing _dl_fini. This should not...
Joakim Tjernlund [Sun, 20 Mar 2005 23:18:28 +0000 (23:18 -0000)]
Prepare for moving ldso FINI handling to libc by passing _dl_fini. This should not break ABI.
Minor cleanup as well.

19 years agoPrepare for moving ldso FINI handling into libc.
Joakim Tjernlund [Sun, 20 Mar 2005 17:45:03 +0000 (17:45 -0000)]
Prepare for moving ldso FINI handling into libc.
#define _DL_DO_FINI_IN_LIBC to enable(the arch specific part needs to be in place first).

19 years agoMove ldso FINI handling into _dl_fini(). Add #ifndef _DL_DO_FINI_IN_LIBC around
Joakim Tjernlund [Sun, 20 Mar 2005 17:29:58 +0000 (17:29 -0000)]
Move ldso FINI handling into _dl_fini(). Add #ifndef _DL_DO_FINI_IN_LIBC around
registering _dl_fini with atexit(). This is a preparation to move the
FINI handling to libc.

19 years agoRemove dead code.
Joakim Tjernlund [Fri, 18 Mar 2005 12:47:26 +0000 (12:47 -0000)]
Remove dead code.

19 years agoForgot to commit the arch cleanup changes to m68k
Joakim Tjernlund [Fri, 18 Mar 2005 07:44:24 +0000 (07:44 -0000)]
Forgot to commit the arch cleanup changes to m68k

19 years agohave ldso.c depend on dl-startup.h too
Mike Frysinger [Fri, 18 Mar 2005 05:07:13 +0000 (05:07 -0000)]
have ldso.c depend on dl-startup.h too

19 years agoFix ldso for MIPS.
Joakim Tjernlund [Thu, 17 Mar 2005 22:54:48 +0000 (22:54 -0000)]
Fix ldso for MIPS.

19 years agoCorrected a typo (exection -> execution).
Peter Kjellerstedt [Thu, 17 Mar 2005 17:32:41 +0000 (17:32 -0000)]
Corrected a typo (exection -> execution).

19 years agoGeneral arch cleanup and prepare support for standalone
Joakim Tjernlund [Thu, 17 Mar 2005 17:14:06 +0000 (17:14 -0000)]
General arch cleanup and prepare support for standalone
execution of ldso.
Added new asm for MIPS to be tested.
All arches should retest.

19 years agoRevert last commit. If I had wanted to include that patch, I would have done
Manuel Novoa III [Thu, 17 Mar 2005 06:41:59 +0000 (06:41 -0000)]
Revert last commit.  If I had wanted to include that patch, I would have done
it myself at least a year and a half ago.

19 years agoallow shared code since it builds again
Mike Frysinger [Wed, 16 Mar 2005 23:22:01 +0000 (23:22 -0000)]
allow shared code since it builds again

19 years agocleanup & standardize
Mike Frysinger [Wed, 16 Mar 2005 23:20:55 +0000 (23:20 -0000)]
cleanup & standardize

19 years agoadd hack like m68k so it *builds* again ... probably needs to be cleaned up like...
Mike Frysinger [Wed, 16 Mar 2005 23:20:17 +0000 (23:20 -0000)]
add hack like m68k so it *builds* again ... probably needs to be cleaned up like m68k though ...

19 years agomake it compile again
Mike Frysinger [Wed, 16 Mar 2005 23:19:36 +0000 (23:19 -0000)]
make it compile again

19 years agomake sure we rebuild ldso.o when the dl-*.c files have been updated
Mike Frysinger [Wed, 16 Mar 2005 23:19:00 +0000 (23:19 -0000)]
make sure we rebuild ldso.o when the dl-*.c files have been updated

19 years agohttp://bugs.uclibc.org/view.php?id=165
Mike Frysinger [Wed, 16 Mar 2005 23:17:06 +0000 (23:17 -0000)]
http://bugs.uclibc.org/view.php?id=165
d1mag writes:
Compilation of _fpmaxtostr.c generate an internal error by m68k-elf-gcc, and
this patch has been used in uClinux-dist to fix it.

19 years agoimport updates from glibc
Mike Frysinger [Wed, 16 Mar 2005 23:13:30 +0000 (23:13 -0000)]
import updates from glibc

19 years agomove the compiler flags WARNINGS option
Mike Frysinger [Wed, 16 Mar 2005 23:12:44 +0000 (23:12 -0000)]
move the compiler flags WARNINGS option

19 years agoallow users to select MMU again
Mike Frysinger [Wed, 16 Mar 2005 23:12:06 +0000 (23:12 -0000)]
allow users to select MMU again

19 years agochange the reg class so it actually compiles
Mike Frysinger [Wed, 16 Mar 2005 23:11:16 +0000 (23:11 -0000)]
change the reg class so it actually compiles

19 years agowell shared compiles again, so might as well remove the perm disable
Mike Frysinger [Wed, 16 Mar 2005 03:36:51 +0000 (03:36 -0000)]
well shared compiles again, so might as well remove the perm disable

19 years agomerge the syscalls and punt the glibc import in the process (blah, what a waste of...
Mike Frysinger [Wed, 16 Mar 2005 03:35:38 +0000 (03:35 -0000)]
merge the syscalls and punt the glibc import in the process (blah, what a waste of time that was :D)

19 years agoupdates to match i386
Mike Frysinger [Wed, 16 Mar 2005 02:48:33 +0000 (02:48 -0000)]
updates to match i386

19 years agoclean up whitespace style and hack around a build failure or two
Mike Frysinger [Wed, 16 Mar 2005 02:48:05 +0000 (02:48 -0000)]
clean up whitespace style and hack around a build failure or two

19 years agofix 13mo+ old typo
Mike Frysinger [Wed, 16 Mar 2005 02:47:08 +0000 (02:47 -0000)]
fix 13mo+ old typo

19 years agowhitespace trim
Mike Frysinger [Wed, 16 Mar 2005 02:46:50 +0000 (02:46 -0000)]
whitespace trim

19 years agoclean up style to be match i386
Mike Frysinger [Wed, 16 Mar 2005 01:45:40 +0000 (01:45 -0000)]
clean up style to be match i386

19 years agoget rid of linux-headers hack ... rip code from glibc
Mike Frysinger [Wed, 16 Mar 2005 01:43:17 +0000 (01:43 -0000)]
get rid of linux-headers hack ... rip code from glibc

19 years agoerm, that #" broke stuff
Mike Frysinger [Wed, 16 Mar 2005 01:19:54 +0000 (01:19 -0000)]
erm, that #" broke stuff

19 years agoCROSS_COMPILE -> CROSS_COMPILER_PREFIX like busybox
Mike Frysinger [Wed, 16 Mar 2005 01:16:01 +0000 (01:16 -0000)]
CROSS_COMPILE -> CROSS_COMPILER_PREFIX like busybox

19 years agorename the Status categories to things actually used and sneak more whitespace fixes...
Mike Frysinger [Tue, 15 Mar 2005 23:56:18 +0000 (23:56 -0000)]
rename the Status categories to things actually used and sneak more whitespace fixes in too

19 years agoadd a Kconfig option for setting the $(CROSS) build variable
Mike Frysinger [Tue, 15 Mar 2005 23:55:42 +0000 (23:55 -0000)]
add a Kconfig option for setting the $(CROSS) build variable

19 years agoFix wierd mix of tabs and spaces
Eric Andersen [Tue, 15 Mar 2005 18:22:13 +0000 (18:22 -0000)]
Fix wierd mix of tabs and spaces

19 years agoAdd an initial pass at a maintainers list
Eric Andersen [Tue, 15 Mar 2005 18:16:13 +0000 (18:16 -0000)]
Add an initial pass at a maintainers list

19 years agoAdd _dl_boot() prototype.
Joakim Tjernlund [Tue, 15 Mar 2005 14:47:05 +0000 (14:47 -0000)]
Add _dl_boot() prototype.

19 years agoA little whitespace clean up.
Peter Kjellerstedt [Tue, 15 Mar 2005 10:44:45 +0000 (10:44 -0000)]
A little whitespace clean up.

19 years agoMade it compile again (and it even seems to work).
Peter Kjellerstedt [Tue, 15 Mar 2005 10:37:54 +0000 (10:37 -0000)]
Made it compile again (and it even seems to work).

19 years agoFix MIPS initial GOT relocation.
Joakim Tjernlund [Tue, 15 Mar 2005 07:40:40 +0000 (07:40 -0000)]
Fix MIPS initial GOT relocation.

19 years agoSame typo here.
Joakim Tjernlund [Mon, 14 Mar 2005 23:21:05 +0000 (23:21 -0000)]
Same typo here.

19 years agoOops, fix typo.
Joakim Tjernlund [Mon, 14 Mar 2005 23:10:19 +0000 (23:10 -0000)]
Oops, fix typo.

19 years agoMake mips at least compile
Eric Andersen [Mon, 14 Mar 2005 22:13:36 +0000 (22:13 -0000)]
Make mips at least compile

19 years agoFix up x86 so it compiles again.
Eric Andersen [Mon, 14 Mar 2005 22:09:14 +0000 (22:09 -0000)]
Fix up x86 so it compiles again.

19 years agoMake mips/mipsel syscalls no longer complain about the "use of memory input
Eric Andersen [Mon, 14 Mar 2005 18:41:23 +0000 (18:41 -0000)]
Make mips/mipsel syscalls no longer complain about the "use of memory input
without lvalue in asm".  Give the asm an lvalue so it can be happy.

19 years agoSimplify PT_INTERP handling.
Joakim Tjernlund [Mon, 14 Mar 2005 16:53:09 +0000 (16:53 -0000)]
Simplify PT_INTERP handling.
Add prototype for _dl_boot()

19 years agoGeneralize optimized relative reloc procesing.
Joakim Tjernlund [Mon, 14 Mar 2005 13:25:07 +0000 (13:25 -0000)]
Generalize optimized relative reloc procesing.
Add elf_machine_dynamic() and elf_machine_load_address() for
all archs. elf_machine_dynamic() replaces the #ifdef mess to
get at the GOT.  elf_machine_load_address() is needed to execute
ldso directly, this is not complete yet.

I probably broke one or two archs(only tested PPC) so please
try and report problems. For a report to be useful you need
to enable __SUPPORT_LD_DEBUG_EARLY__ and __SUPPORT_LD_DEBUG__

19 years agoForce suid apps to do unlazy binding of the PLT relocs.
Joakim Tjernlund [Mon, 14 Mar 2005 08:48:42 +0000 (08:48 -0000)]
Force suid apps to do unlazy binding of the PLT relocs.
See http://bugs.gentoo.org/show_bug.cgi?id=71609 for
more details. Reported by Peter Mazinger.

19 years ago- added externs to keep gcc quiet about implicit declaration of 3 functions
Ned Ludd [Sat, 12 Mar 2005 19:13:41 +0000 (19:13 -0000)]
- added externs to keep gcc quiet about implicit declaration of 3 functions

19 years agochown syntax 0.0 -> 0:0
Mike Frysinger [Thu, 10 Mar 2005 19:32:36 +0000 (19:32 -0000)]
chown syntax 0.0 -> 0:0

19 years agoUse DT_RELCONT_IDX to optimize the relocation of R_PPC_RELATIVE
Joakim Tjernlund [Thu, 10 Mar 2005 16:29:22 +0000 (16:29 -0000)]
Use DT_RELCONT_IDX to optimize the relocation of R_PPC_RELATIVE
relocs. All RELA arches can probably copy this. REL archs
will have to delete the "+ rpnt->r_addend" from the loop.

19 years agoadd a check target cause i'm lazy
Mike Frysinger [Wed, 9 Mar 2005 05:44:07 +0000 (05:44 -0000)]
add a check target cause i'm lazy

19 years agofix typo
Mike Frysinger [Wed, 9 Mar 2005 05:43:40 +0000 (05:43 -0000)]
fix typo

19 years agoDisable float wrappers for functions that are not presently
Eric Andersen [Mon, 7 Mar 2005 20:15:39 +0000 (20:15 -0000)]
Disable float wrappers for functions that are not presently
implemented in libm

19 years agosplit the float wrappers into separate object files
Eric Andersen [Mon, 7 Mar 2005 10:52:38 +0000 (10:52 -0000)]
split the float wrappers into separate object files

19 years agoTrim off whitespace
Eric Andersen [Sun, 6 Mar 2005 07:11:53 +0000 (07:11 -0000)]
Trim off whitespace

19 years agomake sure we only create libm.a before running through subdirs, then install it
Mike Frysinger [Tue, 1 Mar 2005 04:43:58 +0000 (04:43 -0000)]
make sure we only create libm.a before running through subdirs, then install it

19 years agoFix reported bug in error return behavior of sem_timedwait().
Manuel Novoa III [Mon, 28 Feb 2005 01:52:50 +0000 (01:52 -0000)]
Fix reported bug in error return behavior of sem_timedwait().

19 years ago- avoid segfaulting when rlimit stack is set to low for gen_wctype by calling setrlim...
Ned Ludd [Sat, 26 Feb 2005 18:54:07 +0000 (18:54 -0000)]
- avoid segfaulting when rlimit stack is set to low for gen_wctype by calling setrlimit(RLIMIT_STACK, &limit)

19 years agodoh! We'll get this one right yet...
Eric Andersen [Fri, 25 Feb 2005 05:58:58 +0000 (05:58 -0000)]
doh!  We'll get this one right yet...

19 years agomake sure subdirs requires the toplevel $(LIBM) already exists
Mike Frysinger [Wed, 23 Feb 2005 04:05:40 +0000 (04:05 -0000)]
make sure subdirs requires the toplevel $(LIBM) already exists

19 years agohave the directories themselves rather than the alias subdirs depend on $(LIBPTHREAD)
Mike Frysinger [Wed, 23 Feb 2005 04:05:19 +0000 (04:05 -0000)]
have the directories themselves rather than the alias subdirs depend on $(LIBPTHREAD)

19 years agopoint to buildroot webpage
Eric Andersen [Mon, 21 Feb 2005 22:02:27 +0000 (22:02 -0000)]
point to buildroot webpage

19 years agoupdate so argc/argv/envp work and binaries dont just segfault immediatly
Mike Frysinger [Mon, 21 Feb 2005 14:58:28 +0000 (14:58 -0000)]
update so argc/argv/envp work and binaries dont just segfault immediatly

19 years agoSome uClinux architectures do not define pivot_root
Eric Andersen [Fri, 18 Feb 2005 16:38:06 +0000 (16:38 -0000)]
Some uClinux architectures do not define pivot_root

19 years agoMerge pt-machine.h for the blackfin from the Analog
Eric Andersen [Fri, 18 Feb 2005 16:33:15 +0000 (16:33 -0000)]
Merge pt-machine.h for the blackfin from the Analog
source tree.

19 years agoSince libdl is pretty small, and not likely to benefit from mklibs.py
Eric Andersen [Wed, 16 Feb 2005 06:42:32 +0000 (06:42 -0000)]
Since libdl is pretty small, and not likely to benefit from mklibs.py
and similar, lets just remove libdl_pic.a and avoid the issue

19 years agoUnlike the other static libs, libdl.a and libdl_pic.a are different.
Manuel Novoa III [Wed, 16 Feb 2005 06:38:13 +0000 (06:38 -0000)]
Unlike the other static libs, libdl.a and libdl_pic.a are different.
So we need to copy the actual libdl_pic.a or bad things happen when
optimizing libdl.so with mklibs.py.

19 years agodont need sysdep.h
Mike Frysinger [Tue, 15 Feb 2005 01:47:15 +0000 (01:47 -0000)]
dont need sysdep.h