OSDN Git Service

uclinux-h8/uClibc.git
19 years agoif we have a signal handler in place to cover SIGABRT, we have to make sure the code...
Mike Frysinger [Wed, 29 Jun 2005 00:20:39 +0000 (00:20 -0000)]
if we have a signal handler in place to cover SIGABRT, we have to make sure the code that unregisters it raises SIGABRT again so the program actually aborts

19 years agoifdef out check which always fails
Mike Frysinger [Wed, 29 Jun 2005 00:18:33 +0000 (00:18 -0000)]
ifdef out check which always fails

19 years agoalso symlink asm-$TARGET_ARCH if it exists
Mike Frysinger [Wed, 29 Jun 2005 00:17:40 +0000 (00:17 -0000)]
also symlink asm-$TARGET_ARCH if it exists

19 years agoremove __IPC_64 in syscall() macro since real 64bit arches dont need it (and it doesn...
Mike Frysinger [Mon, 27 Jun 2005 23:31:24 +0000 (23:31 -0000)]
remove __IPC_64 in syscall() macro since real 64bit arches dont need it (and it doesnt compile)

19 years agoAdd __libc_stack_end to ld.so. The libc.a version remains to do.
Joakim Tjernlund [Mon, 27 Jun 2005 22:20:44 +0000 (22:20 -0000)]
Add __libc_stack_end to ld.so. The libc.a version remains to do.
sjhill, feel free to comment :)

19 years agoOops.
Joakim Tjernlund [Sun, 26 Jun 2005 07:52:45 +0000 (07:52 -0000)]
Oops.

19 years agostack_end in __uClibc_main must point to where argc is.
Joakim Tjernlund [Sun, 26 Jun 2005 00:11:34 +0000 (00:11 -0000)]
stack_end in __uClibc_main must point to where argc is.

19 years agoChange L_Scrt1 to __PIC__ and delete old crt0.S
Joakim Tjernlund [Sat, 25 Jun 2005 22:39:44 +0000 (22:39 -0000)]
Change L_Scrt1 to __PIC__ and delete old crt0.S

19 years agoDelete old stuff.
Joakim Tjernlund [Sat, 25 Jun 2005 22:35:23 +0000 (22:35 -0000)]
Delete old stuff.

19 years agoChange L_Scrt1 to __PIC__
Joakim Tjernlund [Sat, 25 Jun 2005 22:33:25 +0000 (22:33 -0000)]
Change L_Scrt1 to __PIC__

19 years agoChange L_Scrt1 to __PIC__
Joakim Tjernlund [Sat, 25 Jun 2005 22:27:41 +0000 (22:27 -0000)]
Change L_Scrt1 to __PIC__

19 years agoHopefully fix PIE apps.
Joakim Tjernlund [Sat, 25 Jun 2005 16:56:04 +0000 (16:56 -0000)]
Hopefully fix PIE apps.

19 years agouse _dl_debug_file instead of hardcode 2
Mike Frysinger [Sat, 25 Jun 2005 08:48:04 +0000 (08:48 -0000)]
use _dl_debug_file instead of hardcode 2

19 years agomove _dl_if_debug_dprint() to shared ldso header
Mike Frysinger [Sat, 25 Jun 2005 08:47:43 +0000 (08:47 -0000)]
move _dl_if_debug_dprint() to shared ldso header

19 years agocreate some DEBUG macros for the ld debug early
Mike Frysinger [Sat, 25 Jun 2005 08:41:38 +0000 (08:41 -0000)]
create some DEBUG macros for the ld debug early

19 years agowhitespace/syntax cleanups
Mike Frysinger [Sat, 25 Jun 2005 08:34:42 +0000 (08:34 -0000)]
whitespace/syntax cleanups

19 years agorework the debug _dl_dprintf usage to avoid #ifdef macros and make more readable
Mike Frysinger [Sat, 25 Jun 2005 08:28:09 +0000 (08:28 -0000)]
rework the debug _dl_dprintf usage to avoid #ifdef macros and make more readable

19 years agowould help if it actually compiled :/
Mike Frysinger [Sat, 25 Jun 2005 08:25:20 +0000 (08:25 -0000)]
would help if it actually compiled :/

