OSDN Git Service

uclinux-h8/uClibc.git
18 years agoBug 618, Thomas Chou: update build flags for nios target
Mike Frysinger [Wed, 4 Jan 2006 07:06:49 +0000 (07:06 -0000)]
Bug 618, Thomas Chou: update build flags for nios target

18 years agoBug 618, Thomas Chou: update crt to new 0.9.28 uClibc style
Mike Frysinger [Wed, 4 Jan 2006 07:03:57 +0000 (07:03 -0000)]
Bug 618, Thomas Chou: update crt to new 0.9.28 uClibc style

18 years agounused
Mike Frysinger [Wed, 4 Jan 2006 06:57:46 +0000 (06:57 -0000)]
unused

18 years agonow we can safely declare these hidden
Mike Frysinger [Wed, 4 Jan 2006 03:48:09 +0000 (03:48 -0000)]
now we can safely declare these hidden

18 years agoupdate pthread weak handling to the style glibc uses
Mike Frysinger [Wed, 4 Jan 2006 03:45:56 +0000 (03:45 -0000)]
update pthread weak handling to the style glibc uses

18 years agotweak __progname handling some more since some [bad] apps actually try and use it
Mike Frysinger [Wed, 4 Jan 2006 00:46:31 +0000 (00:46 -0000)]
tweak __progname handling some more since some [bad] apps actually try and use it

18 years agouse weak handling instead of .set
Mike Frysinger [Wed, 4 Jan 2006 00:44:42 +0000 (00:44 -0000)]
use weak handling instead of .set

18 years agokill off some unused warnings
Mike Frysinger [Wed, 4 Jan 2006 00:43:37 +0000 (00:43 -0000)]
kill off some unused warnings

18 years agoif arch doesnt provide _syscall6(), we need to alias the 64bit version
Mike Frysinger [Wed, 4 Jan 2006 00:43:25 +0000 (00:43 -0000)]
if arch doesnt provide _syscall6(), we need to alias the 64bit version

18 years agoLost wcschr()
Peter S. Mazinger [Tue, 3 Jan 2006 19:17:17 +0000 (19:17 -0000)]
Lost wcschr()

18 years agokeep __USE_GNU for program_invocation_*_name
Peter S. Mazinger [Tue, 3 Jan 2006 19:04:37 +0000 (19:04 -0000)]
keep __USE_GNU for program_invocation_*_name

18 years agoGet rid of tolower/toupper jump reloc, correct tow* for XLOCALE
Peter S. Mazinger [Tue, 3 Jan 2006 17:17:14 +0000 (17:17 -0000)]
Get rid of tolower/toupper jump reloc, correct tow* for XLOCALE

18 years agoAdd __toupper, remove unneeded undefs for tolower
Peter S. Mazinger [Tue, 3 Jan 2006 17:15:15 +0000 (17:15 -0000)]
Add __toupper, remove unneeded undefs for tolower

18 years agoProvide __tolower and use it
Peter S. Mazinger [Tue, 3 Jan 2006 15:48:34 +0000 (15:48 -0000)]
Provide __tolower and use it

18 years agoRemove textrel
Peter S. Mazinger [Tue, 3 Jan 2006 15:47:13 +0000 (15:47 -0000)]
Remove textrel

18 years agoRevert a change until I find the textrel cause
Peter S. Mazinger [Tue, 3 Jan 2006 15:25:34 +0000 (15:25 -0000)]
Revert a change until I find the textrel cause

18 years agoComplete split of all the string functions. Hope haven't broken too much. wcscoll...
Peter S. Mazinger [Tue, 3 Jan 2006 14:50:18 +0000 (14:50 -0000)]
Complete split of all the string functions. Hope haven't broken too much. wcscoll/strcoll needs some love ...

18 years agoUse strong_alias everywhere instead of .global/.set. Correct some cases where the...
Peter S. Mazinger [Tue, 3 Jan 2006 14:46:56 +0000 (14:46 -0000)]
Use strong_alias everywhere instead of .global/.set. Correct some cases where the non-hidden version was used.

