OSDN Git Service

uclinux-h8/uclibc-ng.git
16 years ago- implement splice,vmsplice,tee for all arches
Bernhard Reutner-Fischer [Sat, 3 May 2008 12:49:10 +0000 (12:49 -0000)]
- implement splice,vmsplice,tee for all arches
- synch F_LINUX_SPECIFIC_BASE related fcntls for all arches

16 years agoWire up vmsplice, splice and tee for arm.
Khem Raj [Sat, 3 May 2008 05:44:30 +0000 (05:44 -0000)]
Wire up vmsplice, splice and tee for arm.

16 years ago- indent
Bernhard Reutner-Fischer [Fri, 2 May 2008 20:31:57 +0000 (20:31 -0000)]
- indent

16 years agoAdded implementation for 'locale' command.
Carmelo Amoroso [Fri, 2 May 2008 13:57:02 +0000 (13:57 -0000)]
Added implementation for 'locale' command.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
16 years ago- add vmsplice, splice, tee (Timo Teräs)
Bernhard Reutner-Fischer [Fri, 2 May 2008 07:18:29 +0000 (07:18 -0000)]
- add vmsplice, splice, tee (Timo Teräs)
- pull bits/fcntl.h from glibc (Timo Teräs)

16 years agoinstall_headers: do not exit if unifdef "fails", it's ok
Denis Vlasenko [Thu, 1 May 2008 12:14:25 +0000 (12:14 -0000)]
install_headers: do not exit if unifdef "fails", it's ok

16 years agoinstall_headers: properly quote things
Denis Vlasenko [Wed, 30 Apr 2008 04:02:50 +0000 (04:02 -0000)]
install_headers: properly quote things

16 years agoguard against older ld's not understanding --sort-section alignment
Denis Vlasenko [Wed, 30 Apr 2008 01:37:04 +0000 (01:37 -0000)]
guard against older ld's not understanding --sort-section alignment

16 years agoRules.mak: fix -falign/-malign mixup
Denis Vlasenko [Wed, 30 Apr 2008 00:59:05 +0000 (00:59 -0000)]
Rules.mak: fix -falign/-malign mixup

16 years agoinstall_headers.sh: detect a case when kernel headers are already
Denis Vlasenko [Wed, 30 Apr 2008 00:58:07 +0000 (00:58 -0000)]
install_headers.sh: detect a case when kernel headers are already
installed in target dir, and dont try to copy them again

16 years agobuild system: use a bit more aggressive gcc/ld optimizations,
Denis Vlasenko [Tue, 29 Apr 2008 00:36:57 +0000 (00:36 -0000)]
build system: use a bit more aggressive gcc/ld optimizations,
mostly related to ELF section ans padding, not code gen.
Resulting reductions in size (only biggest ones are shown)
uClibc.t4 - new, uClibc.t3 - old:

  15673     244      92   16009    3e89 uClibc.t4-stdcfg_so/lib/ld-uClibc-0.9.29.so
  15673     244      92   16009    3e89 uClibc.t4-stdcfg_so/lib/ld-uClibc.so
  15673     244      92   16009    3e89 uClibc.t4-stdcfg_so/lib/ld-uClibc.so.0
  15678     244      92   16014    3e8e uClibc.t3-stdcfg_so/lib/ld-uClibc-0.9.29.so
  15678     244      92   16014    3e8e uClibc.t3-stdcfg_so/lib/ld-uClibc.so
  15678     244      92   16014    3e8e uClibc.t3-stdcfg_so/lib/ld-uClibc.so.0
  39910     200       4   40114    9cb2 uClibc.t4-stdcfg_so/lib/libm-0.9.29.so
  39910     200       4   40114    9cb2 uClibc.t4-stdcfg_so/lib/libm.so
  39910     200       4   40114    9cb2 uClibc.t4-stdcfg_so/lib/libm.so.0
  40179     200       4   40383    9dbf uClibc.t3-stdcfg_so/lib/libm-0.9.29.so
  40179     200       4   40383    9dbf uClibc.t3-stdcfg_so/lib/libm.so
  40179     200       4   40383    9dbf uClibc.t3-stdcfg_so/lib/libm.so.0
 234104    1472    5980  241556   3af94 uClibc.t4-stdcfg_so/lib/libc.so.0
 234104    1472    5980  241556   3af94 uClibc.t4-stdcfg_so/lib/libuClibc-0.9.29.so
 235319    1472    5992  242783   3b45f uClibc.t3-stdcfg_so/lib/libc.so.0
 235319    1472    5992  242783   3b45f uClibc.t3-stdcfg_so/lib/libuClibc-0.9.29.so