19 years agohide the #ifdef debug macros/printfs behind one function to make the code more readable
Mike Frysinger [Sat, 25 Jun 2005 08:15:16 +0000 (08:15 -0000)]
hide the #ifdef debug macros/printfs behind one function to make the code more readable

19 years agowhitespace tweak, dont mind me
Mike Frysinger [Sat, 25 Jun 2005 01:45:19 +0000 (01:45 -0000)]
whitespace tweak, dont mind me

19 years agoFic gcc 4.0 compilation. Still no confimation that this works on
Joakim Tjernlund [Tue, 21 Jun 2005 14:03:15 +0000 (14:03 -0000)]
Fic gcc 4.0 compilation. Still no confimation that this works on
gcc 4.0 but I don't want to wait anymore.

19 years agosync whitespace with glibc
Mike Frysinger [Fri, 17 Jun 2005 02:20:24 +0000 (02:20 -0000)]
sync whitespace with glibc

19 years agoJim Ramsay writes:
Eric Andersen [Thu, 16 Jun 2005 20:29:47 +0000 (20:29 -0000)]
Jim Ramsay writes:
<lack> andersee: Yes.  But why does it expose the prototype for _sys_siglist
but NOT provide it in the library?  It should either be put into the
library or taken out of the header.
<lack> I just replace the prototype for _sys_siglist with '#define _sys_siglist
sys_siglist' and it seemed to work.

19 years agochange the old pads to the new nano sec fields
Mike Frysinger [Sat, 11 Jun 2005 00:24:20 +0000 (00:24 -0000)]
change the old pads to the new nano sec fields

19 years agotouchup syntax for no real good reason ;)
Mike Frysinger [Sat, 11 Jun 2005 00:01:24 +0000 (00:01 -0000)]
touchup syntax for no real good reason ;)

19 years agoBased on start.S from debian's glibc, this gets arm working
Eric Andersen [Fri, 10 Jun 2005 23:22:23 +0000 (23:22 -0000)]
Based on start.S from debian's glibc, this gets arm working
properly with the new ABI

19 years agoAdd missing file needed for arm to compile
Eric Andersen [Fri, 10 Jun 2005 21:03:18 +0000 (21:03 -0000)]
Add missing file needed for arm to compile

19 years agoBased in part on related code in glibc, this might even be correct.
Eric Andersen [Fri, 10 Jun 2005 20:06:11 +0000 (20:06 -0000)]
Based in part on related code in glibc, this might even be correct.

19 years agoRemove TEXTREL relocations for ARM.
Joakim Tjernlund [Fri, 10 Jun 2005 18:25:35 +0000 (18:25 -0000)]
Remove TEXTREL relocations for ARM.
Hide __syscall_error from outside libc.
From Peter Mazinger.

19 years agooops. I'd left some junk in there
Eric Andersen [Fri, 10 Jun 2005 10:31:37 +0000 (10:31 -0000)]
oops.  I'd left some junk in there

19 years agorework arm crt1 properly this time around
Eric Andersen [Fri, 10 Jun 2005 10:28:42 +0000 (10:28 -0000)]
rework arm crt1 properly this time around

19 years agosilly rabbit
Eric Andersen [Fri, 10 Jun 2005 09:31:21 +0000 (09:31 -0000)]
silly rabbit

19 years agoDunno yet if I got this right or not, but it now at least
Eric Andersen [Fri, 10 Jun 2005 09:18:20 +0000 (09:18 -0000)]
Dunno yet if I got this right or not, but it now at least
has a chance of perhaps working...

19 years agoFinish updating mips for the new ABI
Eric Andersen [Fri, 10 Jun 2005 07:22:28 +0000 (07:22 -0000)]
Finish updating mips for the new ABI

19 years agomove tv def back with gettimeofday() func
Mike Frysinger [Tue, 7 Jun 2005 00:58:04 +0000 (00:58 -0000)]
move tv def back with gettimeofday() func

19 years agoFix a broken link
Eric Andersen [Fri, 3 Jun 2005 17:51:35 +0000 (17:51 -0000)]
Fix a broken link

19 years agoclean up syntax/whitespace and a few variables to minimize diffs between i386/m68k
Mike Frysinger [Fri, 3 Jun 2005 00:00:50 +0000 (00:00 -0000)]
clean up syntax/whitespace and a few variables to minimize diffs between i386/m68k

