Permalink
Switch branches/tags
Nothing to show
Commits on Jan 26, 2012
  1. Move moxie defconfig

    atgreen committed Jan 26, 2012
Commits on Jan 24, 2012
  1. libc: fix signal handling in system()

    richardbraun authored and vapier committed Jan 17, 2012
    When built without NPTL support (or for a sparc target), the system()
    function doesn't conform to its specification. Namely, it uses signal()
    to install/save/restore signal handlers, which may break applications
    using custom handlers installed with sigaction(). In addition, it resets
    the SIGCHLD handler to SIG_DFL instead of blocking the signal, which may
    result in "lost" signals if a custom handler was installed.
    
    Fix system() by replacing uses of signal() with appropriate calls to
    sigaction() and sigprocmask().
    
    Signed-off-by: Richard Braun <rbraun@sceen.net>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  2. ldso/mips: fix symbol lookup for JUMP_SLOT and COPY relocations

    Carmelo Amoroso authored and kraj committed Jan 19, 2012
    Fill properly the sym_ref fields when invoking _dl_find_hash to lookup
    symbols
    
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
  3. libdl: fix dlclose handling of symbol scope

    Carmelo Amoroso authored and kraj committed Jan 17, 2012
    Defer removal of the local scope of a dl-opened library after
    all the destructors (of itself and related dependencies) are actually
    get unloaded, otherwise any function registered via atexit()
    won't be resolved.
    
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
  4. Rules: Check for CROSS_COMPILE to be empty

    kraj committed Jan 21, 2012
    In some case where CROSS is defined to be empty
    we define CROSS_COMPILE ?= CROSS so at this point
    it will be defined but will be empty so check
    for the same
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
  5. libubacktrace: Add arm implementation

    kraj committed Jan 21, 2012
    Arm has a different mechanism of getting
    _Unwind_GetIP. Therefore we provide arch
    specific backtrace file.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
  6. mips/libdl: Apply relocations after appending the new scope

    kraj committed Jan 21, 2012
    Without this the relocations for the current shared object
    are not resolved since the scope is not added to map yet
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Commits on Jan 18, 2012
  1. i386/sigaction.c: slightly more readable form of [rt_]sigreturn defin…

    dvlasenk committed Jan 18, 2012
    …itions
    
    No code changes
    
    Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
  2. stubs: mark stubs as used

    aldot committed Jan 18, 2012
    Avoids warning from -Wunused-function about the alias target that is
    only used at link-time.
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  3. stdlib: use shorhand wur for realloc prototype

    aldot committed Jan 18, 2012
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  4. buildsys: add cppcheck wrapper script

    aldot committed Jan 18, 2012
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  5. libcrypt: shrink crypt() again - unmodularise

    aldot committed Jan 18, 2012
    modularisation added too much bloat for no benefit, undo.
    
    $ ../busybox/scripts/bloat-o-meter .lib.05/libcrypt-0.9.33-rc1-git.so lib/libcrypt-0.9.33-rc1-git.so
    function                                             old     new   delta
    crypt                                                130      46     -84
    .rodata                                             2704       -   -2704
    ------------------------------------------------------------------------------
    (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-2788)         Total: -2788 bytes
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  6. nptl: .gitignore generated pt-crt{i,n}.S

    aldot committed Jan 18, 2012
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  7. tests: only test crypt if we have an impl

    aldot committed Jan 17, 2012
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  8. tests: add sha356/512 tests

    aldot committed Jan 17, 2012
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  9. tests: silence warnings in crypt

    aldot committed Jan 17, 2012
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Commits on Jan 17, 2012
  1. buildsys: use = for --sort-section linker flag

    vapier committed Jan 17, 2012
    The spaces aren't handled correctly (currently) when outputting the
    CFLAGS version of the linker flag.
    
    Reported-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  2. tests: mark all helper scripts +x

    vapier committed Jan 16, 2012
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Commits on Jan 16, 2012
  1. buildsys: handle more clean targets

    vapier committed Jan 16, 2012
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  2. buildsys: fix handling of CFLAG_-W{a,l} vars

    vapier committed Jan 16, 2012
    Need a little indirection/delayed evaluation to handle variables with
    equal signs and commas in them.
    
    Reported-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  3. tests: tst-futimens1: add missing mode args to open()

    vapier committed Jan 16, 2012
    Since we use O_CREAT with open(), need to make sure to pass in mode too.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  4. tests: test-canon: include sys/stat.h for mkdir()

    vapier committed Jan 16, 2012
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  5. tests: fdopen: add missing mode args to open()

    vapier committed Jan 16, 2012
    We call open() with O_CREAT, so make sure we pass in the mode else
    we might get build errors with fortify source.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  6. tests: opendir-tst1: add header for mknod()

    vapier committed Jan 16, 2012
    Include sys/stat.h for mknod() prototype.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  7. tests: mmap2: ignore permission denied errors on /dev/mem

    vapier committed Jan 16, 2012
    Non-root users can't open /dev/mem, so it makes it hard to pass.
    Ignore that case.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  8. buildsys: skip compiler flag checking for clean targets

    vapier committed Jan 15, 2012
    As suggested by Bernhard, there is no point in evaluating the compiler's
    flag availability when cleaning, so skip things in that case.  If there
    are variables that change targets based on the flags, then things are
    already broken and need fixing independently.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  9. mips/dlfcn.h: Disable RTLD_DEEPBIND

    kraj committed Jan 16, 2012
    RTLD_DEEPBIND is not supported in uclibc
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
Commits on Jan 15, 2012
  1. buildsys: simplify include_clean greatly

    vapier committed Jan 15, 2012
    Since we want to clean out all the headers we symlinked into include/,
    just use `find` to locate all the symlinks for us.  This simplifies it
    greatly, and actually fixes bugs where we build for one arch, switch
    to another, and then do a clean but the previous arch headers are left
    behind.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  2. buildsys: fix detection of silent make

    vapier committed Jan 15, 2012
    The MAKEFLAGS variable contains all the flags without the leading dash.
    From the GNU make manual:
    	This variable is set up automatically by make to contain the flag
    	letters that make received. Thus, if you do ‘make -ks’ then MAKEFLAGS
    	gets the value ‘ks’.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  3. tests: skip redundant -Wstrict-prototypes setup

    vapier committed Jan 15, 2012
    We inherit the top-level Rules.mak which sets up this flag for us,
    so just rely on that.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  4. libc: build abort with unwind-info for backtrace

    aldot committed Jan 15, 2012
    If backtrace support is turned on, build raise() and abort() with
    unwind info (fixup 4c9b7f3).
    
    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  5. linuxthreads/signals: do not restore handler for invalid signal

    Markos Chandras authored and vapier committed Nov 23, 2011
    Invalid signals have no handlers so when trying to restore the old
    handler to a bad signal a SIGSEGV occurs. This is because the library
    tries to store the old handler to an invalid memory area where it things
    the bad signal lives.
    
    URL: https://bugs.busybox.net/show_bug.cgi?id=4640
    Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  6. buildsys: cache build flags in vars

    vapier committed Nov 27, 2011
    Running `make clean` atm takes like 20 seconds because every subdir
    re-evaluates all the toolchain flags.  Add some helpers to automate
    the process of setting up variables to cache the result of tests,
    as well as the checking of an already set flag.
    
    Now `make clean` takes like 2 seconds on my system.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Commits on Jan 13, 2012
  1. libubacktrace: use -asynchronous-funwind-tables rather than -funwind-…

    Carmelo Amoroso
    Carmelo Amoroso committed Jan 13, 2012
    …tables
    
    From gcc documentation, we can read:
    " ...
    -fasynchronous-unwind-tables
        Generate unwind table in dwarf2 format, if supported by target
        machine. The table is exact at each instruction boundary, so it can be
        used for stack unwinding from asynchronous events (such as debugger or
        garbage collector)
    ..."
    
    So it seems better rather than using -funwind-tables (glibc seems to prefer
    -fasynchronous-unwind-tables).
    
    Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
    Acked-by: Mike Frysinger <vapier@gentoo.org>