16 years ago__uc_malloc: remove stray semicolons
Denis Vlasenko [Mon, 28 Apr 2008 02:08:01 +0000 (02:08 -0000)]
__uc_malloc: remove stray semicolons

16 years agoExperimentally move libc_hidden_proto(time) to time.h.
Denis Vlasenko [Mon, 28 Apr 2008 01:15:34 +0000 (01:15 -0000)]
Experimentally move libc_hidden_proto(time) to time.h.
The only code change observed is actually a case
where we were not doing that as needed:

 00000000 <__GI_tzset>:
-53                     push   %ebx
-e8 00 00 00 00         call   6 <__GI_tzset+0x6>
-5b                     pop    %ebx
-81 c3 03 00 00 00      add    $0x3,%ebx
-                       R_386_GOTPC     _GLOBAL_OFFSET_TABLE_
 6a 00                  push   $0x0
-e8 fc ff ff ff         call   10 <__GI_tzset+0x10>
-                       R_386_PLT32     time
+e8 fc ff ff ff         call   3 <__GI_tzset+0x3>
+                       R_386_PC32      __GI_time
 3d ff 4e 98 45         cmp    $0x45984eff,%eax
 0f 9e c0               setle  %al
 0f b6 c0               movzbl %al,%eax
 50                     push   %eax
-e8 fc ff ff ff         call   21 <__GI_tzset+0x21>
+e8 fc ff ff ff         call   14 <__GI_tzset+0x14>
                        R_386_PC32      _time_tzset
 58                     pop    %eax
 5a                     pop    %edx
-5b                     pop    %ebx
 c3                     ret

No mass migration of libc_hidden_proto(foo) planned.
Lets wait for potential fallout first.

16 years agobuild system: improve install_headers.
Denis Vlasenko [Sun, 27 Apr 2008 23:10:00 +0000 (23:10 -0000)]
build system: improve install_headers.
Now it uses dedicated script instead of inline makefile commands,
which helps readability.
It also installs asm[-generic] and linux subdirs from kernel headers
(previously it had to be done separately).
Lastly, it passes each uclibc header thru unifdef, which strips
#ifdef UCLIBC_INTERNAL conditional from headers.
Currently it's a no-op (no such #ifders in tree).
The plan is to have libc_hidden_proto(foo) migrated to headers
and guard them by these #ifdefs.

16 years agoFix rpc test Makefile
Carmelo Amoroso [Fri, 25 Apr 2008 16:51:30 +0000 (16:51 -0000)]
Fix rpc test Makefile

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
16 years agoFix some sh4 specific entries
Carmelo Amoroso [Fri, 25 Apr 2008 16:50:50 +0000 (16:50 -0000)]
Fix some sh4 specific entries

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
16 years agoreinstate external visibility of inet_ntoa_r,
Denis Vlasenko [Fri, 25 Apr 2008 07:43:18 +0000 (07:43 -0000)]
reinstate external visibility of inet_ntoa_r,
and add it to arpa/inet.h header.

16 years ago- fixup asm. No object-code changes
Bernhard Reutner-Fischer [Thu, 24 Apr 2008 09:24:59 +0000 (09:24 -0000)]
- fixup asm. No object-code changes

16 years agoFix indentation of comment in AVR32 memmove assembler optimization file.
Hans-Christian Egtvedt [Thu, 24 Apr 2008 07:15:37 +0000 (07:15 -0000)]
Fix indentation of comment in AVR32 memmove assembler optimization file.

16 years agoFix whitespace damage in top level Config.in.
Hans-Christian Egtvedt [Thu, 24 Apr 2008 07:11:16 +0000 (07:11 -0000)]
Fix whitespace damage in top level Config.in.