19 years agotweak whitespace to minimize diffs between i386/m68k
Mike Frysinger [Fri, 3 Jun 2005 00:00:08 +0000 (00:00 -0000)]
tweak whitespace to minimize diffs between i386/m68k

19 years agoAdd debug printout of RTLD_GLOBAL and RTLD_NOW flag.
Joakim Tjernlund [Wed, 1 Jun 2005 14:57:14 +0000 (14:57 -0000)]
Add debug printout of RTLD_GLOBAL and RTLD_NOW flag.

19 years agoInitial support for both RUNPATH support.
Joakim Tjernlund [Wed, 1 Jun 2005 14:08:13 +0000 (14:08 -0000)]
Initial support for both RUNPATH support.
RPATH sematics changed to match RUNPATH. Only difference is
that RPATH is searched before LD_LIBRARY_PATH and RUNPATH
after. This is not complete but better than the current mess(I think).

19 years agoFix bug 60
Joakim Tjernlund [Tue, 31 May 2005 11:49:10 +0000 (11:49 -0000)]
Fix bug 60

19 years agoAdd Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT to
Joakim Tjernlund [Sat, 28 May 2005 23:44:06 +0000 (23:44 -0000)]
Add Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT to
be able to run apps built with 0.9.27. This also renames
__uClibc_start_main to __uClibc_main.
This compat option should be removed some time after 0.9.28 is released.

Let me know if you don't like this change.

19 years agoFilter out any -z defs since this lib will have undefined symbols that
Joakim Tjernlund [Sat, 28 May 2005 23:22:12 +0000 (23:22 -0000)]
Filter out any -z defs since this lib will have undefined symbols that
are in gdb.

