419 Commits

Author SHA1 Message Date
Carmelo Amoroso
ae14cd49a8 buildsys: s/CROSS/CROSS_COMPILE/g
Use CROSS_COMPILE instead of CROSS as other projects are doing
(i.e. kernel, busybox, buildroot).
CROSS is still supported for backward compatibility only

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-11-25 06:31:07 +01:00
Bernhard Reutner-Fischer
69cba61dd2 libubacktrace: use .so.$(ABI_VERSION)
Thanks to William Pitcock for noticing

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-11-18 08:49:25 +01:00
Bernhard Reutner-Fischer
2fa7315f34 bump version to 0.9.33-git
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-06-14 10:27:17 +02:00
Khem Raj
45046d8134 Rules.mak: Rearrange appending UCLIBC_EXTRA_CFLAGS to CFLAGS
UCLIBC_EXTRA_CFLAGS is currently added before the OPTIMIZATION flags
and OPTIMIZATION is chosen to be Os by default. But in OE we pass the optimisation
flags through UCLIBC_EXTRA_CFLAGS but they are not effective since -Os is
specified at last. So we need to change the order of these option flags

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-06-11 00:15:02 -07:00
Yann E. MORIN
3936325282 ARM: remove sub-arch/variants selection from menuconfig
Rely on the compiler to be correctly set up to generate
appropriate code for the target variant.

This exposes the Thumb option, as it is no longer auto-selected.
The "Use BX" no longer depends on supported CPU to be selected,
so it now defaults to 'n' as it shall work by default on CPUs
that do not have BX.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Cc: Carmelo AMOROSO <carmelo.amoroso@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-06-11 00:11:17 -07:00
Yann E. MORIN
bda6117489 ARM: introduce blind options to select & force THUMB mode
Add three new blind options to set use of Thumb mode:
- COMPILE_IN_THUMB_MODE
  - if set, CFLAGS will contain -mthumb
  - if unset, the compiler's default is used
- HAS_THUMB
  - CPUS with Thumb instruction set can select this
  - use of BX depends on this
- FORCE_THUMB
  - CPUs that are Thumb-only must select this
  - this selects: HAS_THUMB, COMPILE_IN_THUMB_MODE and USE_BX

Also, remove leading space in Rules.mak.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Cc: Carmelo AMOROSO <carmelo.amoroso@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-06-11 00:06:03 -07:00
Bernhard Reutner-Fischer
afeef5ca39 buildsys: Turn on strict aliasing for everyone
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-05-11 09:38:56 +02:00
Bernhard Reutner-Fischer
7da4d1e755 buildsys: do not use $(and)
make-3.80 does not have $(and) and $(or), so workaround for now.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-04-13 10:26:38 +02:00
Bernhard Reutner-Fischer
0c18923cbc bump version to 0.9.32-rc3-git
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-03-16 20:20:32 +01:00
Bernhard Reutner-Fischer
e172884f39 release 0.9.32-rc3
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-03-16 20:11:13 +01:00
Peter S. Mazinger
80f5587940 Revert "try to fix duplicated slashes in the generated lib*.so files"
This reverts commit 624be66cb9b350d5c6538fca8592cdb3a4c23d37.

    Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