16 years agoFix whitespace damage in AVR32 in libc sysdeps AVR32 specific Linux files.
Hans-Christian Egtvedt [Thu, 24 Apr 2008 07:08:48 +0000 (07:08 -0000)]
Fix whitespace damage in AVR32 in libc sysdeps AVR32 specific Linux files.

16 years agoFix whitespace damage in AVR32 libc sysdeps sys header files.
Hans-Christian Egtvedt [Thu, 24 Apr 2008 07:08:15 +0000 (07:08 -0000)]
Fix whitespace damage in AVR32 libc sysdeps sys header files.

16 years agoFix whitespace damage in AVR32 libc bits header files.
Hans-Christian Egtvedt [Thu, 24 Apr 2008 07:07:41 +0000 (07:07 -0000)]
Fix whitespace damage in AVR32 libc bits header files.

16 years agoCleanup INTERNAL_SYSCALL macros for ARM.
Khem Raj [Wed, 23 Apr 2008 00:15:51 +0000 (00:15 -0000)]
Cleanup INTERNAL_SYSCALL macros for ARM.

16 years agoAdded support for error_print_progname as proposed
Carmelo Amoroso [Tue, 22 Apr 2008 15:13:57 +0000 (15:13 -0000)]
Added support for error_print_progname as proposed
by Will Newton <will.newton@gmail.com>

16 years agoFix segfault in __pthread_initialize_minimal in linuxthreads
Carmelo Amoroso [Tue, 22 Apr 2008 14:10:55 +0000 (14:10 -0000)]
Fix segfault in __pthread_initialize_minimal in linuxthreads
implementation when built without SHARED flag as reported
by Will Newton <will.newton@gmail.com>

16 years agoFix mmap64 undefined on arm oabi with pure thumb1 patchset. Thanks Tobias Poschwatta
Khem Raj [Sun, 20 Apr 2008 08:10:37 +0000 (08:10 -0000)]
Fix mmap64 undefined on arm oabi with pure thumb1 patchset. Thanks Tobias Poschwatta

16 years agoFix whitespace damage in AVR32 pt-machine.h in libpthread, linuxthreads and linuxthre...
Hans-Christian Egtvedt [Wed, 16 Apr 2008 14:24:58 +0000 (14:24 -0000)]
Fix whitespace damage in AVR32 pt-machine.h in libpthread, linuxthreads and linuxthreads.old.

16 years agoFix whitespace damage in AVR32 string assembler optimized functions.
Hans-Christian Egtvedt [Wed, 16 Apr 2008 14:14:48 +0000 (14:14 -0000)]
Fix whitespace damage in AVR32 string assembler optimized functions.

16 years agoFix whitespace damage in AVR32 part of ldso.
Hans-Christian Egtvedt [Wed, 16 Apr 2008 14:13:45 +0000 (14:13 -0000)]
Fix whitespace damage in AVR32 part of ldso.

16 years agoFix whitespace damage in Config.avr32.
Hans-Christian Egtvedt [Wed, 16 Apr 2008 14:12:48 +0000 (14:12 -0000)]
Fix whitespace damage in Config.avr32.

16 years agoUpdated email address for Hans-Christian Egtvedt, AVR32 maintainer.
Hans-Christian Egtvedt [Wed, 16 Apr 2008 13:24:24 +0000 (13:24 -0000)]
Updated email address for Hans-Christian Egtvedt, AVR32 maintainer.

16 years agoamd64 string ops: use alignment more carefully, and comment it.
Denis Vlasenko [Tue, 15 Apr 2008 08:27:24 +0000 (08:27 -0000)]
amd64 string ops: use alignment more carefully, and comment it.
By capping max padding to not be bigger than three next insns,
we avoid having ridiculously big NOPs like this one:

53:66 66 66 66 2e 0f 1f nopw   %cs:0x0(%rax,%rax,1)
5a:84 00 00 00 00 00

which was bigger than next three insns combined!