18 years agoAdd more hidden prototypes
Peter S. Mazinger [Tue, 3 Jan 2006 14:44:12 +0000 (14:44 -0000)]
Add more hidden prototypes

18 years agoAdd proper guard, so that we don't see the internal header in userspace
Peter S. Mazinger [Tue, 3 Jan 2006 10:37:10 +0000 (10:37 -0000)]
Add proper guard, so that we don't see the internal header in userspace

18 years agotweak what is likely() in the argv[0] parsing
Mike Frysinger [Tue, 3 Jan 2006 06:59:24 +0000 (06:59 -0000)]
tweak what is likely() in the argv[0] parsing

18 years agoadd optional support for program_invocation_name/program_invocation_short_name
Mike Frysinger [Tue, 3 Jan 2006 06:55:52 +0000 (06:55 -0000)]
add optional support for program_invocation_name/program_invocation_short_name

18 years agowe dont need to loop calling abort() because abort() already loops for us
Mike Frysinger [Tue, 3 Jan 2006 06:24:22 +0000 (06:24 -0000)]
we dont need to loop calling abort() because abort() already loops for us

18 years agoJoseph S. Myers writes:
Mike Frysinger [Tue, 3 Jan 2006 05:13:16 +0000 (05:13 -0000)]
Joseph S. Myers writes:
This patch fixes the build of libpthread for MIPS.  The definition of
_test_and_set uses __THROW after the prototype: but attributes are only
accepted after the prototype in function declarations which aren't
definitions, not between the prototype and the function body in a
definition.  The proper macro to use here is __NTH (placing the attribute
before the prototype).

glibc does the same thing, so this is also a sync up with glibc

18 years agoJoseph S. Myers writes:
Mike Frysinger [Tue, 3 Jan 2006 05:05:03 +0000 (05:05 -0000)]
Joseph S. Myers writes:
I needed this patch setting CPU_LDFLAGS to build uClibc for little-endian
MIPS (with a compiler with both little-endian and big-endian multilibs);
otherwise it used ld (in default big-endian mode) to link little-endian
objects.

18 years agoimport a bunch of defines from gnu binutils including blackfin for Lie Zhang
Mike Frysinger [Tue, 3 Jan 2006 04:31:16 +0000 (04:31 -0000)]
import a bunch of defines from gnu binutils including blackfin for Lie Zhang

18 years agoimport a bunch of EM defines from gnu binutils
Mike Frysinger [Tue, 3 Jan 2006 04:30:41 +0000 (04:30 -0000)]
import a bunch of EM defines from gnu binutils

18 years agotouchup comments and define Blackfin for Jie Zhang
Mike Frysinger [Tue, 3 Jan 2006 03:52:32 +0000 (03:52 -0000)]
touchup comments and define Blackfin for Jie Zhang

18 years agofix previous commit so that __uClibc_init() is run for non-mmu cases again as report...
Mike Frysinger [Tue, 3 Jan 2006 01:00:00 +0000 (01:00 -0000)]
fix previous commit so that __uClibc_init() is run for non-mmu cases again as report by Thomas in Bug 618

18 years agoUse attribute_noreturn
Peter S. Mazinger [Mon, 2 Jan 2006 21:27:33 +0000 (21:27 -0000)]
Use attribute_noreturn

18 years agoRemove -unhonoured- comment
Peter S. Mazinger [Mon, 2 Jan 2006 21:26:52 +0000 (21:26 -0000)]
Remove -unhonoured- comment

18 years agoRemove fpu_control.h handling as well
Peter S. Mazinger [Mon, 2 Jan 2006 20:44:18 +0000 (20:44 -0000)]
Remove fpu_control.h handling as well

18 years agoTARGET_ARCH is already stripped, do not do it again for nios2
Peter S. Mazinger [Mon, 2 Jan 2006 15:57:11 +0000 (15:57 -0000)]
TARGET_ARCH is already stripped, do not do it again for nios2

18 years agofpu_control.h is handled generally in topdir/Makefile.in, remove rule for it
Peter S. Mazinger [Mon, 2 Jan 2006 15:08:09 +0000 (15:08 -0000)]
fpu_control.h is handled generally in topdir/Makefile.in, remove rule for it

