8719 Commits

Author SHA1 Message Date
Bernhard Reutner-Fischer
8c0b2c2886 Release 0.9.33
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
v0.9.33
2012-02-01 22:21:04 +01:00
Bernhard Reutner-Fischer
7c721d31e4 tmpnam, tempnam are obsolete in SUSV4
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-29 18:31:16 +01:00
Bernhard Reutner-Fischer
fba639dcdc handle signal-OBXSI.SUSv4.syms
A couple of sig functions are obsolete in SUSv4.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-29 18:23:10 +01:00
Bernhard Reutner-Fischer
29962e14a1 nptl_db: handle SUSv4-OB
pthread_getconcurrency / pthread_setconcurrency is OBSOLETE in SUSv4
so disable pthread debug support too

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-29 17:51:18 +01:00
Bernhard Reutner-Fischer
46aa707fc5 test: ignore undefined symbols for API
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-29 15:10:01 +01:00
Bernhard Reutner-Fischer
4891374bc3 config: ftw is SUSv4-obsolete
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-29 15:09:34 +01:00
Bernhard Reutner-Fischer
31f48281ed *: if !HAS_THREADS strong alias sigaction
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-28 21:57:49 +01:00
Bernhard Reutner-Fischer
83ce0cc4d5 buildsys: fixup sigaction handling
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-28 21:28:27 +01:00
Carmelo Amoroso
219aa9c2dd libubacktrace:arm: libgcc_eh.a not needed
Dummy symbol is __aeabi_unwind_cpp_pr is part of uclibc_shared.a

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2012-01-27 13:38:42 +01:00
Bernhard Reutner-Fischer
eeacc7777e ldso: fix typo in debug message
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-27 13:19:05 +01:00
Bernhard Reutner-Fischer
7f02033e13 buildsys: add cppcheck wrapper script (correct one)
Also incooperate vapier's suggestion on how to set REAL_CC once

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-27 13:12:40 +01:00
Carmelo Amoroso
b80b28ee6f libc_arm: avoid multiple version of __aeabi_unwind_cpp_pr dummy code
Do not pollute libraries with its own implementation of __aeabi_unwind_cpp_pr1 code.
Just add it to uclibc_nonshared.a archive and share it.
This fixes build issue with static linking of application due to multiple symbol
definition in libgcc_eh-a and libpthread.a or librt.a

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2012-01-27 10:05:09 +01:00
Bernhard Reutner-Fischer
80576869e1 buildsys: use single slash version of -print-whatever
The double slash variants are not documented (doc bug?) so better use
the single slash variants like we usually do.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-26 17:00:05 +01:00
Bernhard Reutner-Fischer
775e77bf2c buildsys: turn off forced EXTRA_WARNINGS on i386
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-26 15:26:47 +01:00
Bernhard Reutner-Fischer
549fa53225 *: silence some warnings
warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-26 15:15:23 +01:00
Bernhard Reutner-Fischer
ba48da4e3c syscall: flag ia64 syscall error path as unlikely
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-26 14:46:44 +01:00
Bernhard Reutner-Fischer
c72d608a9e arm: tweak comment
harmless copy'n paste error

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-26 14:46:44 +01:00
Richard Braun
eb72efd81e libc: fix signal handling in system()
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>
2012-01-23 21:22:06 -05:00
Carmelo Amoroso
3837739512 ldso/mips: fix symbol lookup for JUMP_SLOT and COPY relocations
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>
2012-01-23 16:21:30 -08:00
Carmelo Amoroso
99d28cc086 libdl: fix dlclose handling of symbol scope
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>
2012-01-23 16:21:18 -08:00
Khem Raj
b18b4210a8 Rules: Check for CROSS_COMPILE to be empty
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>
2012-01-23 16:10:51 -08:00
Khem Raj
a0d7a45875 libubacktrace: Add arm implementation
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>
2012-01-23 16:10:39 -08:00
Khem Raj
bee3ea0f5a mips/libdl: Apply relocations after appending the new scope
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>
2012-01-23 16:10:21 -08:00
Denys Vlasenko
c4904bd81b i386/sigaction.c: slightly more readable form of [rt_]sigreturn definitions
No code changes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2012-01-18 14:49:11 +01:00
Bernhard Reutner-Fischer
d8d695731d stubs: mark stubs as used
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>
2012-01-18 09:14:30 +01:00
Bernhard Reutner-Fischer
20e4af5469 stdlib: use shorhand wur for realloc prototype
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-18 09:09:01 +01:00
Bernhard Reutner-Fischer
9617bbc95b buildsys: add cppcheck wrapper script
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-18 08:44:39 +01:00
Bernhard Reutner-Fischer
de5964178b libcrypt: shrink crypt() again - unmodularise
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>
2012-01-18 08:41:18 +01:00
Bernhard Reutner-Fischer
7d7b96a392 nptl: .gitignore generated pt-crt{i,n}.S
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-18 08:18:13 +01:00
Bernhard Reutner-Fischer
d69bea22a1 tests: only test crypt if we have an impl
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-18 08:05:52 +01:00
Bernhard Reutner-Fischer
2b25a20e49 tests: add sha356/512 tests
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-18 08:05:52 +01:00
Bernhard Reutner-Fischer
e55d06752f tests: silence warnings in crypt
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-18 08:05:52 +01:00
Mike Frysinger
a4421e6052 buildsys: use = for --sort-section linker flag
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>
2012-01-17 01:47:23 -05:00
Mike Frysinger
bc7c171f2b tests: mark all helper scripts +x
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-17 01:47:07 -05:00
Mike Frysinger
c3e6556491 buildsys: handle more clean targets
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-16 17:24:35 -05:00
Mike Frysinger
faf51f000e buildsys: fix handling of CFLAG_-W{a,l} vars
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>
2012-01-16 17:16:19 -05:00
Mike Frysinger
fe60f8005b tests: tst-futimens1: add missing mode args to open()
Since we use O_CREAT with open(), need to make sure to pass in mode too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-16 15:55:11 -05:00
Mike Frysinger
68bfc29827 tests: test-canon: include sys/stat.h for mkdir()
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-16 15:55:10 -05:00
Mike Frysinger
7064156385 tests: fdopen: add missing mode args to open()
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>
2012-01-16 15:55:10 -05:00
Mike Frysinger
cf1840ba0a tests: opendir-tst1: add header for mknod()
Include sys/stat.h for mknod() prototype.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-16 15:55:10 -05:00
Mike Frysinger
386a22b920 tests: mmap2: ignore permission denied errors on /dev/mem
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>
2012-01-16 15:55:10 -05:00
Mike Frysinger
94bf930db1 buildsys: skip compiler flag checking for clean targets
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>
2012-01-16 15:55:10 -05:00
Khem Raj
1d8d1f6b91 mips/dlfcn.h: Disable RTLD_DEEPBIND
RTLD_DEEPBIND is not supported in uclibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2012-01-16 08:48:27 -08:00
Mike Frysinger
27fb7ccf7e buildsys: simplify include_clean greatly
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>
2012-01-15 13:35:33 -05:00
Mike Frysinger
26242d9e53 buildsys: fix detection of silent make
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>
2012-01-15 13:35:33 -05:00
Mike Frysinger
fe19f3c5e3 tests: skip redundant -Wstrict-prototypes setup
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>
2012-01-15 13:11:15 -05:00
Bernhard Reutner-Fischer
4db2caac1c libc: build abort with unwind-info for backtrace
If backtrace support is turned on, build raise() and abort() with
unwind info (fixup 4c9b7f3c21ff21c199e54bfad2fdf3445fa4573d).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-01-15 12:27:41 +01:00
Markos Chandras
2b30ab7137 linuxthreads/signals: do not restore handler for invalid signal
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>
2012-01-14 19:36:07 -05:00
Mike Frysinger
a899b909ab buildsys: cache build flags in vars
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>
2012-01-14 19:32:29 -05:00
Carmelo Amoroso
93a11d8bb2 libubacktrace: use -asynchronous-funwind-tables rather than -funwind-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>
2012-01-13 12:27:29 +01:00