Size changes:

   text    data     bss     dec     hex filename
    102       0       0     102      66 x86_64/memcpy.o
    102       0       0     102      66 x86_64.old/memcpy.o

     90       0       0      90      5a x86_64/mempcpy.o
    102       0       0     102      66 x86_64.old/mempcpy.o

    210       0       0     210      d2 x86_64/memset.o
    242       0       0     242      f2 x86_64.old/memset.o

    213       0       0     213      d5 x86_64/stpcpy.o
    220       0       0     220      dc x86_64.old/stpcpy.o

    428       0       0     428     1ac x86_64/strcat.o
    444       0       0     444     1bc x86_64.old/strcat.o

    417       0       0     417     1a1 x86_64/strchr.o
    418       0       0     418     1a2 x86_64.old/strchr.o

     33       0       0      33      21 x86_64/strcmp.o
     33       0       0      33      21 x86_64.old/strcmp.o

    213       0       0     213      d5 x86_64/strcpy.o
    220       0       0     220      dc x86_64.old/strcpy.o

    135       0       0     135      87 x86_64/strcspn.o
    151       0       0     151      97 x86_64.old/strcspn.o

    225       0       0     225      e1 x86_64/strlen.o
    233       0       0     233      e9 x86_64.old/strlen.o

    140       0       0     140      8c x86_64/strpbrk.o
    156       0       0     156      9c x86_64.old/strpbrk.o

    135       0       0     135      87 x86_64/strspn.o
    151       0       0     151      97 x86_64.old/strspn.o

Also, a few files got their .text alignment relaxed from 16 to 8 bytes,
which reduces padding at link time.

16 years agoamd64 string ops: replace some instructions by smaller ones,
Denis Vlasenko [Tue, 15 Apr 2008 08:23:19 +0000 (08:23 -0000)]
amd64 string ops: replace some instructions by smaller ones,
e.g. testb $0xff, %cl -> testb %cl, %cl

16 years agoFunctions should be either exported in public .h files
Denis Vlasenko [Sat, 12 Apr 2008 01:34:04 +0000 (01:34 -0000)]
Functions should be either exported in public .h files
and marked with libc_hidden_proto/def(),
or not be exported in .h files
and be hidden (or even static if possible).
We have five functions which violate this. Fixing:

netdb.h: export ruserpass()
rpc/rpc.h: export xdr_accepted_reply() and xdr_rejected_reply()
make inet_ntoa_r static function (it is not exported in any .h file)
make _time_tzset hidden function (it is not exported in any .h file)

16 years agoremove "register" from _vf[w]printf_internal declarations too
Denis Vlasenko [Thu, 10 Apr 2008 21:15:59 +0000 (21:15 -0000)]
remove "register" from _vf[w]printf_internal declarations too

16 years agoeven more fixes for vda-made breakage in vXXXfprintf
Denis Vlasenko [Thu, 10 Apr 2008 20:39:07 +0000 (20:39 -0000)]
even more fixes for vda-made breakage in vXXXfprintf
(pointed out by Peter S.Mazinger)

16 years agofix breakage in old_vfprintf case
Denis Vlasenko [Wed, 9 Apr 2008 22:22:28 +0000 (22:22 -0000)]
fix breakage in old_vfprintf case

16 years agorestore erroneously removed hidden_def for vdprintf
Denis Vlasenko [Wed, 9 Apr 2008 21:51:33 +0000 (21:51 -0000)]
restore erroneously removed hidden_def for vdprintf

16 years agoRemove vestigial locking init from sprintf routines.
Denis Vlasenko [Wed, 9 Apr 2008 19:52:13 +0000 (19:52 -0000)]
Remove vestigial locking init from sprintf routines.

16 years agoFactor out the core of vprintf() into separate function
Denis Vlasenko [Wed, 9 Apr 2008 19:51:18 +0000 (19:51 -0000)]
Factor out the core of vprintf() into separate function
vprintf_internal, so that:
* vprintf() does locking and __STDIO_STREAM_TRANS_TO_WRITE thing,
  then calls vprintf_internal
* vsnprintf, vdprintf.c, vasprintf.c use
  vprintf_internal directly

This makes sprintf faster (since it doesn't do any locking)
and stops it from pulling in fseek in static compile.

16 years ago- use a 16bit value for fnstsw as required by newer binutils.
Bernhard Reutner-Fischer [Fri, 4 Apr 2008 10:04:41 +0000 (10:04 -0000)]
- use a 16bit value for fnstsw as required by newer binutils.

16 years agoFix remap_file_pages prototype and use mman.h header
Carmelo Amoroso [Tue, 1 Apr 2008 16:07:06 +0000 (16:07 -0000)]
Fix remap_file_pages prototype and use mman.h header

16 years ago- trim trailing whitespace. No object-code changes.
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 19:42:15 +0000 (19:42 -0000)]
- trim trailing whitespace. No object-code changes.