2011-03-06 15:40:09 +01:00
Aurelien Jacquiot
46d6a24872 The C6X port
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>
2011-03-05 18:10:15 +01:00
Peter S. Mazinger
624be66cb9 try to fix duplicated slashes in the generated lib*.so files
Try to fix duplicated slashes in the generated lib*.so files
and make sure that on installation the *bin directories are
really created (avoid the misbehaviour of creating usrbin dir).

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
2011-03-03 18:22:48 +01:00
Carmelo Amoroso
b5dd2e706c bump version to 0.9.32-rc2-git
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-01-21 08:22:32 +01:00
Carmelo Amoroso
541f53cf24 release 0.9.32-rc2
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-01-20 15:49:47 +01:00
Bernhard Reutner-Fischer
d3a751c8c0 bump version to 0.9.32-rc1-git
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-12-17 20:05:56 +01:00
Bernhard Reutner-Fischer
f7222d84d3 release 0.9.32-rc1
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-12-17 20:05:17 +01:00
Bernhard Reutner-Fischer
871ea0e8c0 nptl: use correct unwind header for unwind-forcedunwind
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-11-10 20:10:46 +01:00
Steven J. Magnani
a9605f9bee microblaze: build infrastructure
Fix Microblaze config and makefiles.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-11-10 19:44:37 +01:00
Carmelo Amoroso
58b6084058 nptl: Remove nptl/sysdeps/generic directory from include list
All archs have now moved their generic sysdep.h header from
sysdeps/generic to sysdeps/common directory, so it is possible
to remove the sysdeps/generic directory from the include list.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-09-16 14:52:11 +02:00
Salvatore Cro
37eb913ed8 libubacktrace: Provide uClibc with backtrace functions
A new shared object, libubacktrace.so.0 is added to uClibc
to provide backtrace functions to support application self-debugging.
This set of functions requires to dynamically load libgcc_s.so so they
need to call dlopen/dlsym that are provided by libdl. For this reason
they cannot be included into libc.so.0 but are provided by a new library.

User application that wants to use backtrace needs to be compiled with
-fexceptions option and -rdynamic to get full symbols printed and must be
linked against libubacktrace.so

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-09-15 12:31:22 +02:00
Bernhard Reutner-Fischer
c78e53b6a4 buildsys: Do not error on GNUHASH for clean targets
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-08-19 19:08:21 +02:00
Bernhard Reutner-Fischer
0d289184bf buildsys: check_gcc warning flags
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-08-05 15:50:23 +02:00
Khem Raj
37aec50650 Rules.mak: ARM926T is really an armv5t and arm9e core.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-07-22 19:53:19 -07:00
Bernhard Reutner-Fischer
ecc762828c nptl: x86_64: fix compilation of unwinder
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-07-14 19:44:03 +02:00
Bernhard Reutner-Fischer
9381d622e2 nptl: fix buildsys
Now automatically picks the correct (arch and subarch specific) impls in
favour of generic impls.
make O=/tmp/objs PREFIX=/my/sysroot -j
works now as expected (both out-of-tree as well as parallel-safe).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-07-06 18:33:22 +02:00
Bernhard Reutner-Fischer
7453d422c9 nptl: fix order of includes for out-of-tree builds
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-06-17 19:46:29 +02:00
Tony Wu
72210a8474 Fix typo (OPTIMIZATIONS -> OPTIMIZATION)
Signed-off-by: Tony Wu <tung7970@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2010-04-28 08:08:44 -07:00
Austin Foxley
cce1105f01 change ABI_VERSION back to just include the major number
By default, GCC hard codes the name for ld.so to /lib/ld-uClibc.so.0
so our default should match that. If distribution makers want to change
it, they need to change the default gcc configuration as well.

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2010-04-23 07:31:55 -07:00
Natanael Copa
71239593ef nptl: proper soname handling
Since sublevel releases are not ABI compatible we need to adjust
the soname to include the sublevel version.

This makes it possible to install ABI incompatible versions of the
library side by side so clean upgrades are possible.

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2010-04-22 08:39:36 -07:00
Austin Foxley
aae3eb9256 Merge commit 'origin/master' into nptl
Conflicts:
	Makefile.in
	extra/Configs/Config.in
	libc/sysdeps/linux/common/bits/kernel-features.h
	libc/sysdeps/linux/common/poll.c
	libc/sysdeps/linux/common/sysdep.h
	libc/sysdeps/linux/sh/sysdep.h

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2010-04-02 09:17:30 -07:00
Bernhard Reutner-Fischer
2864786ad8 bump version to 0.9.32-git
NPTL merge candidate, finally!

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-04-02 18:01:41 +02:00
Bernhard Reutner-Fischer
ef2b7af8f2 Release 0.9.31
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-04-02 17:34:27 +02:00
Bernhard Reutner-Fischer
33a0057d56 bump version
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-03-12 21:50:18 +01:00
Bernhard Reutner-Fischer
2b06a99778 bump version to 0.9.31-rc1
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-03-12 21:49:21 +01:00
Bernhard Reutner-Fischer
4be3ace8d6 add MULTILIB_DIR: Path component for libdirs
forgot to checkin this file

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-03-12 18:14:16 +01:00
Austin Foxley
7aab619f4b improve parallel make behaviour
* add library dependencies for libdl,libpthread
 * fix typo in librt/Makefile.in
 * also remove extra trailing slashes on i386, sparc pregen headers

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2010-02-23 01:11:53 -08:00
Carmelo Amoroso
15ba174656 libc: Add a common sysdep header
Add a common header file to provide macros useful in asm code:
C_LABEL to construct the asm name for a C symbol
cfi_xxx to generate eh_frame unwind information.

