Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jun 14, 2011
  1. @aldot

    buildsys: pt-initfini.s depends on uClibc_config.h

    aldot authored
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  2. @kraj

    nptl/pthread: Correct path for machine specific pt-initfini.c

    kraj authored
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Commits on Jun 13, 2011
  1. @kraj

    ctor/dtor nptl: Fix init and fini function compilation

    kraj authored
    We need to define the rules for .S files so it
    gets the include paths some architectures like mips
    include headers
    
    Some architectures e.g. SH have their own version
    of pt-initfini.c so look for that first before resorting
    to generic version of pt-initfini.c
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Commits on Jun 10, 2011
  1. @kraj

    nptl/Makefile.in: Fix the build break caused by UCLIBC_CTOR_DTOR enab…

    kraj authored
    …ling
    
    Extra / somehow does not match the target and complains that
    $(top_builddir)libpthread/nptl/sysdeps/pthread/crti.o has no rules to
    build
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Commits on May 31, 2011
  1. @aldot

    NPTL: Fix CTOR_DTOR

    aldot authored
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Commits on May 13, 2011
  1. @kraj

    unwind.h: Move to libc/sysdeps from nptl sysdeps

    kraj authored
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
  2. @aldot

    epoll.c: add cancellation to epoll_[p]wait()

    Peter S. Mazinger authored aldot committed
    While there, fix epoll_pwait syscall, it takes 6 arguments
    
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Commits on May 11, 2011
  1. @aldot

    commentary typo fix

    aldot authored
    s/decriptor/descriptor/
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  2. @aldot

    commentary typo fix

    aldot authored
    use cancellation (with two 'l') uniformly.
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  3. @aldot

    lll: avoid shadow warnings

    aldot authored
    use __ret uniformly to avoid shadow warnings as seen on x86_64.
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  4. @aldot

    libubacktrace: mv unwind.h to include

    aldot authored
    Fixes compilation if NPTL is off.
    I hope this doesn't break ARM EABI but cannot check ATM.
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Commits on Mar 9, 2011
  1. remove trailing ';' from _syscallX()

    Peter S. Mazinger authored
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
  2. @kaniini @kraj

    nptl: fix compilation on x86_64

    kaniini authored kraj committed
    This commit gives us a fully functioning NPTL on x86-64 by using the GOTOFF macro
    as needed.
    
    Signed-off-by: William Pitcock <nenolod@dereferenced.org>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Commits on Mar 5, 2011
  1. @AJacquiot

    The C6X port

    AJacquiot authored Bernd Schmidt committed
    This adds support for the TI C6X family of processors.
    
    Signed-off-by: Mark Salter <msalter@redhat.com>
    Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com>
    Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
  2. Allow ABIs where SP points below the stack frame.

    Bernd Schmidt authored
    On C6X, the stack pointer points to a word that is not part of the current
    function's stack frame.  It may be overwritten by callees.  Take this into
    account when creating the stack for a cloned thread.
    
    Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
  3. Add Makefile support for DSBT ELF.

    Bernd Schmidt bernds_cb1@t-online.de authored
    This adds support for a new binary format, DSBT ELF, to the Makefiles.
    Every shared library is assigned a DSBT index, and the link.so macro is
    adjusted to ensure the correct linker argument is passed.
    
    Configuration and ldso support will follow in separate commits.
    
    Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Commits on Mar 4, 2011
  1. nptl: fix use of IS_IN_LIBPTHREAD macro

    Carmelo Amoroso authored
    IS_IN_LIBPTHREAD should be IS_IN_libpthread instead.
    
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Commits on Mar 3, 2011
  1. remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and …

    Peter S. Mazinger authored
    …STRICT_HEADERS
    
    Remove ucontext.h if SUSV4_LEGACY is not set and fix it's references.
    Guard sigstack structure with SUSV4_LEGACY and STRICT_HEADERS.
    Disable sigstack function prototype, it is not provided by uClibc.
    
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
  2. add missing prototypes

    Peter S. Mazinger authored
    Add some missing prototypes
    
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
  3. use common sigthread.h

    Peter S. Mazinger authored
    NPTL build did not use the correct bits/sigthread.h, use a common version
    avoiding this.
    
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
  4. add missing prototypes

    Peter S. Mazinger authored
    Add some missing prototypes
    
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
  5. syntax fixes

    Peter S. Mazinger authored
    Avoid compile warnings about the use of undefined constants
    
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
  6. avoid warnings on _STACK_GROWS_* usage

    Peter S. Mazinger authored
    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Commits on Feb 25, 2011
  1. nptl:arm: add a wrapper for .cfi_sections pseudo-ops

    Carmelo Amoroso authored
    ARM disables by default the support for ASM CFI directives.
    Anyway using an old version of binutils that does not support some new
    pseudo-op, the build fails as below:
    
      AS libpthread/nptl/sysdeps/unix/sysv/linux/close.oS
    libpthread/nptl/sysdeps/unix/sysv/linux/close.S: Assembler messages:
    libpthread/nptl/sysdeps/unix/sysv/linux/close.S:9: Error: unknown pseudo-op: `.cfi_sections'
    
    The problem is that the .cfi_sections pseudo should be wrapped by a macro
    that expands to nothing when the CFI is off.
    
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
    CC: Khem Ray <ray.khem@gmail.com>
Commits on Feb 24, 2011
  1. @vapier

    linuxthreads.old: fix nommu initial thread stack detection

    vapier authored
    Because the nommu address space is flat, and the application stack can
    literally be located anywhere, we cannot rely on the assumptions that the
    mmu port gets away with.  Namely, that the first thread's stack lives at
    the top of memory and nothing will be created above it.
    
    Currently, the code rounds the current stack up a page and sets that as
    the "top" of the stack, and then marks the "bottom" of the stack as "1".
    Then as new threads are created, this assumption is further refined by
    slowly backing off the "bottom" when a new stack is created within the
    range of the initial stack.
    
    Simple ascii example (tid0 is the initial thread):
    
    1 thread:
     [bos          tid0 stack           tos]
    
    2 threads:
                     [     tid0 stack      ]
          [tid1 stack]
    
    3 threads:
                     [     tid0 stack      ]
          [tid1 stack]
                                                [tid2 stack]
    
    As you can kind of see, this algorithm operates on one basic assumption:
    the initial top of stack calculation is the absolute top of the stack.
    While this assumption was fairly safe in the original nommu days of yore
    where the only file format was FLAT (which defaults to a 4KiB stack --
    exactly 1 page), and memory was fairly tight, we can see that this falls
    apart pretty quickly as soon as the initial stack is larger than a page.
    
    The issue that crops up now is simple to hit: start an application with
    an 8KiB stack, execute some functions that put pressure on the stack so
    that it exceeds 4KiB, then start up some threads.  The initial tos will
    be rounded up by a page, but this is actually the middle of the stack.
    Now when the initial thread returns from its functions (thus unwinding
    the stack) and tries to call something which calls back into libpthread,
    the thread_self() func fails to detect itself as the initial thread as
    the current stack is now above the tos.  The __pthread_find_self() func
    kicks in, walks all the thread arrays, fails to find a hit, and then
    walks into uninitialized memory for the thread descriptor.  Use of this
    garbage memory has obvious results -- things fall down & go boom.
    
    To address this, I extend the current algorithm to automatically scale
    back both the bottom and the top stack limits of the initial thread.
    We use the current stack pointer at "thread boot time" only as a single
    known point.  The initial thread stack bottom is set to the bottom of
    memory and the initial thread stack top is set to the top of memory.
    Then as we create new stack threads, we figure out whether the new stack
    is above or below the single known good address, and then scale back
    either the tos or the bos accordingly.
    
    Reviewed-by: Steven J. Magnani <steve@digidescorp.com>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Commits on Feb 9, 2011
  1. @aldot

    arm: mv nptl specific atomic impl to common place

    aldot authored
    Thanks to Nitin Garg for notincing!
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Commits on Feb 2, 2011
  1. arm: fix the static link problem for ARM due to undefined __tls_get_addr

    Nitin Garg authored Carmelo Amoroso committed
    Signed-off-by: Nitin Garg <nitingarg98@gmail.com>
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Commits on Jan 29, 2011
  1. @kraj

    nptl/mips64: Fix build when using mips64 and ABIs other than o32

    kraj authored
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Commits on Jan 20, 2011
  1. nptl: Fix __USER_LABEL_PREFIX__ concatenatio

    Will Newton authored Carmelo Amoroso committed
    The current C macro magic does not correctly concatenate the
    __USER_LABEL_PREFIX__ string on architectures where it has a
    non-empty value. We need to use __stringify to get the desired
    behaviour.
    
    Signed-off-by: Will Newton <will.newton@imgtec.com>
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
  2. nptl: fix start_thread() for _STACK_GROWS_UP

    Will Newton authored Carmelo Amoroso committed
    This patch adds a working implementation of pthread_create for architectures
    where STACK_GROWS_UP.
    
    Signed-off-by: Matt Fleming <matthew.fleming@imgtec.com>
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Commits on Jan 5, 2011
  1. nptl: get rid of the last preprocessor warning when __ASSUME_TGKILL i…

    Carmelo Amoroso authored
    …s not defined
    
    A missing change in the previous commit.
    
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Commits on Jan 4, 2011
  1. nptl: get rid of preprocessor warning when __ASSUME_TGKILL is not def…

    Carmelo Amoroso authored
    …ined
    
    A sample of the warning reported while building for ARM that has not __ASSUME_TGKILL defined.
    
    libpthread/nptl/sysdeps/unix/sysv/linux/raise.c: In function 'raise':
    libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:33:5: warning: "__ASSUME_TGKILL" is not defined
    
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Commits on Dec 30, 2010
  1. @austinf

    sparc: fix linking issue with __syscall_error.c

    austinf authored
    Finally got around to testing out latest master and
    noticed that some buildsystem work last summer broke
    shared-builds of nptl on sparc.
    
    A version of __syscall_error.c needs to be linked into
    both libpthread and librt
    
    Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Commits on Dec 23, 2010
  1. @aldot

    linuxthreads: Fix compilation breakage

    Matt Fleming authored aldot committed
    With commit "resolv.c: add support for per thread res_state"
    (aab4df0) _res symbol is now marked
    as hidden in an attempt to make the resolver per-thread.
    
    Signed-off-by: Matt Fleming <matthew.fleming@imgtec.com>
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Commits on Dec 22, 2010
  1. @kraj

    libpthread/nptl_db: Append options to LDFLAGS based on if LD is set t…

    kraj authored
    …o gcc driver or ld itself
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Something went wrong with that request. Please try again.