16 years ago- fixup stripping of host utils and make host-utils compile with std=gnu99
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 19:40:39 +0000 (19:40 -0000)]
- fixup stripping of host utils and make host-utils compile with std=gnu99

16 years ago- improve building utils
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 18:49:16 +0000 (18:49 -0000)]
- improve building utils
  Either by first compiling objects and linking those or by just passing
  the source to create the desired binary (this patchlet does the latter).
  Fixes cosmetic glitch by just not building individual .o (in pwd, at least).

16 years ago- fix generation of sysnum.h for parallel builds, second take.
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 18:01:54 +0000 (18:01 -0000)]
- fix generation of sysnum.h for parallel builds, second take.
  Revert r21503 and redo more cleanly.

16 years ago- fix (parallel) compilation error in ldso.c
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 17:04:09 +0000 (17:04 -0000)]
- fix (parallel) compilation error in ldso.c
  We have to generate sysnum.h to satisfy all includes of ldso.c

16 years agoPaul Brook writes:
Bernhard Reutner-Fischer [Wed, 26 Mar 2008 13:40:36 +0000 (13:40 -0000)]
Paul Brook writes:
The attached patch adds support for compiling arm uClibc as pure Thumb code.
This is needed because some recent ARM codes do not implement traditional ARM
mode.  Specifically:

* Cortex-M1 - An extremely minimal FPGA based core that only implements
Thumb-1 (aka ARMv6-M).
* Cortex-M3 - A Thumb-2 only ARMv7-M core.

Most of uClibc already builds in Thumb mode, all that is left are a handful of
assembly bits.

Tested on arm-uclinuxeabi.

16 years agoEnable remap_file_pages prototype controlled by __USE_GNU define as well as mremap...
Carmelo Amoroso [Wed, 26 Mar 2008 11:58:14 +0000 (11:58 -0000)]
Enable remap_file_pages prototype controlled by __USE_GNU define as well as mremap, instead of __USE_MISC according to glibc. Missing prototype was spotted out by Peter Mazinger

16 years agoAdd missing cast in pointer assignment
Carmelo Amoroso [Tue, 25 Mar 2008 14:40:35 +0000 (14:40 -0000)]
Add missing cast in pointer assignment

16 years agoAdd rempa_file_pages function by Will Newton <will.newton@imgtec.com>
Carmelo Amoroso [Fri, 21 Mar 2008 07:18:47 +0000 (07:18 -0000)]
Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>

