OSDN Git Service
"Steven J. Hill" [Tue, 4 Oct 2005 00:29:14 +0000 (00:29 -0000)]
Clean up pthread include mess. Some of these will be needed to support NPTL, but they do no harm for the linuxthreads case. Yes, I tested this.
"Steven J. Hill" [Tue, 4 Oct 2005 00:05:37 +0000 (00:05 -0000)]
Neaten up the libpthread directory.
Peter S. Mazinger [Mon, 3 Oct 2005 17:53:21 +0000 (17:53 -0000)]
Move _dl_protect_relro as in ldso.c, thanks to jocke
Peter S. Mazinger [Mon, 3 Oct 2005 17:50:48 +0000 (17:50 -0000)]
Enable attribute_relro on __guard and __stack_chk_guard now that ld.so supports it
Peter S. Mazinger [Mon, 3 Oct 2005 17:25:28 +0000 (17:25 -0000)]
Move _dl_protect_relro after INIT to allow using attribute_relro within uClibc_init
"Steven J. Hill" [Sat, 1 Oct 2005 17:34:42 +0000 (17:34 -0000)]
Again, I need to cut down on my merge times and this last set of changes to the makefile structure is killing me. Sorry to put more native thread stuff in, but it cannot be activated in the trunk, so there is no harm.
"Steven J. Hill" [Sat, 1 Oct 2005 17:06:33 +0000 (17:06 -0000)]
Clean up debugging levels for MIPS. This should make things consistent now.
"Steven J. Hill" [Sat, 1 Oct 2005 16:24:20 +0000 (16:24 -0000)]
Change the order in which '__uClibc_init' is called. In the case of NPTL, some auxillary TLS set up has to happen beforehand. This has been tested for almost two months now and I am tired of chasing it around in my merges. Look in the NPTL trunk if you want more information.
Peter S. Mazinger [Sat, 1 Oct 2005 15:48:22 +0000 (15:48 -0000)]
Add gcc-4.1 non-TLS __stack_chk_guard support. Run the guard setup only once.
Peter S. Mazinger [Sat, 1 Oct 2005 10:16:02 +0000 (10:16 -0000)]
chroot_realpath.c is a dependency also for target ldconfig
Eric Andersen [Fri, 30 Sep 2005 21:30:57 +0000 (21:30 -0000)]
Allow ldconfig.host to build ld.so.cache for target, regardless of
the target system's byteorder
Peter S. Mazinger [Fri, 30 Sep 2005 10:33:36 +0000 (10:33 -0000)]
Move arch specific bits from linuxthreads' Makefile to linuxthreads/sysdeps/TARGET_ARCH/Makefile.in proposed by vapier. The current implementation should suffice for now, but it needs to be extended for the nptl tree.
Peter S. Mazinger [Fri, 30 Sep 2005 09:06:20 +0000 (09:06 -0000)]
Split out header installation into separate install_headers target and added an additional condition for libc.so linker script creation checking for libc.so.0 in place.
Peter S. Mazinger [Thu, 29 Sep 2005 22:43:31 +0000 (22:43 -0000)]
Add .type _init/_fini unconditionally to arm/crt1.S
Peter S. Mazinger [Thu, 29 Sep 2005 20:15:28 +0000 (20:15 -0000)]
Similarly to libm, remove recursion from linuxthreads. Now only libc.a and libc.so are rebuilt again if make is run a second time.
Peter S. Mazinger [Thu, 29 Sep 2005 19:14:58 +0000 (19:14 -0000)]
Remove unneeded temporary file, libm.so will wait until libm.a target is finished
Peter S. Mazinger [Thu, 29 Sep 2005 19:06:54 +0000 (19:06 -0000)]
Allow parallel building in libm
Peter S. Mazinger [Thu, 29 Sep 2005 17:54:53 +0000 (17:54 -0000)]
Modify libm's Makefile not needing any recursion
Peter S. Mazinger [Thu, 29 Sep 2005 08:25:49 +0000 (08:25 -0000)]
If HAVE_SHARED is disabled and libm/TARGET_ARCH does not exist, subdirs does not resolve to anything, not pulling in libm.a target. Add libm.a to all: .
Mike Frysinger [Wed, 28 Sep 2005 23:34:49 +0000 (23:34 -0000)]
fix building
Peter S. Mazinger [Wed, 28 Sep 2005 18:52:06 +0000 (18:52 -0000)]
Build crt[in].o with disabled ssp.
Peter S. Mazinger [Wed, 28 Sep 2005 17:17:20 +0000 (17:17 -0000)]
arm/crt1.S needs features.h and the weak _init/_fini independently of __PIC__. Add these weaks to mips/crt1.S as well.
Peter S. Mazinger [Wed, 28 Sep 2005 13:09:46 +0000 (13:09 -0000)]
Oops, libc.a didn't got installed
Peter S. Mazinger [Wed, 28 Sep 2005 12:34:41 +0000 (12:34 -0000)]
Remove ar-target and shared targets, at build time now we traverse the tree only once. Generalize all toplevel makefiles. Make sure, that libdl.so is built against libc.so and not libc.a
Mike Frysinger [Wed, 28 Sep 2005 01:18:01 +0000 (01:18 -0000)]
clean up -malign- vs -falign- #352 by yvasilev
Mike Frysinger [Wed, 28 Sep 2005 01:11:38 +0000 (01:11 -0000)]
use local header files rather than toolchain header files #444 by ee_doright
Peter S. Mazinger [Tue, 27 Sep 2005 21:42:39 +0000 (21:42 -0000)]
Should correct ppc compilation failure reported by Glauber de Oliveira Costa. Couldn't test it though on ppc.
Peter S. Mazinger [Tue, 27 Sep 2005 17:11:48 +0000 (17:11 -0000)]
Check for existing libc.so ld script before trying to modify it
Peter S. Mazinger [Tue, 27 Sep 2005 10:20:39 +0000 (10:20 -0000)]
Provide atexit() for static builds
Peter S. Mazinger [Tue, 27 Sep 2005 09:53:03 +0000 (09:53 -0000)]
Do not create libc.so linker script if only development headers are installed
Peter S. Mazinger [Tue, 27 Sep 2005 08:43:33 +0000 (08:43 -0000)]
Target distclean removes now locales.txt/codesets.txt too. reorder clean target.
Peter S. Mazinger [Tue, 27 Sep 2005 08:12:29 +0000 (08:12 -0000)]
Speed up clean target, don't recurse where possible, remove unneeded actions
Peter S. Mazinger [Tue, 27 Sep 2005 07:37:48 +0000 (07:37 -0000)]
Remove created objects independently of TARGET_ARCH and kill 3 warnings
Peter S. Mazinger [Mon, 26 Sep 2005 19:43:49 +0000 (19:43 -0000)]
Revert earlier patch to install_dev and runtime targets. Need a better solution.
Peter S. Mazinger [Mon, 26 Sep 2005 17:36:29 +0000 (17:36 -0000)]
remove unneeded ';' and add utils to .PHONY
Peter S. Mazinger [Mon, 26 Sep 2005 17:31:47 +0000 (17:31 -0000)]
Add __cxa_atexit and __cxa_finalize, thanks to Stephen Warren. This patch breaks compatibility with existing binaries, unless the new COMPAT_ATEXIT option is enabled.
Peter S. Mazinger [Mon, 26 Sep 2005 08:07:11 +0000 (08:07 -0000)]
Correct targets install_dev and install_runtime to depend on shared
Mike Frysinger [Sat, 24 Sep 2005 23:57:33 +0000 (23:57 -0000)]
make sure our utils link against the currently built libc rather than the toolchain one
"Steven J. Hill" [Sat, 24 Sep 2005 16:01:53 +0000 (16:01 -0000)]
Remove unneeded if clause. We won't be in this directory unless we
have enabled threads.
Mike Frysinger [Sat, 24 Sep 2005 04:58:20 +0000 (04:58 -0000)]
generate headers after running menuconfig
Peter S. Mazinger [Fri, 23 Sep 2005 20:17:39 +0000 (20:17 -0000)]
Do not build __uClibc_main.o with ssp enabled
Peter S. Mazinger [Fri, 23 Sep 2005 20:01:57 +0000 (20:01 -0000)]
Changed ssp.c license to LGPL and added vapier as contributor
Peter S. Mazinger [Fri, 23 Sep 2005 19:52:33 +0000 (19:52 -0000)]
New ssp code using syscalls where possible.
Moved guard_setup to __uClibc_main.c, the only place where it is called.
Removed SIGKILL option, not usable with sigaction.
Peter S. Mazinger [Fri, 23 Sep 2005 18:44:53 +0000 (18:44 -0000)]
Don't remove libc-internal.h on install, else gcc does not build
"Steven J. Hill" [Fri, 23 Sep 2005 03:15:09 +0000 (03:15 -0000)]
I really really HATE gcc-4.1 and its whimsical inline rules.
Peter S. Mazinger [Thu, 22 Sep 2005 09:45:02 +0000 (09:45 -0000)]
no check needed in libm/libpthread, we do not recurse anymore if the related option is not set, more Makefile cleanups
Mike Frysinger [Thu, 22 Sep 2005 03:04:19 +0000 (03:04 -0000)]
dont screw around with lib/ if it doesnt exist
Peter S. Mazinger [Thu, 22 Sep 2005 00:51:06 +0000 (00:51 -0000)]
split out nearbyint, round, trunc from libm/powerpc/s_modf.c
Peter S. Mazinger [Thu, 22 Sep 2005 00:43:18 +0000 (00:43 -0000)]
weaks moved after the related function so gcc4 won't warn
Mike Frysinger [Thu, 22 Sep 2005 00:20:12 +0000 (00:20 -0000)]
clean 32bit-isms and make code 64/32 bit clean
Peter S. Mazinger [Thu, 22 Sep 2005 00:04:48 +0000 (00:04 -0000)]
Makefile cleanups
Peter S. Mazinger [Wed, 21 Sep 2005 23:51:53 +0000 (23:51 -0000)]
add attribute_relro, should be unconditional, if gcc/ld supports it
Mike Frysinger [Wed, 21 Sep 2005 23:49:33 +0000 (23:49 -0000)]
sync copyright with glibc
Mike Frysinger [Wed, 21 Sep 2005 23:48:24 +0000 (23:48 -0000)]
add some more defines from binutils since our readelf uses it
Mike Frysinger [Wed, 21 Sep 2005 23:48:05 +0000 (23:48 -0000)]
touchup CFLAGS and also link the link.h header file like we do with elf.h
Mike Frysinger [Wed, 21 Sep 2005 23:47:10 +0000 (23:47 -0000)]
also symlink thread_db.h instead of duplicating it, fix the clean target, and touchup the headers target so we dont create bogus dir symlinks
Peter S. Mazinger [Wed, 21 Sep 2005 23:44:10 +0000 (23:44 -0000)]
do not recurse into subdirs if related options are not set
Peter S. Mazinger [Wed, 21 Sep 2005 23:40:27 +0000 (23:40 -0000)]
utils should be built all the time (iconv), disable building readelf
Peter S. Mazinger [Wed, 21 Sep 2005 23:33:29 +0000 (23:33 -0000)]
include headers only if the related option is enabled
Peter S. Mazinger [Wed, 21 Sep 2005 23:18:07 +0000 (23:18 -0000)]
disable obstack_printf in header, not supported
Peter S. Mazinger [Wed, 21 Sep 2005 23:12:18 +0000 (23:12 -0000)]
remove unused headers on install and clean up all thread related ones
Peter S. Mazinger [Wed, 21 Sep 2005 23:00:49 +0000 (23:00 -0000)]
enable flockfile and friends if threads are not enabled
Peter S. Mazinger [Wed, 21 Sep 2005 22:53:33 +0000 (22:53 -0000)]
correct some typos
Joakim Tjernlund [Wed, 21 Sep 2005 21:18:04 +0000 (21:18 -0000)]
__set_errno must be redefined after #include "sys/syscall.h".
syscall.h should not have it's own version of __set_errno, instead syscall.h should
include errno.h(see powerpc) since errno handling depends on threads/no threads.
I leave the the fixing of syscall.h since there might be some smaller compile problems.
Bernhard Reutner-Fischer [Wed, 21 Sep 2005 17:48:32 +0000 (17:48 -0000)]
- typo in documentation
Eric Andersen [Wed, 21 Sep 2005 17:45:12 +0000 (17:45 -0000)]
remove redundant paragraph
"Steven J. Hill" [Wed, 21 Sep 2005 11:31:54 +0000 (11:31 -0000)]
'pthread.h' is not the only file that needs to be symlinked. When NPTL gets merged, you will need to do 'semaphore.h' and 'bits/pthreadtypes.h'. I think I have been a good little boy and keeping my NPTL changes out of mainline, so I'm going to go ahead and cross the line this once to get this change in.
"Steven J. Hill" [Wed, 21 Sep 2005 05:14:02 +0000 (05:14 -0000)]
'pthread.h' is not the only file that needs to be symlinked. When NPTL gets merged, you will need to do 'semaphore.h' and 'bits/pthreadtypes.h'. I think I have been a good little boy and keeping my NPTL changes out of mainline, so I'm going to go ahead and cross the line this once to get this change in.
Mike Frysinger [Wed, 21 Sep 2005 03:55:21 +0000 (03:55 -0000)]
merge some misc stuff from glibc
Mike Frysinger [Wed, 21 Sep 2005 02:28:48 +0000 (02:28 -0000)]
move misc internal definitions to a sep file to minimize differences with features.h from glibc
Mike Frysinger [Wed, 21 Sep 2005 02:18:29 +0000 (02:18 -0000)]
merge x86_64 optimized string support
Mike Frysinger [Wed, 21 Sep 2005 02:17:00 +0000 (02:17 -0000)]
merge some updates from glibc to fix 32/64 bit support
Mike Frysinger [Wed, 21 Sep 2005 02:05:48 +0000 (02:05 -0000)]
dont duplicate pthread.h in include and libpthread subdirs, so symlink it
Joakim Tjernlund [Tue, 20 Sep 2005 21:25:39 +0000 (21:25 -0000)]
forgot MMAP_HAS_6_ARGS
Joakim Tjernlund [Tue, 20 Sep 2005 21:19:51 +0000 (21:19 -0000)]
Make powerpc use sys/syscall.h, instead of defining its own syscalls.
Joakim Tjernlund [Tue, 20 Sep 2005 21:16:25 +0000 (21:16 -0000)]
Fix bug 370.
Joakim Tjernlund [Sun, 18 Sep 2005 14:14:56 +0000 (14:14 -0000)]
Remove unused function.
Mike Frysinger [Sun, 18 Sep 2005 08:07:11 +0000 (08:07 -0000)]
declare _init/_fini weak if UCLIBC_CTOR_DTOR is not defined
Joakim Tjernlund [Sat, 17 Sep 2005 17:06:59 +0000 (17:06 -0000)]
Fix bug 430 and reduce ldso size with 1KB :). Not sure if I need to use fstat64, but I am sure someone will
tell me.
Joakim Tjernlund [Sat, 17 Sep 2005 12:00:06 +0000 (12:00 -0000)]
Add atomic support for PPC.
Merge glibc bits/atomic.h powerpc32/bits/atomic.h powerpc64/bits/atomic.h into one file
Joakim Tjernlund [Sat, 17 Sep 2005 11:23:39 +0000 (11:23 -0000)]
Change to glibc way of defining syscalls. This should make PPC
compile with gcc 4.0/4.1
Mike Frysinger [Fri, 16 Sep 2005 23:51:31 +0000 (23:51 -0000)]
make sure we treat count as size_t, not ssize_t ... fixes with help from khem
Mike Frysinger [Fri, 16 Sep 2005 23:42:25 +0000 (23:42 -0000)]
syntax/whitespace touchups
Mike Frysinger [Fri, 16 Sep 2005 04:58:13 +0000 (04:58 -0000)]
Robin Getz from blackfin.uclinux.org writes:
Bernd Schmidt found/fixed this problem in uClibc:
http://blackfin.uclinux.org/tracker/index.php?func=detail&aid=882&group_id=17&atid=141
Basically, the uClinux dist includes a few thread demos - thdm and bcdm -
running them simultaneously sometimes causes bus errors.
Bernd wrote:
>They occur in pthread_handle_sigrestart; thread_self returns a bogus value.
>I managed to capture a debugging log, it's attached as bad-log. If you
>look at it you'll notice that the initial stack bounds are bogus: bottom
>of stack is higher than top of stack. This appears to be because of a bug
>in NOMMU_INITIAL_THREAD_BOUNDS(tos,bos): if a new thread has a BOS equal
>to the initial thread's current TOS, it'll munge the initial thread's
>stack bounds. Fixed with the attached patch, which I've committed.
>This should fix the crashes people have seen, but since the bug was always
>hard to reproduce, I can't be 100% certain they are gone. Please retest,
>everyone...
This patch was made against our cvs, which has an older version of uClibc
in it - this code was recently moved from internals.h to descr.h in the
uclibc svn, but it still has the same problem
Mike Frysinger [Fri, 9 Sep 2005 03:05:37 +0000 (03:05 -0000)]
remove duplicated p_canceled setting and extra whitespace
Mike Frysinger [Fri, 9 Sep 2005 02:58:06 +0000 (02:58 -0000)]
sync style changes and misc fixes from glibc
Mike Frysinger [Fri, 9 Sep 2005 02:54:46 +0000 (02:54 -0000)]
sync some style changes and stack fixes with glibc
Mike Frysinger [Fri, 9 Sep 2005 02:46:25 +0000 (02:46 -0000)]
sync with glibc and macro out the strong_alias/versioned-symbols to cut down on the diffs
Mike Frysinger [Fri, 9 Sep 2005 02:45:42 +0000 (02:45 -0000)]
newer linuxthreads renamed the function invalid_handle() to nonexisting_handle()
Mike Frysinger [Fri, 9 Sep 2005 02:39:12 +0000 (02:39 -0000)]
sync with glibc by moving the thread_desc stuff out of internals.h and into a new file descr.h ... also redo thread_desc init by specifying members in the struct by name rather than position
Mike Frysinger [Fri, 9 Sep 2005 00:06:28 +0000 (00:06 -0000)]
revert pthread_exit change until all files using new prototype is ready
Mike Frysinger [Thu, 8 Sep 2005 23:57:11 +0000 (23:57 -0000)]
sync all the strong_alias and version compat stuff but make them no-ops with #if magic to cut down on diffs
Mike Frysinger [Thu, 8 Sep 2005 23:50:45 +0000 (23:50 -0000)]
add hidden_def() macros from glibc but stub them out to cut down on diffs
Mike Frysinger [Thu, 8 Sep 2005 23:48:03 +0000 (23:48 -0000)]
sync changelog with glibc
Mike Frysinger [Thu, 8 Sep 2005 23:47:35 +0000 (23:47 -0000)]
sync prototypes with glibc
Mike Frysinger [Thu, 8 Sep 2005 23:46:56 +0000 (23:46 -0000)]
punt wrapsyscall.c as glibc has
Mike Frysinger [Thu, 8 Sep 2005 04:25:06 +0000 (04:25 -0000)]
make sure we use optimized version when building for newer intel/amd cpus
Mike Frysinger [Thu, 8 Sep 2005 04:24:25 +0000 (04:24 -0000)]
import some fixes from glibc
Mike Frysinger [Thu, 8 Sep 2005 04:07:49 +0000 (04:07 -0000)]
sync with glibc and import pthread_rwlock_timed{rd,wr}lock in the process
Mike Frysinger [Thu, 8 Sep 2005 04:04:02 +0000 (04:04 -0000)]
uClibc has pthread_attr_{get,set}stack now