18 years agoquote arg to shell-ed grep as pointed out by Jan-Benedict Glaw
Mike Frysinger [Mon, 2 Jan 2006 00:31:27 +0000 (00:31 -0000)]
quote arg to shell-ed grep as pointed out by Jan-Benedict Glaw

18 years agofor /bin/sh, use `` instead of $() as pointed out by Jan-Benedict Glaw on the mailing...
Mike Frysinger [Mon, 2 Jan 2006 00:30:00 +0000 (00:30 -0000)]
for /bin/sh, use `` instead of $() as pointed out by Jan-Benedict Glaw on the mailing list

18 years agoprevious st_dev change from unsigned long (4bytes) to __dev_t (8bytes) needed to...
Mike Frysinger [Sun, 1 Jan 2006 23:49:48 +0000 (23:49 -0000)]
previous st_dev change from unsigned long (4bytes) to __dev_t (8bytes) needed to shrink the pads as well to maintain ABI compat

18 years agofix path to heap.h as point out by thomas_chou in Bug 617
Mike Frysinger [Fri, 30 Dec 2005 23:13:53 +0000 (23:13 -0000)]
fix path to heap.h as point out by thomas_chou in Bug 617

18 years agoBug 616, Thomas Chou: dont use -msoft-float on nios2 ports
Mike Frysinger [Fri, 30 Dec 2005 06:58:39 +0000 (06:58 -0000)]
Bug 616, Thomas Chou: dont use -msoft-float on nios2 ports

18 years agoupdate to new build system
Mike Frysinger [Fri, 30 Dec 2005 06:56:33 +0000 (06:56 -0000)]
update to new build system

18 years agoBug 616, Thomas Chou: update crt to new 0.9.28 uClibc style
Mike Frysinger [Fri, 30 Dec 2005 06:54:32 +0000 (06:54 -0000)]
Bug 616, Thomas Chou: update crt to new 0.9.28 uClibc style

18 years agotell people to ignore these two warnings unless someone can figure out how to make...
Mike Frysinger [Fri, 30 Dec 2005 06:27:33 +0000 (06:27 -0000)]
tell people to ignore these two warnings unless someone can figure out how to make them go away ... the vfork() is safe due to the logic following it

18 years agouse ElfW(Addr) instead of ElfW(Word) since elf word types are always 32bits in size...
Mike Frysinger [Fri, 30 Dec 2005 06:26:55 +0000 (06:26 -0000)]
use ElfW(Addr) instead of ElfW(Word) since elf word types are always 32bits in size, even on 64bit hosts, while Addr is the proper native size ... also get creative with our signed/unsigned usage to get rid of warnings

18 years agoneed to make sure elf_find_dynamic(key) is big enough to handle 64bit hosts
Mike Frysinger [Fri, 30 Dec 2005 06:10:22 +0000 (06:10 -0000)]
need to make sure elf_find_dynamic(key) is big enough to handle 64bit hosts

18 years agobeautify utility building
Mike Frysinger [Fri, 30 Dec 2005 06:06:19 +0000 (06:06 -0000)]
beautify utility building

18 years agouse errno.h not sys/errno.h as pointed out by sjhill
Mike Frysinger [Fri, 30 Dec 2005 02:00:15 +0000 (02:00 -0000)]
use errno.h not sys/errno.h as pointed out by sjhill

18 years agoSync ftw w/ glibc, splitting ftw and ftw64
Peter S. Mazinger [Fri, 30 Dec 2005 00:59:58 +0000 (00:59 -0000)]
Sync ftw w/ glibc, splitting ftw and ftw64

18 years agofix signed/unsigned warnings
Mike Frysinger [Thu, 29 Dec 2005 14:59:15 +0000 (14:59 -0000)]
fix signed/unsigned warnings

18 years agokill off some signedness/unused warnings
Mike Frysinger [Thu, 29 Dec 2005 08:15:24 +0000 (08:15 -0000)]
kill off some signedness/unused warnings

18 years agosync whitespace with glibc
Mike Frysinger [Thu, 29 Dec 2005 08:13:32 +0000 (08:13 -0000)]
sync whitespace with glibc