16 years agomichael_d writes in [#2064]: fix building on linux-2.0 systems
Mike Frysinger [Fri, 21 Mar 2008 06:58:23 +0000 (06:58 -0000)]
michael_d writes in [#2064]: fix building on linux-2.0 systems

16 years agoAdd myself as co-maintainer of SH4, specifically for NPTL pthread library and TLS...
Carmelo Amoroso [Sun, 16 Mar 2008 07:49:24 +0000 (07:49 -0000)]
Add myself as co-maintainer of SH4, specifically for NPTL pthread library and TLS dynamic linker support

16 years agoRemove extra file separator
Carmelo Amoroso [Sun, 16 Mar 2008 07:35:04 +0000 (07:35 -0000)]
Remove extra file separator

16 years agoavr32: Use HIDDEN_JUMPTARGET() macro in bzero.S
Haavard Skinnemoen [Thu, 13 Mar 2008 20:12:08 +0000 (20:12 -0000)]
avr32: Use HIDDEN_JUMPTARGET() macro in bzero.S

Also, remove the hidden __memset symbol from memset.S

16 years agoFrom: Geoffrey Wossum <geoffrey@pager.net>
Haavard Skinnemoen [Thu, 13 Mar 2008 19:04:16 +0000 (19:04 -0000)]
From: Geoffrey Wossum <geoffrey@pager.net>

Found a problem with the AVR32 optimized bzero() code.  Due to a
missing #include, it actually generated no code.

16 years agoAdd myself as co-maintainer for the AVR32 architecture
Haavard Skinnemoen [Thu, 13 Mar 2008 18:41:46 +0000 (18:41 -0000)]
Add myself as co-maintainer for the AVR32 architecture

16 years agoMove calculation of rem within if (unlikely statement
Carmelo Amoroso [Tue, 11 Mar 2008 10:25:42 +0000 (10:25 -0000)]
Move calculation of rem within if (unlikely statement

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
SIgned-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
16 years agoKhem Raj <kraj@mvista.com> writes:
Carmelo Amoroso [Sun, 9 Mar 2008 07:07:20 +0000 (07:07 -0000)]
Khem Raj <kraj@mvista.com> writes:
While compiling trunk on ARM with GCC 4.2 and enabling LDSO_GNU_HASH_SUPPORT I stumbled upon this problem.
GCC made a call to libgcc function __aeabi_uidivmod()->__div0()->__raise() and raise is not yet compiled in at the time of compiling ldso
so I got well known undefined symbol __raise problem

This patch uses the do_rem () macro to do the same operation.

16 years agoCall explicitely objclean-y when doing build cleanup.
Carmelo Amoroso [Wed, 5 Mar 2008 14:37:55 +0000 (14:37 -0000)]
Call explicitely objclean-y when doing build cleanup.
Remove 'find' command. It makes cleanup faster too.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
16 years agoFix file permissions
Carmelo Amoroso [Thu, 28 Feb 2008 10:05:14 +0000 (10:05 -0000)]
Fix file permissions

16 years agoFix file permissions
Carmelo Amoroso [Thu, 28 Feb 2008 10:01:09 +0000 (10:01 -0000)]
Fix file permissions

16 years agoAdded support for ether_line, ether_ntohost and ether_hostton.
Carmelo Amoroso [Thu, 28 Feb 2008 09:56:28 +0000 (09:56 -0000)]
Added support for ether_line, ether_ntohost and ether_hostton.
Added related test cases.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Hacked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
16 years agoRicard Wanderlof writes:
Mike Frysinger [Sat, 23 Feb 2008 01:28:28 +0000 (01:28 -0000)]
Ricard Wanderlof writes:
The following definitions in getaddrinfo.c seem redundant as they _are_
defined in the public netdb.h header, contrary to the comment. AI_DEFAULT
is not, however it is not used in the file either so can be safely
removed.

16 years agoFix typos in comment
Carmelo Amoroso [Wed, 20 Feb 2008 20:26:42 +0000 (20:26 -0000)]
Fix typos in comment

16 years agoDo not call _dl_de ug_state() before recording ld.so. Signed-off-by: Daniel Jacobowit...
Carmelo Amoroso [Wed, 20 Feb 2008 20:20:00 +0000 (20:20 -0000)]
Do not call _dl_de ug_state() before recording ld.so. Signed-off-by: Daniel Jacobowit <dan@codesourcery.com>

16 years agoxtensa: the size of the elf_gregset_t array is actually 128.
Chris Zankel [Wed, 20 Feb 2008 17:56:59 +0000 (17:56 -0000)]
xtensa: the size of the elf_gregset_t array is actually 128.

Signed-off-by: Chris Zankel <chris@zankel.net>
16 years agoUse HIDDEN_JUMPTARGET define instead of __GI_ directly in AVR32 files
Hans-Christian Egtvedt [Wed, 20 Feb 2008 14:27:12 +0000 (14:27 -0000)]
Use HIDDEN_JUMPTARGET define instead of __GI_ directly in AVR32 files

This patch uses the HIDDEN_JUMPTARGET instead of the __GI_ prefix in AVR32
assembler files. This is done to follow the code style in uClibc.

Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
16 years agoXtensa: Provide an architecture specific sigaction and sa_restorer function in libc...
Chris Zankel [Wed, 20 Feb 2008 00:30:54 +0000 (00:30 -0000)]
Xtensa: Provide an architecture specific sigaction and sa_restorer function in libc to avoid having to place executable code on stack.

Signed-off-by: Chris Zankel <chris@zankel.net>
16 years agoposix_fadvise64 on 64bit systems take 5 arguments, not 6, as pointed out by skinkie...
Mike Frysinger [Sat, 16 Feb 2008 08:33:48 +0000 (08:33 -0000)]
posix_fadvise64 on 64bit systems take 5 arguments, not 6, as pointed out by skinkie in #2194

16 years agofix typo pointed out by skinkie in #2194
Mike Frysinger [Sat, 16 Feb 2008 08:24:02 +0000 (08:24 -0000)]
fix typo pointed out by skinkie in #2194

16 years agoadd hidden_proto's for __uc_malloc
Denis Vlasenko [Tue, 12 Feb 2008 20:31:44 +0000 (20:31 -0000)]
add hidden_proto's for __uc_malloc
(patch by Bernd Schmidt <bernds_cb1 at t-online.de>)

16 years agoUse DL_RELOC_ADDR when dealing with DL_LOADADDR_TYPE types. Fixes gnu-hash
Bernd Schmidt [Tue, 12 Feb 2008 13:23:19 +0000 (13:23 -0000)]
Use DL_RELOC_ADDR when dealing with DL_LOADADDR_TYPE types.  Fixes gnu-hash
compilation on Blackfin.

16 years agoOmit adding 'OUTPUT_FORMAT' to the libc.so linker script if the architecture
Chris Zankel [Mon, 11 Feb 2008 23:16:35 +0000 (23:16 -0000)]
Omit adding 'OUTPUT_FORMAT' to the libc.so linker script if the architecture
didn't provide one (Xtensa, for example, is such an architecture).

Signed-off-by: Chris Zankel <chris@zankel.net>
16 years agoFix the recent dladdr changes so that they compile on FD-PIC targets.
Bernd Schmidt [Fri, 8 Feb 2008 13:43:39 +0000 (13:43 -0000)]
Fix the recent dladdr changes so that they compile on FD-PIC targets.

16 years agoAdded AI_NUMERICSERV flag and check if the string is not just a number
Carmelo Amoroso [Thu, 7 Feb 2008 16:17:14 +0000 (16:17 -0000)]
Added AI_NUMERICSERV flag and check if the string is not just a number
when AI_NUMERICSERV flag set.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
16 years agoFix stack overflow in _ppfs_parsespec
Carmelo Amoroso [Thu, 7 Feb 2008 07:06:49 +0000 (07:06 -0000)]
Fix stack overflow in _ppfs_parsespec

16 years agoAdd myself as the maintainer for the Xtensa architecture.
Chris Zankel [Tue, 5 Feb 2008 23:04:09 +0000 (23:04 -0000)]
Add myself as the maintainer for the Xtensa architecture.

Signed-off-by: Chris Zankel <chris@zankel.net>
16 years agoFilter out '-std=gnu99' when running the assembler. This causes an error
"Steven J. Hill" [Sat, 26 Jan 2008 23:13:37 +0000 (23:13 -0000)]
Filter out '-std=gnu99' when running the assembler. This causes an error
when building MIPS that looks like this:

libc/string/mips/memcpy.S:156:1: pasting "memcpy" and ":" does not give
a valid preprocessing token
make[1]: *** [libc/string/mips/memcpy.os] Error 1

Even if this does not cause an error on other architectures, this option
should not be having an effect on preprocessed assembly code.

16 years agogive execlp() its own cache on no-mmu to avoid recursive cache fighting
Mike Frysinger [Wed, 23 Jan 2008 16:56:52 +0000 (16:56 -0000)]
give execlp() its own cache on no-mmu to avoid recursive cache fighting

16 years ago- fix file permissions
Bernhard Reutner-Fischer [Tue, 22 Jan 2008 16:09:01 +0000 (16:09 -0000)]
- fix file permissions

16 years agoTest case to exploit dladdr bug
Carmelo Amoroso [Tue, 22 Jan 2008 15:37:32 +0000 (15:37 -0000)]
Test case to exploit dladdr bug

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
16 years ago- forgot to add include/fenv.h
Bernhard Reutner-Fischer [Sat, 19 Jan 2008 19:30:04 +0000 (19:30 -0000)]
- forgot to add include/fenv.h

16 years ago- wrap superlong lines
Bernhard Reutner-Fischer [Sat, 19 Jan 2008 15:26:17 +0000 (15:26 -0000)]
- wrap superlong lines

16 years ago- add C99 floating point environment, rounding and exception handling functions
Bernhard Reutner-Fischer [Sat, 19 Jan 2008 15:23:14 +0000 (15:23 -0000)]
- add C99 floating point environment, rounding and exception handling functions
  for i386. UCLIBC_HAS_FENV

16 years agoL1 memory support for the Blackfin. A couple new syscalls to manage L1
Bernd Schmidt [Fri, 18 Jan 2008 13:53:10 +0000 (13:53 -0000)]
L1 memory support for the Blackfin.  A couple new syscalls to manage L1
allocations, dma_memcpy to move stuff between L1 and main memory, and a new
structure to describe the global data in L1 scratchpad memory.

16 years agoUpdate dl-inlines.h from Blackfin repository.
Bernd Schmidt [Fri, 18 Jan 2008 13:46:58 +0000 (13:46 -0000)]
Update dl-inlines.h from Blackfin repository.

16 years agoThis patch solves a problem in dladdr caused by the wrong value
Carmelo Amoroso [Fri, 18 Jan 2008 13:14:19 +0000 (13:14 -0000)]
This patch solves a problem in dladdr caused by the wrong value
of elf_resolve's loadaddr field for the main application.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
16 years agoA patch from our Blackfin repository, originally from Mike Frysinger.
Bernd Schmidt [Fri, 18 Jan 2008 02:22:25 +0000 (02:22 -0000)]
A patch from our Blackfin repository, originally from Mike Frysinger.
Add sysdeps/linux/$(TARGET_ARCH) to the list of includes.  Needed by some of
the Blackfin specific string assembly files.

16 years agoAnother piece needed for FD-PIC. This compiles another startfile, crtreloc.o,
Bernd Schmidt [Fri, 18 Jan 2008 02:21:09 +0000 (02:21 -0000)]
Another piece needed for FD-PIC.  This compiles another startfile, crtreloc.o,
if necessary.

16 years ago- fix compilation:
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 21:47:59 +0000 (21:47 -0000)]
- fix compilation:
  In file included from toolchain_build_i386/gcc-3.4.6/libiberty/hashtab.c:49:
  build_i386/staging_dir/i386-linux-uclibc/sys-include/malloc.h:193: error: ISO C forbids data definition with no type or storage class

16 years ago- fix linking.
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 20:59:33 +0000 (20:59 -0000)]
- fix linking.
  We use the compiler-driver and not ld.

16 years ago- use libm_DIR and libm_OUT
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 19:53:46 +0000 (19:53 -0000)]
- use libm_DIR and libm_OUT

16 years ago- remove unused file
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 19:35:32 +0000 (19:35 -0000)]
- remove unused file

