summaryrefslogtreecommitdiffstats
path: root/libpthread
Commit message (Collapse)AuthorAgeFilesLines
...
* Patch from Peter S. Mazinger:Eric Andersen2004-12-221-0/+6
| | | | Seperate out security features into a separate menu
* Cleaned up patch from Peter S. Mazinger adding support forEric Andersen2004-12-221-0/+2
| | | | | -fstack-protector and -fno-stack-protector-all security options
* Patch from Peter S. Mazinger to consistantly use "ASFLAGS"Eric Andersen2004-12-221-2/+2
| | | | as the flags for all calls to 'as'
* We can't strip libpthread or libthread_db can't help gdb debug ptheadsEric Andersen2004-12-111-1/+5
|
* libpthread can use the normal LDFLAGS (including -s to strip it), butEric Andersen2004-12-081-4/+3
| | | | libthreaddb must not be stripped or gdb can't use it.
* A patch included in glibc 2.3.2's libthread_db that helps remoteEric Andersen2004-11-081-0/+4
| | | | debugging not become confused,
* Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III2004-10-311-2/+2
| | | | | | adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition.
* We don't need this READMEEric Andersen2004-10-261-352/+0
|
* Peter S. Mazinger writes:Eric Andersen2004-10-191-2/+2
| | | | | | | | | | | Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
* Rip out Peter's unacceptable "fix" and do the sane thing instead; buildManuel Novoa III2004-10-151-9/+8
| | | | the utils using the uClibc-targeted toolchain.
* Peter Mazinger writes:Joakim Tjernlund2004-10-141-8/+4
| | | | | | | The attached patch is an updated version of an earlier sent patch It solves the problem that the target utils (ldconfig/ldd/iconv, readelf is not handled, but can be easily added) are not built w/ the newly created [S]crt[01].o files.
* Peter S. Mazinger writes:Joakim Tjernlund2004-10-061-1/+1
| | | | | | | | Corrects libpthread_db name (I do not know why libpthread_db.so uses libpthread_db.so.1 instead of libpthread_db.so.$(MAJOR_VERSION) as soname) Note by Jocke: I don't known either but until then this is the right thing to do.
* Partial patch from Alexandre Oliva:Eric Andersen2004-08-261-18/+38
| | | | | | | | | | - adjust licensing terms of sources for crt*.o - change the stat ABI to speed it up, matching changes in the kernel - assorted bug-fixes, improvements and updates in the FR-V port etc.
* The variable used to store pagesize is not the same as theEric Andersen2004-08-161-4/+4
| | | | | _dl_pagesize variable in ldso, so avoid aliasing. -Erik
* Fixup PAGE_SIZE problemsEric Andersen2004-08-131-3/+5
| | | | -Erik
* Cleanup some dead wood in the header filesEric Andersen2004-07-301-40/+0
|
* Pete Popov writes:Eric Andersen2004-07-162-0/+125
| | | | | | | | | | | | | Hi Erik, I'm not sure why the NIOS support is not in uClibc -- perhaps the patch was rejected or never submitted? In any case, I'm playing with some NIOS stuff and created this patch against 0.9.26. The work was done by Microtronix. I'm not sure who else contributed to it. It would be great to have the NIOS support available in uClibc so developers don't have to go searching for these bits. Pete
* _SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZEEric Andersen2004-07-151-1/+1
| | | | instead, but we are not such a system and should not propagate such things.
* Alexandre Oliva writes:Eric Andersen2004-05-141-0/+4
| | | | | | | | | A program that requests __pthread_sig_debug to be blocked will self-deadlock when it requests a thread to be created, because the debugger (rda or gdb) will never get the signal, so it won't wake up the pthread manager as expected. This patch fixes it.
* Alexandre Oliva writes:Eric Andersen2004-05-061-21/+16
| | | | | | | | | | | | | | | | The vfork() wrapper defined in libpthread, that's used to run pthread_atfork()-registered handlers, is not only a very bad idea, it's broken and useless. Here's the rationale: [---------snip----------] Since the implementation as it stands is broken (linking a program that vfork()s and exec()s on the child and wait()s on the parent works unless you happen to link with libpthread), and I can't think of any workable solution, I suggest that we simply remove the vfork() overrider in the non-MMU case. Yes, we might lose some small amount of functionality here, but it's not like people running uClinux expect anything resembling actual fork() to work.
* Cope with gcc 3.4's more aggressive persuit of attribute unusedEric Andersen2004-04-201-4/+4
|
* We don't need these...Eric Andersen2004-04-202-1653/+0
|
* Alexandre Oliva writes:Eric Andersen2004-02-181-0/+48
| | | | | | | | | | | | | | | | | | | | This patch adds code to uClibc to support a new ABI designed for the FR-V architecture, that enables text segments of executables and shared libraries to be shared by multiple processes on an OS such as uClinux, that can run on FR-V processors without an MMU. Patches for binutils and GCC have just been posted in the corresponding mailing lists. The binutils patch was approved, but there's one additional patch pending review, that I posted this week. An updated GCC patch will be posted to gcc-patches@gcc.gnu.org as soon as I complete testing (I used a known-good compiler to test the uClibc patch below). Since the existing dynamic loader code didn't support independent relocation of segments, it required changes that were somewhat extensive. I've added a number of new machine-specific macros to try to keep the platform and ABI-specific details outside the generic code. I hope this is not a problem.
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-112-27/+17
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* We need to link with libgcc.a when creating shared libs, in order toManuel Novoa III2004-01-161-2/+4
| | | | | avoid problems 'hidden symbol' problems. Also handle -lfloat for the soft-float arm case.
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-164-16/+16
|
* remove unused fileEric Andersen2003-12-282-121/+1
|
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-273-3/+0
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Paul Mundt <lethal@linux-sh.org> writes:Eric Andersen2003-12-055-2/+196
| | | | | | | | | | | | | This patch adds the libpthread backend bits for sh64. As noted previously, we can't inline things like the testandset() in pt-machine.h as we need to use a completely different ISA / CFLAGS in order for this to work. As a result, this patch is somewhat of a RFC as well to see what people think of the libpthread/linuxthreads/sysdeps Makefile approach, etc. The approach I've taken currently has been to provide a sysdeps/Makefile with a note that TARGET_ARCHs that want build rules can simply add themselves into the list of matching architectures to add to the subdir rule for. This probably isn't the cleanest solution, but it's quite transparent and works quite well.
* Arthur Shipkowski, art ! videon-central ! com, writes:Eric Andersen2003-11-051-1/+25
| | | | | | | | | | | | | | | | | | | | | | I've noticed a few people have posted over the last year about problems compiling programs that use vfork when pthreads are involved. Some detective work turned up that ptfork.c aliases vfork to fork and then tries to call the original fork as __libc_fork. This patch removes the aliasing when there is no MMU present, and uses the same call semantics to call __libc_vfork. I then added a symbol to the m68k vfork.S to allow vfork to be called as __libc_vfork. The same bug exists in the uClibc CVS, and with a possible tweak this patch should go through there as well. Obviously, all other platforms need __libc_vfork as a workable means to call vfork in order for this to work for them. Let me know if there are any problems with this patch. Art Shipkowski Videon Central Software Engineer (814)235-1111 x307
* minor cleanupEric Andersen2003-11-041-4/+4
|
* gdb wants to dlopen "libthread_db.so.1", so be sure to assignEric Andersen2003-10-311-1/+1
| | | | the correct soname
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-8/+8
| | | | | | | | | | ln.patch: * Define $(LN) as ln in Rules.mak. * Change all occurrences of ln into $(LN). * Change all constructs like (cd path && ln -sf foo/file file) into $(LN) -sf foo/file path/file. The latter construct is already used in a number of places so it should not be an additional compatibility problem.
* Peter Kjellerstedt writes:Eric Andersen2003-10-183-9/+7
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-8/+8
| | | | | | | | | install.patch: * Define $(INSTALL) as install in Rules.mak. * Change all occurrences of install into $(INSTALL). * Change all occurrences of mkdir -p into $(INSTALL) -d. install -d is already used in a number of places so this should not be an additional compatibility problem.
* here is (I hope) a better way to handle this one. I regularly buildEric Andersen2003-08-291-1/+2
| | | | | debug versions of uClibc with -O0, but libpthread/linuxthreads/spinlock.c will not compile without at least -O1 optimization...
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-015-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
* Doing an search and replace on CFLAGS can prove dangerous. We don'tEric Andersen2003-07-211-1/+1
| | | | do -O0 by default anyways, so leave this disabled for now.
* Fixup symlinks to libthread_dbEric Andersen2003-06-301-1/+3
|
* When compiling with -O0, linuxthreads does not compile. So addEric Andersen2003-06-171-0/+2
| | | | a local override changing -O0 to -O1 only for that directory.
* Coldfire patch from Bernardo InnocentiEric Andersen2003-06-171-2/+2
|
* Set the default thread stack size to 16k for mmu-less systems.Eric Andersen2003-06-121-0/+4
| | | | -Erik
* Patch from Peter S. Mazinger to fix some leftover problemsEric Andersen2003-06-022-2/+2
| | | | from converting "PIC" to "__PIC__"
* In a number of places we erroneously used tests such as '#ifdef PIC' when weEric Andersen2003-05-305-5/+5
| | | | | | should instead have been testing for '#ifdef __PIC__'. This resulted in NON-PIC code getting mixed into the shared library. Oops!!! -Erik
* Oops. Don't call strip twiceEric Andersen2003-03-131-1/+0
|
* Make it so debugging pthreads works, even with DODEBUG turned offEric Andersen2003-03-112-2/+9
| | | | -Erik
* Minor cleanup to better sync with glibc 2.3Eric Andersen2003-03-111-102/+123
|
* Seperate pthread debugging from uClibc debugging. They are usedEric Andersen2003-03-041-1/+1
| | | | for different things.
* Patch from Stefan Allius adding the function 'thread_self_stack'Eric Andersen2003-03-041-1/+21
| | | | from glibc 2.3 that is needed for pthreads to compile for SuperH.
* Initial effort at adding profiling support.Eric Andersen2003-03-0326-971/+49
|