19 years agofix warnings like
Joakim Tjernlund [Sat, 28 May 2005 22:11:25 +0000 (22:11 -0000)]
fix warnings like
  td_thr_tls_get_addr.c:30: warning: `__used__' attribute ignored

19 years agogcc says
Joakim Tjernlund [Sat, 28 May 2005 21:59:38 +0000 (21:59 -0000)]
gcc says
  spinlock.c:35: warning: matching constraint does not allow a register

Update the asm to match glibc.

19 years agoI added, then removed and now I add this again :). Hopefully I got it rigth this...
Joakim Tjernlund [Sat, 28 May 2005 21:58:09 +0000 (21:58 -0000)]
I added, then removed and now I add this again :). Hopefully I got it rigth this time.

19 years agoAdd patch at bugs 274. From Peter Manzinger.
Joakim Tjernlund [Sat, 28 May 2005 21:18:22 +0000 (21:18 -0000)]
Add patch at bugs 274. From Peter Manzinger.

19 years agoAdd back .size for __start
Joakim Tjernlund [Sat, 28 May 2005 16:36:52 +0000 (16:36 -0000)]
Add back .size for __start

19 years agoAdd back .size for _start
Joakim Tjernlund [Sat, 28 May 2005 16:30:11 +0000 (16:30 -0000)]
Add back .size for _start

19 years agotouchup defines so that we can use same ssp.c in both glibc and uclibc
Mike Frysinger [Fri, 27 May 2005 22:09:40 +0000 (22:09 -0000)]
touchup defines so that we can use same ssp.c in both glibc and uclibc

19 years ago- keep gcc-4.x happy
Ned Ludd [Fri, 27 May 2005 19:46:34 +0000 (19:46 -0000)]
- keep gcc-4.x happy

19 years agoerik 0, stupid 1
Eric Andersen [Fri, 27 May 2005 05:53:52 +0000 (05:53 -0000)]
erik 0, stupid 1

19 years agostyle updates
Mike Frysinger [Fri, 27 May 2005 03:29:03 +0000 (03:29 -0000)]
style updates

19 years agoWith a bit of luck, this might just get mips working again
Eric Andersen [Fri, 27 May 2005 00:23:45 +0000 (00:23 -0000)]
With a bit of luck, this might just get mips working again

19 years agominor tweak for correctness
Eric Andersen [Fri, 27 May 2005 00:22:50 +0000 (00:22 -0000)]
minor tweak for correctness

19 years agoPass the aligned stack ptr, not the unaligned.
Joakim Tjernlund [Thu, 26 May 2005 23:32:38 +0000 (23:32 -0000)]
Pass the aligned stack ptr, not the unaligned.

19 years agoClean it up a little.
Joakim Tjernlund [Thu, 26 May 2005 23:11:49 +0000 (23:11 -0000)]
Clean it up a little.

19 years agoAdapt x86 to new __uClibc_start_main.
Joakim Tjernlund [Thu, 26 May 2005 23:05:31 +0000 (23:05 -0000)]
Adapt x86 to new __uClibc_start_main.

19 years agoFix PPC wrt new __uClibc_start_main.
Joakim Tjernlund [Thu, 26 May 2005 22:27:40 +0000 (22:27 -0000)]
Fix PPC wrt new __uClibc_start_main.

19 years agoThis commit breaks the entire world (yet again). Calculate the
Eric Andersen [Thu, 26 May 2005 22:19:19 +0000 (22:19 -0000)]
This commit breaks the entire world (yet again).  Calculate the
position of envp in C code based on argv and argp.  No need to
caclulate that in asm for N arches.  This way, we better match
what glibc does.  All arches will need to be fixed to match up
with this change.

19 years agoAdd PIE support to ARM. From Peter Mazinger
Joakim Tjernlund [Thu, 26 May 2005 21:23:03 +0000 (21:23 -0000)]
Add PIE support to ARM. From Peter Mazinger

19 years agoRemoved -z defs as a more general solution is in the works.
Joakim Tjernlund [Thu, 26 May 2005 21:10:13 +0000 (21:10 -0000)]
Removed -z defs as a more general solution is in the works.

19 years agoFix "off by one" bug.
Joakim Tjernlund [Thu, 26 May 2005 08:43:30 +0000 (08:43 -0000)]
Fix "off by one" bug.

19 years agoPrepare for standalone execution of ldso.
Joakim Tjernlund [Wed, 25 May 2005 23:54:50 +0000 (23:54 -0000)]
Prepare for standalone execution of ldso.

19 years agoAdapt startup code in x86 and PPC to almost match glibc. _init vs. __libc_csu_init and
Joakim Tjernlund [Wed, 25 May 2005 23:42:40 +0000 (23:42 -0000)]
Adapt startup code in x86 and PPC to almost match glibc. _init vs. __libc_csu_init and
_fini vs. __libc_csu_fini remains to do.

19 years agoEnable new FINI processing. ldso now passes a FINI function
Joakim Tjernlund [Sat, 21 May 2005 21:40:14 +0000 (21:40 -0000)]
Enable new FINI processing. ldso now passes a FINI function
ptr to crt. Only PowerPC and x86 support this currently.

19 years agoUpdate PowerPC to new ABI.
Joakim Tjernlund [Sat, 21 May 2005 21:31:36 +0000 (21:31 -0000)]
Update PowerPC to new ABI.

19 years agoPass main function ptr from crt1 to __uClibc_start_main.
Joakim Tjernlund [Sat, 21 May 2005 21:19:43 +0000 (21:19 -0000)]
Pass main function ptr from crt1 to __uClibc_start_main.
Kill old crt0/__uClibc_main.

This breaks ABI. All apps and toolchain needs to be recompiled.
All archs except x86 are now broken and need to be fixed as x86.
PPC will be fixed shortly by me, the rest is left to the arch maintainers.

19 years agoFix debug macros.
Joakim Tjernlund [Fri, 20 May 2005 22:04:11 +0000 (22:04 -0000)]
Fix debug macros.

19 years agoFinish up reverting NPTL
Eric Andersen [Fri, 20 May 2005 19:13:42 +0000 (19:13 -0000)]
Finish up reverting NPTL

19 years agoBack out nptl changes, which for now will be done in branches/uClibc-nptl
Eric Andersen [Fri, 20 May 2005 19:02:51 +0000 (19:02 -0000)]
Back out nptl changes, which for now will be done in branches/uClibc-nptl

19 years agoFix up some more NPTL stuff for header file symbolic links.
"Steven J. Hill" [Sun, 15 May 2005 04:52:54 +0000 (04:52 -0000)]
Fix up some more NPTL stuff for header file symbolic links.

19 years agoGet rid of crud.
"Steven J. Hill" [Sun, 15 May 2005 00:53:01 +0000 (00:53 -0000)]
Get rid of crud.

19 years agoThere were two versions of 'pthreadtypes.h' originally in uClibc. Also,
"Steven J. Hill" [Sat, 14 May 2005 23:42:47 +0000 (23:42 -0000)]
There were two versions of 'pthreadtypes.h' originally in uClibc. Also,
since we are going to support the two implementations of pthreads, we
again need to instead create symbolic links to use the proper version
of the file depending on the pthreads option chosen.

19 years agoSync uClibc 'sigthread.h' with the latest version from glibc.
"Steven J. Hill" [Sat, 14 May 2005 23:40:49 +0000 (23:40 -0000)]
Sync uClibc 'sigthread.h' with the latest version from glibc.

19 years agoAdd TOPDIR prefix in front of config file when getting target architecture.
"Steven J. Hill" [Sat, 14 May 2005 23:40:19 +0000 (23:40 -0000)]
Add TOPDIR prefix in front of config file when getting target architecture.

19 years agoIn order to accomodate usage of either pthreads implementation, we now
"Steven J. Hill" [Sat, 14 May 2005 22:32:43 +0000 (22:32 -0000)]
In order to accomodate usage of either pthreads implementation, we now
have to create symbolic links for 'semaphore.h' and 'pthread.h' which
will point to the proper pthreads directory. When we finish getting
NPTL working with uClibc, perhaps we can merge them, but a first glance
at the differences between the two does not make that very likely.

19 years agoAdd missing file to the clean list.
"Steven J. Hill" [Sat, 14 May 2005 22:02:58 +0000 (22:02 -0000)]
Add missing file to the clean list.

19 years agoTop-level makefile fix for OS agnosticism and set the value of TARGET_ARCH
"Steven J. Hill" [Sat, 14 May 2005 22:02:36 +0000 (22:02 -0000)]
Top-level makefile fix for OS agnosticism and set the value of TARGET_ARCH
using grep because the '.config' will not get included if we are doing
a 'clean' or other targets. This was preventing the proper cleaning up
target architecture include files.

19 years agoARM1136JF-S support.
Paul Mundt [Fri, 13 May 2005 14:27:30 +0000 (14:27 -0000)]
ARM1136JF-S support.

19 years agoAdded new 'bits/atomic.h' for most of the architectures and the top-level 'include...
"Steven J. Hill" [Thu, 12 May 2005 03:27:36 +0000 (03:27 -0000)]
Added new 'bits/atomic.h' for most of the architectures and the top-level 'include/atomic.h' to add in new atomic operations for use by NPTL. There are multiple files for PowerPC and Sparc for 'atomic.h'. I will let those architecture maintainers choose the correct file. The files come from glibc in 'sysdeps/ARCH/bits'.

19 years agoAdded new common include file for list primitives used by NPTL.
"Steven J. Hill" [Thu, 12 May 2005 03:05:57 +0000 (03:05 -0000)]
Added new common include file for list primitives used by NPTL.

19 years agoRemove usage of 'hp-timing.h' header file which is for platforms with high
"Steven J. Hill" [Thu, 12 May 2005 02:59:49 +0000 (02:59 -0000)]
Remove usage of 'hp-timing.h' header file which is for platforms with high
performance timers. If you want them included in the NPTL build, copy the
header from glibc into the 'libc/sysdeps/linux/<ARCH>' of your choice and
have fun.

19 years agoPut the change log back in.
"Steven J. Hill" [Thu, 12 May 2005 00:11:57 +0000 (00:11 -0000)]
Put the change log back in.

19 years agoMore glibc backward compatibility cruft. Oh the horror!
"Steven J. Hill" [Wed, 11 May 2005 23:53:20 +0000 (23:53 -0000)]
More glibc backward compatibility cruft. Oh the horror!

19 years agoBackwards compatability? Bhuwhahaha....you wonder why glibc is so
"Steven J. Hill" [Wed, 11 May 2005 23:44:35 +0000 (23:44 -0000)]
Backwards compatability? Bhuwhahaha....you wonder why glibc is so
bloated. *oink* *oink*

19 years agoCleanup original linuxthreads and update top-level threads makefiles.
"Steven J. Hill" [Wed, 11 May 2005 23:41:36 +0000 (23:41 -0000)]
Cleanup original linuxthreads and update top-level threads makefiles.

19 years agoThis file is no longer used. kill it.
Eric Andersen [Wed, 11 May 2005 22:41:40 +0000 (22:41 -0000)]
This file is no longer used.  kill it.

19 years agoWe already have these defined.
"Steven J. Hill" [Wed, 11 May 2005 02:04:31 +0000 (02:04 -0000)]
We already have these defined.

19 years agoRemove extraneous file.
"Steven J. Hill" [Wed, 11 May 2005 02:02:28 +0000 (02:02 -0000)]
Remove extraneous file.

19 years agoRemove additional test programs.
"Steven J. Hill" [Wed, 11 May 2005 02:00:50 +0000 (02:00 -0000)]
Remove additional test programs.

19 years agoSHMLBA is now defined by arch dependent bits/shm.h file so remove
Joakim Tjernlund [Tue, 10 May 2005 10:31:18 +0000 (10:31 -0000)]
SHMLBA is now defined by arch dependent bits/shm.h file so remove
this one. MIPS is the only one defining SHMLBA differently.

19 years agoThe default static buffer sizes are too small to handle the 8 entries returned
Eric Andersen [Tue, 10 May 2005 08:22:56 +0000 (08:22 -0000)]
The default static buffer sizes are too small to handle the 8 entries returned
by 'nslookup www.yahoo.com' and 'nslookup mail.hotmail.com', and thus we
currently return ERANGE when trying to lookup some of the most popular hosts on
the planet.  Whether these sites deserve to be popular is a question I'll leave
for someone else to worry about.

This change makes certain we have enough static buffer space to handle about 21
IPv4 IP address replies per DNS query.  Far more than enough to handle common
cases such as www.yahoo.com and mail.hotmail.com.

19 years agoChange strptime so that it only modifies struct tm fields specified.
Manuel Novoa III [Tue, 10 May 2005 03:02:11 +0000 (03:02 -0000)]
Change strptime so that it only modifies struct tm fields specified.

19 years agoHopefully fix the problem reported by Peter Mazinger,
Joakim Tjernlund [Sat, 7 May 2005 22:20:37 +0000 (22:20 -0000)]
Hopefully fix the problem reported by Peter Mazinger,
see http://uclibc.org/lists/uclibc/2005-May/011667.html for details.
Not tested by me but I am sure Peter will :)

The toolchain needs to be rebuilt.

19 years agoFix trapa value for _syscall6() to conform with new sh syscall ABI.
Paul Mundt [Sat, 7 May 2005 20:10:07 +0000 (20:10 -0000)]
Fix trapa value for _syscall6() to conform with new sh syscall ABI.

The old sh system call interface used 0x00 - 0x0f for the trapa value
(number of arguments), whereas the new ABI uses the 0x10 - 0x1f range.
For some reason we were using an off-by-1 trapa immediate which ended up
trashing r1 in the _syscall6() case, so we fix it up..

19 years agoIt turns out that the problem that required us to use --enable-sjlj-exceptions
Eric Andersen [Sat, 7 May 2005 18:27:13 +0000 (18:27 -0000)]
It turns out that the problem that required us to use --enable-sjlj-exceptions
was specific to gcc 3.3.3.  Later toolchains fixed the regressions; thus, we do
not need to worry about this TODO item anymore.

19 years agoImport in NPTL code from glibc. For further information please
"Steven J. Hill" [Sat, 7 May 2005 02:04:55 +0000 (02:04 -0000)]
Import in NPTL code from glibc. For further information please
consult the 'README.NPTL' file.

19 years agoHaha. I caught it before you did.
"Steven J. Hill" [Sat, 7 May 2005 00:35:50 +0000 (00:35 -0000)]
Haha. I caught it before you did.

19 years agoAdd in configuration item and Makefile changes for NPTL. We will be
"Steven J. Hill" [Sat, 7 May 2005 00:31:49 +0000 (00:31 -0000)]
Add in configuration item and Makefile changes for NPTL. We will be
placing the NPTL code under the top-level 'libpthread' directory.
Nothing compiles or even works at this point, so do not enable this
option.