18 years agotouchup code a bit to prep for new weak system
Mike Frysinger [Thu, 29 Dec 2005 07:15:39 +0000 (07:15 -0000)]
touchup code a bit to prep for new weak system

18 years agobeautify
Mike Frysinger [Thu, 29 Dec 2005 07:07:29 +0000 (07:07 -0000)]
beautify

18 years agohide the internal libc pthread_mutex funcs
Mike Frysinger [Thu, 29 Dec 2005 07:06:08 +0000 (07:06 -0000)]
hide the internal libc pthread_mutex funcs

18 years agopointless whitespace touchups
Mike Frysinger [Thu, 29 Dec 2005 07:05:08 +0000 (07:05 -0000)]
pointless whitespace touchups

18 years agohide some functions to cut down on relocations
Mike Frysinger [Thu, 29 Dec 2005 04:39:12 +0000 (04:39 -0000)]
hide some functions to cut down on relocations

18 years agomake sure mq_timedsend() and mq_send() is always defined
Mike Frysinger [Thu, 29 Dec 2005 04:37:40 +0000 (04:37 -0000)]
make sure mq_timedsend() and mq_send() is always defined

18 years agomake sure mq_timedreceive() and mq_receive() is always defined
Mike Frysinger [Thu, 29 Dec 2005 04:35:52 +0000 (04:35 -0000)]
make sure mq_timedreceive() and mq_receive() is always defined

18 years agohide __kernel functions
Mike Frysinger [Thu, 29 Dec 2005 04:29:12 +0000 (04:29 -0000)]
hide __kernel functions

18 years agomake sure we handle the (malloc(0)==NULL) case as Aubrey points out via the e-mail...
Mike Frysinger [Wed, 28 Dec 2005 21:20:42 +0000 (21:20 -0000)]
make sure we handle the (malloc(0)==NULL) case as Aubrey points out via the e-mail list

18 years agomake sure we handle the (malloc(0)==NULL) case as Aubrey points out via the e-mail...
Mike Frysinger [Wed, 28 Dec 2005 21:19:58 +0000 (21:19 -0000)]
make sure we handle the (malloc(0)==NULL) case as Aubrey points out via the e-mail list

18 years agoinclude grp.h just for fun
Mike Frysinger [Wed, 28 Dec 2005 21:16:11 +0000 (21:16 -0000)]
include grp.h just for fun

18 years agotypecast away signed/unsigned warnings
Mike Frysinger [Wed, 28 Dec 2005 21:09:38 +0000 (21:09 -0000)]
typecast away signed/unsigned warnings

18 years agokill off unused warning
Mike Frysinger [Tue, 27 Dec 2005 09:53:35 +0000 (09:53 -0000)]
kill off unused warning

18 years agotypecast away a signed/unsigned warning
Mike Frysinger [Tue, 27 Dec 2005 09:53:18 +0000 (09:53 -0000)]
typecast away a signed/unsigned warning

18 years agocut pointless files
Mike Frysinger [Tue, 27 Dec 2005 09:53:03 +0000 (09:53 -0000)]
cut pointless files

18 years agokill off minor unused warnings
Mike Frysinger [Tue, 27 Dec 2005 09:37:14 +0000 (09:37 -0000)]
kill off minor unused warnings

18 years agotweak prototypes to match the exported versions
Mike Frysinger [Tue, 27 Dec 2005 09:32:10 +0000 (09:32 -0000)]
tweak prototypes to match the exported versions

18 years agofix salt type in setup_salt()
Mike Frysinger [Tue, 27 Dec 2005 09:27:33 +0000 (09:27 -0000)]
fix salt type in setup_salt()

18 years agonlist should be unsigned, not signed, as it tracks # of elements in init_fini_list
Mike Frysinger [Tue, 27 Dec 2005 09:26:12 +0000 (09:26 -0000)]
nlist should be unsigned, not signed, as it tracks # of elements in init_fini_list

18 years agorevert debug "fix" since it isnt correct and previous version works
Mike Frysinger [Tue, 27 Dec 2005 09:25:33 +0000 (09:25 -0000)]
revert debug "fix" since it isnt correct and previous version works