Ported from NPTL branch.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-02-10 15:14:14 +01:00
Carmelo Amoroso
828ba271af nptl: sysdep headers re-factoring
This patch will re-factor and simplify sysdep headers
handling for nptl branch.
The reason is to use some useful macros in asm code (i.e. ENTRY()) that are available
only into nptl branch because are defined in sysdep.h header under the nptl folder
even if they are not related to NPTL at all (this was likely due to a bad choice done
at the early stage of NPTL porting).
This is a required steps for integrating into master branch some asm code available in
nptl branch for sh4.

The main changes are described below:

nptl/sysdeps/generic/sysdep.h (moved) ---> libc/sysdeps/linux/common/sysdep.h
nptl/sysdeps/arm/sysdep.h     (moved) ---> libc/sysdeps/linux/arm/sysdep.h

nptl/sysdeps/sh/sysdep.h ---------------------|
nptl/sysdeps/unix/sh/sysdep.h ----------------|
nptl/sysdeps/unix/sysv/linux/sh/sysdep.h -----|
nptl/sysdeps/unix/sysv/linux/sh/sh4/sysdep.h -|
                                              |(merged) ---> libc/sysdeps/linux/sh

nptl/sysdeps/unix/sysdep.h (deleted)

Similarly the mips and arm sysdep.h should be merged and updated as for sh arch.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-02-09 07:54:22 +01:00
Carmelo Amoroso
f0a5fcde1d build: Do not define -DPIC longer through build system
Now all code relies upon __PIC__ flag defined by compiler, so
it does not need to explicitly define the PIC macro through build system

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2009-12-16 09:13:52 +01:00
Bernhard Reutner-Fischer
9ec8f5fa5f warn about old-style crap in extra-annoyance-mode
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-12-09 21:12:37 +01:00
Austin Foxley
f757db2d31 Merge remote branch 'origin/master' into nptl_merge
Conflicts:
	Rules.mak
	libc/misc/sysvipc/msgq.c
	test/Rules.mak

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-11-22 11:51:37 -08:00
Peter S. Mazinger
64f11aa906 remove ARCH_CFLAGS, ARCH_LDFLAGS and CROSS
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-11-19 22:35:40 +01:00
Mike Frysinger
cf8e59638e build with -fmerge-all-constants
Glibc is already using this flag and it gives us a slight code shrink in
a few functions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-11-09 15:34:43 -08:00
Mike Frysinger
e219bc7c1b test/plt: add a script to find PLT usage
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-11-09 15:34:35 -08:00
Austin Foxley
45bc2bc53d Rules.mak fix typo (qstrup -> qstrip)
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-11-09 14:01:08 -08:00
Austin Foxley
1de3bed755 Rules.mak fix typo (qstrup -> qstrip)
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-11-09 13:17:04 -08:00
Mike Frysinger
5a4c1b737f build with -fmerge-all-constants
Glibc is already using this flag and it gives us a slight code shrink in
a few functions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-22 01:17:46 -04:00
Mike Frysinger
e30f2a09f1 test/plt: add a script to find PLT usage
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-22 01:12:47 -04:00
Austin Foxley
c94314fa61 build system changes needed for nptl
* add include dir for nptl
 * pregen nptl headers
 * add include dir to pick up subarchs
 * a few tweaks for test/* to match state of the code

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-10-17 13:28:17 -07:00