16 years agobits/sysnum.h needs a cross compiler to be built. Fortunately, this
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 19:29:02 +0000 (19:29 -0000)]
bits/sysnum.h needs a cross compiler to be built. Fortunately, this
header is not needed to build gcc. Move generation of this header.
(Yann E. MORIN)

16 years agoA patch from our Blackfin repository, originally from Jie Zhang. This fixes
Bernd Schmidt [Thu, 17 Jan 2008 19:11:18 +0000 (19:11 -0000)]
A patch from our Blackfin repository, originally from Jie Zhang.  This fixes
a problem where the linker was trying to use the wrong symbol name for the
init function.

Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960,
microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets
which define SYMBOL_PREFIX as _. Remove defines and undefs from
uClibc_arch_features.h of each target.
Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.

16 years ago- check for -nostdlib
Bernhard Reutner-Fischer [Wed, 16 Jan 2008 20:00:57 +0000 (20:00 -0000)]
- check for -nostdlib

16 years agoMake sh4 build works again adding a temporary work-around
Carmelo Amoroso [Sat, 12 Jan 2008 17:59:10 +0000 (17:59 -0000)]
Make sh4 build works again adding a temporary work-around
iby redefining __always_inline to inline until gcc 4.x.x will get
fixed.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
16 years agoMake sh4 build works again adding a temporary work-around
Carmelo Amoroso [Sat, 12 Jan 2008 08:20:18 +0000 (08:20 -0000)]
Make sh4 build works again adding a temporary work-around
iby redefining __always_inline to inline until gcc 4.x.x will get
fixed.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>