18 years agofix signed/unsigned warning
Mike Frysinger [Tue, 27 Dec 2005 09:24:42 +0000 (09:24 -0000)]
fix signed/unsigned warning

18 years agokill off simple unused warnings
Mike Frysinger [Tue, 27 Dec 2005 09:19:15 +0000 (09:19 -0000)]
kill off simple unused warnings

18 years agokill off simple unused warnings
Mike Frysinger [Tue, 27 Dec 2005 09:15:09 +0000 (09:15 -0000)]
kill off simple unused warnings

18 years agokill off simple unused warnings
Mike Frysinger [Tue, 27 Dec 2005 09:13:42 +0000 (09:13 -0000)]
kill off simple unused warnings

18 years ago2005-12-15 Aubrey.Li <aubreylee@gmail.com> writes:
Mike Frysinger [Tue, 27 Dec 2005 09:03:53 +0000 (09:03 -0000)]
2005-12-15 Aubrey.Li <aubreylee@gmail.com> writes:
When I mounted nfs on my target, the kernel crashed. And I found it
was caused by stack overflow. When I digged into it. I found the
following issue.

In the file "./uClibc/libc/inet/rpc/auth_unix.c"
 int max_nr_groups = sysconf (_SC_NGROUPS_MAX);
 gid_t gids[max_nr_groups];

And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h"
#define NGROUPS_MAX       65536    /* supplemental group IDs are available */

OK, here we can know max_nr_groups is assigned to 65536, that means a
huge matrix "gids[65536] is in the function **authunix_create_default**.

My method is doing it by malloc, the patch as follows.

18 years agokill off minor warning
Mike Frysinger [Tue, 27 Dec 2005 09:00:18 +0000 (09:00 -0000)]
kill off minor warning

18 years agoAubrey writes:
Mike Frysinger [Tue, 27 Dec 2005 08:58:04 +0000 (08:58 -0000)]
Aubrey writes:
When I mounted nfs on my target, the kernel crashed. And I found it
was caused by stack overflow. When I digged into it.
And I found not only "setgroups.c" but
"getgroups.c" have the matrix (__kernel_gid_t kernel_groups[n]) on the
stack which can be very large because "n" can be assigned to
NGROUPS_MAX.

And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h"
#define NGROUPS_MAX       65536    /* supplemental group IDs are available */

I also changed it to do malloc.

18 years agoJan-Benedict Glaw writes:
Mike Frysinger [Tue, 27 Dec 2005 06:52:51 +0000 (06:52 -0000)]
Jan-Benedict Glaw writes:
This patch is wrong and breaks (at least) building a static libc. The
$(MISC_FNMATCH_OBJ) file still uses the .c extension, thus isn't built
at all and eg. strip'ping the .c file fails, breaking the build.

18 years agoAdd new fnmatch code, for now mbstate_t and mbsrtowcs are depending on UCLIBC_HAS_LOC...
Peter S. Mazinger [Sat, 24 Dec 2005 00:15:05 +0000 (00:15 -0000)]
Add new fnmatch code, for now mbstate_t and mbsrtowcs are depending on UCLIBC_HAS_LOCALE, making the new object about 5k, else it would be 10k

18 years agoMove fnmatch.c to fnmatch_old.c
Peter S. Mazinger [Sat, 24 Dec 2005 00:08:38 +0000 (00:08 -0000)]
Move fnmatch.c to fnmatch_old.c

18 years agoBuild PIC objects if DOPIC is set, thx to pcj
Peter S. Mazinger [Fri, 23 Dec 2005 20:35:12 +0000 (20:35 -0000)]
Build PIC objects if DOPIC is set, thx to pcj

18 years agoJie Zhang writes:
Mike Frysinger [Thu, 22 Dec 2005 01:46:09 +0000 (01:46 -0000)]
Jie Zhang writes:
I think the loop was written for MMU case. When there is MMU, mmap ()
is used to allocate the stack. If one segment is already mapped, we
should continue to see if we can use the next one. However, for NOMMU,
malloc () is used. It's waste of CPU cycles to continue to try if it
fails. Here is a new patch, which makes this change only for NOMMU.

