OSDN Git Service
Eric Andersen [Fri, 15 Nov 2002 01:06:42 +0000 (01:06 -0000)]
Ronald Wahl writes:
I noticed that dlclose() does not work since libraries loaded with
dlopen are not marked as "loaded_file". This breaks apache with dynamic
modules. I append a small fix against uClibc-0.9.16.
Eric Andersen [Fri, 15 Nov 2002 00:52:59 +0000 (00:52 -0000)]
I was an idiot and put _fini into the wrong register. Duh.
This patch from David Meggy fixes it...
Eric Andersen [Thu, 14 Nov 2002 04:06:07 +0000 (04:06 -0000)]
As released in uClibc 0.9.16, regex was being compiled without
wide char support, even when the rest of uClibc was. This led
to anyone using regex segfaulting...
-Erik
Eric Andersen [Thu, 14 Nov 2002 00:56:49 +0000 (00:56 -0000)]
Minor cleanup
-Erik
Eric Andersen [Thu, 14 Nov 2002 00:55:46 +0000 (00:55 -0000)]
Implement sendfile64
-Erik
Eric Andersen [Thu, 14 Nov 2002 00:53:49 +0000 (00:53 -0000)]
Add missing quotes
-Erik
Eric Andersen [Tue, 12 Nov 2002 20:09:29 +0000 (20:09 -0000)]
A powerpc patch from Ronald Wahl:
Ok, now i got it after a day of work.
I have had a look into glibc and found the following:
sysdeps/powerpc/dl-machine.c:
...
case R_PPC_JMP_SLOT:
/* It used to be that elf_machine_fixup_plt was used here,
but that doesn't work when ld.so relocates itself
for the second time. On the bright side, there's
no need to worry about thread-safety here. */
{
Elf32_Sword delta = finaladdr - (Elf32_Word) reloc_addr;
...
The comment made me suspicious. The same position in uClibc looks like this:
ldso/ldso/powerpc/elfinterp.c:
...
case R_PPC_JMP_SLOT:
{
unsigned long targ_addr = (unsigned long)_dl_linux_resolve;
int delta = targ_addr - (unsigned long)reloc_addr;
...
When I change it to the following it works:
...
case R_PPC_JMP_SLOT:
{
unsigned long targ_addr = *reloc_addr;
int delta = targ_addr - (unsigned long)reloc_addr;
...
I hope it will not break anything. Can anyone review this change and
commit it into CVS?
thanks,
ron
"Steven J. Hill" [Mon, 11 Nov 2002 14:46:26 +0000 (14:46 -0000)]
Add in 'ldso' to directory list since 'make clean' was not recursing
into it.
Eric Andersen [Sun, 10 Nov 2002 02:24:11 +0000 (02:24 -0000)]
Don't link to us.kernel.org
Aaron Lehmann [Sat, 9 Nov 2002 21:09:17 +0000 (21:09 -0000)]
fix typo
Eric Andersen [Sat, 9 Nov 2002 20:58:05 +0000 (20:58 -0000)]
Update from upstream
Eric Andersen [Sat, 9 Nov 2002 07:38:43 +0000 (07:38 -0000)]
For arm use -mcpu for the moment, since it seems to work
Eric Andersen [Sat, 9 Nov 2002 07:37:52 +0000 (07:37 -0000)]
typo fixes
Eric Andersen [Sat, 9 Nov 2002 07:36:45 +0000 (07:36 -0000)]
Make sure we have __linux__ defined
Eric Andersen [Sat, 9 Nov 2002 04:53:05 +0000 (04:53 -0000)]
Manditory typo..
Eric Andersen [Sat, 9 Nov 2002 04:25:54 +0000 (04:25 -0000)]
Final update for 0.9.16
Eric Andersen [Sat, 9 Nov 2002 00:21:19 +0000 (00:21 -0000)]
Patch from Simon Rowe to try and build asm libm code
only when HAS_FPU is set. If you don't have an FPU
then usm FPU code isn't going to help much...
Eric Andersen [Sat, 9 Nov 2002 00:13:35 +0000 (00:13 -0000)]
Patch from Stefan Allius, rebuild extra/config/conf if it is missing
following a make clean
Eric Andersen [Sat, 9 Nov 2002 00:11:58 +0000 (00:11 -0000)]
Patch from Stefan Allius: avoid implicit casting of void *(64bit) to int(32bit)
Eric Andersen [Fri, 8 Nov 2002 19:34:22 +0000 (19:34 -0000)]
Re-enable the strchrnul and rawmemchr tests
Eric Andersen [Fri, 8 Nov 2002 19:30:15 +0000 (19:30 -0000)]
Scare people away from enabling locale support for now.
Eric Andersen [Fri, 8 Nov 2002 19:29:11 +0000 (19:29 -0000)]
Disable ldso debugging. It should not be on by default.
Eric Andersen [Fri, 8 Nov 2002 09:51:25 +0000 (09:51 -0000)]
Use NATIVE_CC. Don't hard code using 'gcc'.
-Erik
Eric Andersen [Fri, 8 Nov 2002 09:14:02 +0000 (09:14 -0000)]
Patch from Stefan Allius for libgcc multilib support
this is the last patch, we need to make the support of multitarget libgcc
complete.
---------------------------------
In ldso/ldso/Makefile
I added the CPU_LDFLAGS-y to the LDFLAGS
---------------------------------
In libc/Makefile
I set the LDFLAGS for the script get-needed-objects.sh with CPU_LDFLAGS-y
---------------------------------
In extra/scripts/get-needed-object.sh
we now use the LIBGCC from Rules.mak and call LD with LDFLAGS
(==CPU_LDFLAGS-y). Addtionally I grep the NM output, to fix the unresolved
external __GLOBAL_OFFSET_TABLE__ on SuperH targets.
---------------------------------
Eric Andersen [Fri, 8 Nov 2002 08:40:09 +0000 (08:40 -0000)]
Disble unimplemented function prototypes
Eric Andersen [Fri, 8 Nov 2002 08:27:59 +0000 (08:27 -0000)]
Patch from Stefan Allius to fixup SuperH ARCH_HAS_MMU and ARCH_HAS_FPU
Miles Bader [Fri, 8 Nov 2002 07:04:28 +0000 (07:04 -0000)]
Initial checkin.
Eric Andersen [Fri, 8 Nov 2002 05:12:33 +0000 (05:12 -0000)]
Add CPU_CFLAGS-y into LIBGCC_CFLAGS so multilibs gcc will behave
itself. Revery the "=" to ":=" change, so people like Miles can
set stuff in their .config
Eric Andersen [Fri, 8 Nov 2002 05:10:19 +0000 (05:10 -0000)]
Add defaults for powerpc
Eric Andersen [Fri, 8 Nov 2002 05:00:49 +0000 (05:00 -0000)]
Kill the now obsolete uClibc_config_fix.pl
Eric Andersen [Fri, 8 Nov 2002 04:56:45 +0000 (04:56 -0000)]
Add a default for sh
Manuel Novoa III [Fri, 8 Nov 2002 04:34:06 +0000 (04:34 -0000)]
Add notes about setvbuf and struct tm extension fields tm_gmtoff and tm_zone.
Manuel Novoa III [Fri, 8 Nov 2002 04:21:58 +0000 (04:21 -0000)]
Added some temporary "stubs" for collation.
strcoll is an alias for strcmp.
strxfrm is an alias for strlcpy.
wcscoll is an alias for wcscmp.
wcsxfrm is implemented as a wchar version of strlcpy.
Real locale-dependent implementations are coming soon.
Eric Andersen [Fri, 8 Nov 2002 03:33:50 +0000 (03:33 -0000)]
Cleanup everything
Manuel Novoa III [Fri, 8 Nov 2002 03:32:34 +0000 (03:32 -0000)]
Add wcwidth and wcswidth, based on Markus Kuhn's wcwidth of 2002-05-08.
Added some size/speed optimizations and integrated it into my locale
framework. Minimally tested at the moment, but the stub C-locale
version (which most people would probably be using) should be fine.
Eric Andersen [Fri, 8 Nov 2002 03:22:57 +0000 (03:22 -0000)]
Leave ldso debugging off by default
Eric Andersen [Fri, 8 Nov 2002 03:20:59 +0000 (03:20 -0000)]
Fix a silly compile bug
Eric Andersen [Fri, 8 Nov 2002 03:11:58 +0000 (03:11 -0000)]
Doh! Leave ldso debugging off by default..
Eric Andersen [Fri, 8 Nov 2002 03:00:13 +0000 (03:00 -0000)]
Construct a default arm configuration
Eric Andersen [Fri, 8 Nov 2002 02:28:40 +0000 (02:28 -0000)]
Some minor changes from Stefan Allius to make conf and
mconf compile under Solaris.
Eric Andersen [Fri, 8 Nov 2002 02:18:16 +0000 (02:18 -0000)]
Another SuperH patch from Stefan Allius. This make it so
the SuperH lib loader can be compiled by GCC 3.3
Eric Andersen [Fri, 8 Nov 2002 02:12:35 +0000 (02:12 -0000)]
Update the docs
Eric Andersen [Fri, 8 Nov 2002 01:58:45 +0000 (01:58 -0000)]
Large cleanup patch, based in large part on a patch from
Stefan Allius, which adds a great deal of sanity.
Eric Andersen [Fri, 8 Nov 2002 00:47:07 +0000 (00:47 -0000)]
Merge an update from upstream
Eric Andersen [Fri, 8 Nov 2002 00:17:44 +0000 (00:17 -0000)]
Update doc reference
"Steven J. Hill" [Thu, 7 Nov 2002 21:58:06 +0000 (21:58 -0000)]
Changes for MIPS and new configuration system.
"Steven J. Hill" [Thu, 7 Nov 2002 21:07:56 +0000 (21:07 -0000)]
Fix target determination for MIPSEL.
Manuel Novoa III [Thu, 7 Nov 2002 19:45:54 +0000 (19:45 -0000)]
Remove atof from strtod.o...
Manuel Novoa III [Thu, 7 Nov 2002 19:43:29 +0000 (19:43 -0000)]
Okay, fix for atof _correctly_...
Manuel Novoa III [Thu, 7 Nov 2002 19:40:37 +0000 (19:40 -0000)]
Apparently I forgot to build atof...
Eric Andersen [Thu, 7 Nov 2002 18:33:49 +0000 (18:33 -0000)]
Fixup function prototype for __uint128_t which fixes the compile
on powerpc with gcc 3.2.
-Erik
"Steven J. Hill" [Thu, 7 Nov 2002 17:49:07 +0000 (17:49 -0000)]
Fixed makefiles to remove binaries generated for the configuration
menu system when doing a 'make clean'.
Eric Andersen [Thu, 7 Nov 2002 05:27:54 +0000 (05:27 -0000)]
Add missing blank line
Miles Bader [Thu, 7 Nov 2002 05:03:04 +0000 (05:03 -0000)]
Rename `Config.v850e' to `Config.v850'.
Miles Bader [Thu, 7 Nov 2002 05:02:26 +0000 (05:02 -0000)]
(UCLIBC_HAS_MMU): Depend on !ARCH_HAS_NO_MMU, rather than just using it
to set the default.
(HAS_FPU): Depend on !ARCH_HAS_NO_FPU.
(USE_GCC_SOFT_FLOAT_OPTION): New option.
Miles Bader [Thu, 7 Nov 2002 05:00:45 +0000 (05:00 -0000)]
(DOPIC): Depend on !HAVE_NO_PIC.
(UCLIBC_HAS_FULL_RPC): default to `y' if !HAVE_SHARED.
(SYSTEM_LDSO): Depend on HAVE_SHARED.
(DOASSERTS): New option.
Miles Bader [Thu, 7 Nov 2002 04:58:27 +0000 (04:58 -0000)]
* Make -DNDEBUG depend on DOASSERTS, not DODEBUG
* Make -msoft-float depend on USE_GCC_SOFT_FLOAT_OPTION, not
UCLIBC_HAS_SOFT_FLOAT.
Eric Andersen [Wed, 6 Nov 2002 20:16:27 +0000 (20:16 -0000)]
Update soft-float handling
Eric Andersen [Wed, 6 Nov 2002 18:49:33 +0000 (18:49 -0000)]
Increase maximum .config line size to 1024.
Eric Andersen [Wed, 6 Nov 2002 18:38:24 +0000 (18:38 -0000)]
Recognize 'n' tristate/boolean symbol value in the .config file,
allowing more convenient manual editing of the .config file. Patch
by Petr Baudis, skimmed from linux-kernel mailing list.
Eric Andersen [Wed, 6 Nov 2002 16:33:29 +0000 (16:33 -0000)]
Fix up a compile error
Eric Andersen [Wed, 6 Nov 2002 15:19:05 +0000 (15:19 -0000)]
Cleanup patch from Simon Rowe
Manuel Novoa III [Tue, 5 Nov 2002 22:38:29 +0000 (22:38 -0000)]
Forgot to change btowc and wctob when I changed the wc<->mb functions yesterday.
Eric Andersen [Tue, 5 Nov 2002 21:23:04 +0000 (21:23 -0000)]
For now, leave the "Oddly enough, __fsetlocking() is NOT threadsafe."
comment as an mjn3 only item.
Eric Andersen [Tue, 5 Nov 2002 21:17:23 +0000 (21:17 -0000)]
Cleanup soft-float support
Eric Andersen [Tue, 5 Nov 2002 21:06:51 +0000 (21:06 -0000)]
Fixup handling of disabled options
Eric Andersen [Tue, 5 Nov 2002 20:30:38 +0000 (20:30 -0000)]
Fix gcc-uClibc.h dependancies
Eric Andersen [Tue, 5 Nov 2002 18:21:12 +0000 (18:21 -0000)]
Massive scrubbing of the shared lib loader error handling.
Move all configuration options into the new config system.
-Erik
Eric Andersen [Tue, 5 Nov 2002 16:28:56 +0000 (16:28 -0000)]
A patch from Danny Lepage so that we do not setting on symlinks
when looking for a device match, and instead keep looking till
we find the correct device.
Eric Andersen [Tue, 5 Nov 2002 15:58:25 +0000 (15:58 -0000)]
Expand NIS comments
Eric Andersen [Tue, 5 Nov 2002 05:56:27 +0000 (05:56 -0000)]
Standardize LIBGCC_DIR
Eric Andersen [Tue, 5 Nov 2002 05:46:07 +0000 (05:46 -0000)]
Kill legacy DOPIC=true assignment
Eric Andersen [Tue, 5 Nov 2002 05:41:33 +0000 (05:41 -0000)]
Patch from Stefan Allius -- export LIBGCC
Eric Andersen [Tue, 5 Nov 2002 05:39:33 +0000 (05:39 -0000)]
Patch from Stefan Allius. Include CPU_CFLAGS when compiling
initfini
Eric Andersen [Tue, 5 Nov 2002 05:02:53 +0000 (05:02 -0000)]
Patch from M. R. Brown to fix 'make defconfig'
Eric Andersen [Tue, 5 Nov 2002 04:49:14 +0000 (04:49 -0000)]
Export TARGET_ARCH
Manuel Novoa III [Mon, 4 Nov 2002 22:21:26 +0000 (22:21 -0000)]
Hit the highlights of glibc differences in my code. Not yet complete though.
Manuel Novoa III [Mon, 4 Nov 2002 21:27:46 +0000 (21:27 -0000)]
Add printf wchar support for %lc (%C) and %ls (%S).
Require printf format strings to be valid multibyte strings beginning and
ending in their initial shift state, as per the stds.
Fixed a bug in _wchar_wcsntoutf8s(). Don't store wcs position if dst is NULL.
Also, introduce an awful hack into _wchar_wcsntoutf8s() and wcsrtombs() in
order to support %ls in printf. See comments below for details.
Change behaviour of wc<->mb functions when in the C locale. Now they do
a 1-1 map for the range 0x80-UCHAR_MAX. This is for backwards compatibility
and consistency with the stds requirements that a printf format string by
a valid multibyte string beginning and ending in it's initial shift state.
Manuel Novoa III [Mon, 4 Nov 2002 21:18:19 +0000 (21:18 -0000)]
This fixes a broken build for me.
Eric Andersen [Mon, 4 Nov 2002 20:49:54 +0000 (20:49 -0000)]
Fixup so we use soft-float when HAS_FPU is disabled.
-Erik
Eric Andersen [Mon, 4 Nov 2002 20:27:47 +0000 (20:27 -0000)]
I dunno why there were align 5, but align 4 is much more sensible.
Eric Andersen [Mon, 4 Nov 2002 20:19:07 +0000 (20:19 -0000)]
Kill sysdep.h and fixup the SH asm to not use it.
-Erik
Eric Andersen [Mon, 4 Nov 2002 19:52:28 +0000 (19:52 -0000)]
Don't use ENTRY(), make the asm explicit
-Erik
Eric Andersen [Mon, 4 Nov 2002 18:36:55 +0000 (18:36 -0000)]
Add link to search google's uclibc archive
Eric Andersen [Mon, 4 Nov 2002 15:06:25 +0000 (15:06 -0000)]
Oops. Fix compilation on arm.
-Erik
Eric Andersen [Sun, 3 Nov 2002 23:18:09 +0000 (23:18 -0000)]
A patch from Vincent Sanders to fix the arm implementation of
ioperm() and iopl()
Manuel Novoa III [Sun, 3 Nov 2002 21:00:15 +0000 (21:00 -0000)]
It was easy enough to respect locale-specific decimal point for printf
floating point output, so at least implement that. But grouping will
have to wait for the rewrite of _dtostr.
Manuel Novoa III [Sun, 3 Nov 2002 20:13:27 +0000 (20:13 -0000)]
Implement locale-specific grouping in printf for base 10 integer conversions
when the grouping flag "'" is specified. Grouping for floating point values
may wait until I do a rewrite of the floating pt to string code...
Eric Andersen [Sun, 3 Nov 2002 15:13:09 +0000 (15:13 -0000)]
Several SH lib loader patches by Stefan Allius <allius@atecom.com>
and "M. R. Brown" <mrbrown@0xd6.org>
Eric Andersen [Sun, 3 Nov 2002 15:04:19 +0000 (15:04 -0000)]
Another update to initfini.awk and initfini.c from Stefan Allius
to hopefully address SH wierdness. Now works on other architecture
properly as well.
Eric Andersen [Sun, 3 Nov 2002 15:01:18 +0000 (15:01 -0000)]
Properly prefix some symbols
Eric Andersen [Sun, 3 Nov 2002 14:59:00 +0000 (14:59 -0000)]
Yet more config system updating.
Eric Andersen [Sun, 3 Nov 2002 14:12:29 +0000 (14:12 -0000)]
Patch from M. R. Brown <mrbrown@0xd6.org> to get rid of
"depreciated multi-line string literals" warnings
Eric Andersen [Sun, 3 Nov 2002 14:04:05 +0000 (14:04 -0000)]
Patch from "Cho, Seong-Myun" <smcho@xecurenexus.com> to limit
things to the lower 16 bits of 'id'.
Eric Andersen [Sun, 3 Nov 2002 13:22:00 +0000 (13:22 -0000)]
Use "include_config" not "include-config"
Eric Andersen [Sat, 2 Nov 2002 16:47:30 +0000 (16:47 -0000)]
kill some ancient stuff that appears to be lingering
Eric Andersen [Sat, 2 Nov 2002 16:34:24 +0000 (16:34 -0000)]
Default to SH4
Eric Andersen [Sat, 2 Nov 2002 16:24:12 +0000 (16:24 -0000)]
update all the Config files for the various arches so they work with the new
config system. Hopefully I got everything here correct...
-Erik
Eric Andersen [Sat, 2 Nov 2002 14:58:18 +0000 (14:58 -0000)]
Update TODO items
Eric Andersen [Sat, 2 Nov 2002 04:09:13 +0000 (04:09 -0000)]
A few cosmetic adjustments, and fixup the makefile a bit