18 years agoRemove all trailing ; after *_alias and change 2 to use weak_alias instead of __attri...
Peter S. Mazinger [Fri, 16 Dec 2005 23:09:32 +0000 (23:09 -0000)]
Remove all trailing ; after *_alias and change 2 to use weak_alias instead of __attribute__ ...

18 years agoRemove trailing ;
Peter S. Mazinger [Fri, 16 Dec 2005 19:28:49 +0000 (19:28 -0000)]
Remove trailing ;

18 years agoRemove trailing ; after *alias()
Peter S. Mazinger [Fri, 16 Dec 2005 19:10:38 +0000 (19:10 -0000)]
Remove trailing ; after *alias()

18 years agoTypo
Peter S. Mazinger [Fri, 16 Dec 2005 18:23:45 +0000 (18:23 -0000)]
Typo

18 years agoAdapt some missed prototypes
Peter S. Mazinger [Fri, 16 Dec 2005 18:17:59 +0000 (18:17 -0000)]
Adapt some missed prototypes

18 years agoForgot about the macros ;-(
Peter S. Mazinger [Fri, 16 Dec 2005 18:16:10 +0000 (18:16 -0000)]
Forgot about the macros ;-(

18 years agomemmove, exit are external iconv_main
Peter S. Mazinger [Fri, 16 Dec 2005 17:50:56 +0000 (17:50 -0000)]
memmove, exit are external iconv_main

18 years agoCorrect C_SYMBOL_PREFIX handling for asm, supports only none or _
Peter S. Mazinger [Fri, 16 Dec 2005 17:36:58 +0000 (17:36 -0000)]
Correct C_SYMBOL_PREFIX handling for asm, supports only none or _

18 years agoHope it solves JBG's problem, why didn't it bail out here?
Peter S. Mazinger [Fri, 16 Dec 2005 15:09:24 +0000 (15:09 -0000)]
Hope it solves JBG's problem, why didn't it bail out here?

18 years agoMacros are no good for jump relocs, hack to get rid of one introduced my new regex...
Peter S. Mazinger [Fri, 16 Dec 2005 12:35:43 +0000 (12:35 -0000)]
Macros are no good for jump relocs, hack to get rid of one introduced my new regex code

18 years agoUse hidden towupper in new regex
Peter S. Mazinger [Fri, 16 Dec 2005 12:11:09 +0000 (12:11 -0000)]
Use hidden towupper in new regex

18 years agoMake new regex build w/ WCHAR disabled, vapier, does it now work for you?
Peter S. Mazinger [Fri, 16 Dec 2005 11:54:26 +0000 (11:54 -0000)]
Make new regex build w/ WCHAR disabled, vapier, does it now work for you?

18 years agoUse kernel provided syscalls for user-space, the one from libc is not usable
Peter S. Mazinger [Fri, 16 Dec 2005 11:06:08 +0000 (11:06 -0000)]
Use kernel provided syscalls for user-space, the one from libc is not usable

18 years agoBetter guards within _LIBC, cleanup, typos
Peter S. Mazinger [Fri, 16 Dec 2005 09:52:34 +0000 (09:52 -0000)]
Better guards within _LIBC, cleanup, typos

18 years agoHide towctrans*. What is SMALL_UPLOW and why do we need it?
Peter S. Mazinger [Fri, 16 Dec 2005 08:56:00 +0000 (08:56 -0000)]
Hide towctrans*. What is SMALL_UPLOW and why do we need it?

18 years agoConvert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back
Peter S. Mazinger [Fri, 16 Dec 2005 01:18:01 +0000 (01:18 -0000)]
Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back

18 years agoConvert some users and get rid of __rpc_thread_createerr jump reloc, this was indeed...
Peter S. Mazinger [Fri, 16 Dec 2005 01:05:56 +0000 (01:05 -0000)]
Convert some users and get rid of __rpc_thread_createerr jump reloc, this was indeed a badly chosen name

18 years agoConvert users
Peter S. Mazinger [Fri, 16 Dec 2005 01:02:50 +0000 (01:02 -0000)]
Convert users