# HG changeset patch # User Mark Miller # Date 1239019886 18000 # Node ID b4a9c0084f2fad3ebe41295607fbe86876d0576e # Parent 9be7fb3af9a13cca8da6f3dfebef22eae0d04d07 Converted ARMV5L from OABI to EABI with VFP support. Added patches for uClibc and uClibc++ to deal with Unwind Exception handling, made uClibc++ pull in libgcc_eh for this as well, and disabled SJLJ exceptions for ARMV5L EABI, which is apparently required, so --enable-sjlj-exceptions was added to the details file for all the other arches. Also correct the GENTOO_CHOST variable for armeb. diff -r 9be7fb3af9a1 -r b4a9c0084f2f cross-compiler.sh --- a/cross-compiler.sh Mon Apr 06 06:14:49 2009 -0500 +++ b/cross-compiler.sh Mon Apr 06 07:11:26 2009 -0500 @@ -41,7 +41,7 @@ --prefix="${CROSS}" --host=${CROSS_HOST} --target=${CROSS_TARGET} \ --enable-languages=c,c++ --enable-long-long --enable-c99 \ --disable-shared --disable-threads --disable-nls --disable-multilib \ - --enable-__cxa_atexit --disable-libstdcxx-pch --enable-sjlj-exceptions \ + --enable-__cxa_atexit --disable-libstdcxx-pch \ --program-prefix="${ARCH}-" $GCC_FLAGS && # Try to convince gcc build process not to rebuild itself with itself. diff -r 9be7fb3af9a1 -r b4a9c0084f2f mini-native.sh --- a/mini-native.sh Mon Apr 06 06:14:49 2009 -0500 +++ b/mini-native.sh Mon Apr 06 07:11:26 2009 -0500 @@ -166,7 +166,7 @@ --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --target="${CROSS_TARGET}" \ --enable-long-long --enable-c99 --enable-shared --enable-threads=posix \ --enable-__cxa_atexit --disable-nls --enable-languages=c,c++ \ - --disable-libstdcxx-pch --enable-sjlj-exceptions --program-prefix="" \ + --disable-libstdcxx-pch --program-prefix="" \ $GCC_FLAGS && mkdir gcc && ln -s `which "${ARCH}-gcc"` gcc/xgcc && @@ -215,7 +215,7 @@ setupfor uClibc++ CROSS= make defconfig && -sed -r -i 's/(IMPORT_LIBGCC_EH|UCLIBCXX_HAS_(TLS|LONG_DOUBLE))=y/# \1 is not set/' .config && +sed -r -i 's/(UCLIBCXX_HAS_(TLS|LONG_DOUBLE))=y/# \1 is not set/' .config && sed -r -i '/UCLIBCXX_RUNTIME_PREFIX=/s/".*"/""/' .config && CROSS= make oldconfig && CROSS="$ARCH"- make && diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/patches/uClibc++-unwind-cxx.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/uClibc++-unwind-cxx.patch Mon Apr 06 07:11:26 2009 -0500 @@ -0,0 +1,429 @@ +--- a/include/unwind-cxx.h 2007-06-03 17:51:12.000000000 -0500 ++++ b/include/unwind-cxx.h 2005-08-16 21:28:44.000000000 -0500 +@@ -1,175 +1,251 @@ +-// -*- C++ -*- Exception handling and frame unwind runtime interface routines. +-// Copyright (C) 2001 Free Software Foundation, Inc. +-// +-// This file is part of GCC. +-// +-// GCC is free software; you can redistribute it and/or modify +-// it under the terms of the GNU General Public License as published by +-// the Free Software Foundation; either version 2, or (at your option) +-// any later version. +-// +-// GCC is distributed in the hope that it will be useful, +-// but WITHOUT ANY WARRANTY; without even the implied warranty of +-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-// GNU General Public License for more details. +-// +-// You should have received a copy of the GNU General Public License +-// along with GCC; see the file COPYING. If not, write to +-// the Free Software Foundation, 59 Temple Place - Suite 330, +-// Boston, MA 02111-1307, USA. +- +-// As a special exception, you may use this file as part of a free software +-// library without restriction. Specifically, if other files instantiate +-// templates or use macros or inline functions from this file, or you compile +-// this file and link it with other files to produce an executable, this +-// file does not by itself cause the resulting executable to be covered by +-// the GNU General Public License. This exception does not however +-// invalidate any other reasons why the executable file might be covered by +-// the GNU General Public License. +- +-// This is derived from the C++ ABI for IA-64. Where we diverge +-// for cross-architecture compatibility are noted with "@@@". +- +-#ifndef _UNWIND_CXX_H +-#define _UNWIND_CXX_H 1 +- +-// Level 2: C++ ABI +- +-#include +-#include +-#include +-#include "unwind.h" +- +-#pragma GCC visibility push(default) +- +-namespace __cxxabiv1 +-{ +- +-// A C++ exception object consists of a header, which is a wrapper around +-// an unwind object header with additional C++ specific information, +-// followed by the exception object itself. +- +-struct __cxa_exception +-{ +- // Manage the exception object itself. +- std::type_info *exceptionType; +- void (*exceptionDestructor)(void *); +- +- // The C++ standard has entertaining rules wrt calling set_terminate +- // and set_unexpected in the middle of the exception cleanup process. +- std::unexpected_handler unexpectedHandler; +- std::terminate_handler terminateHandler; +- +- // The caught exception stack threads through here. +- __cxa_exception *nextException; +- +- // How many nested handlers have caught this exception. A negated +- // value is a signal that this object has been rethrown. +- int handlerCount; +- +- // Cache parsed handler data from the personality routine Phase 1 +- // for Phase 2 and __cxa_call_unexpected. +- int handlerSwitchValue; +- const unsigned char *actionRecord; +- const unsigned char *languageSpecificData; +- _Unwind_Ptr catchTemp; +- void *adjustedPtr; +- +- // The generic exception header. Must be last. +- _Unwind_Exception unwindHeader; +-}; +- +-// Each thread in a C++ program has access to a __cxa_eh_globals object. +-struct __cxa_eh_globals +-{ +- __cxa_exception *caughtExceptions; +- unsigned int uncaughtExceptions; +-}; +- +- +-// The __cxa_eh_globals for the current thread can be obtained by using +-// either of the following functions. The "fast" version assumes at least +-// one prior call of __cxa_get_globals has been made from the current +-// thread, so no initialization is necessary. +-extern "C" __cxa_eh_globals *__cxa_get_globals () throw(); +-extern "C" __cxa_eh_globals *__cxa_get_globals_fast () throw(); +- +-// Allocate memory for the exception plus the thown object. +-extern "C" void *__cxa_allocate_exception(std::size_t thrown_size) throw(); +- +-// Free the space allocated for the exception. +-extern "C" void __cxa_free_exception(void *thrown_exception) throw(); +- +-// Throw the exception. +-extern "C" void __cxa_throw (void *thrown_exception, +- std::type_info *tinfo, +- void (*dest) (void *)) +- __attribute__((noreturn)); +- +-// Used to implement exception handlers. +-extern "C" void *__cxa_begin_catch (void *) throw(); +-extern "C" void __cxa_end_catch (); +-extern "C" void __cxa_rethrow () __attribute__((noreturn)); +- +-// These facilitate code generation for recurring situations. +-extern "C" void __cxa_bad_cast (); +-extern "C" void __cxa_bad_typeid (); +- +-// @@@ These are not directly specified by the IA-64 C++ ABI. +- +-// Handles re-checking the exception specification if unexpectedHandler +-// throws, and if bad_exception needs to be thrown. Called from the +-// compiler. +-extern "C" void __cxa_call_unexpected (void *) __attribute__((noreturn)); +- +-// Invokes given handler, dying appropriately if the user handler was +-// so inconsiderate as to return. +-extern void __terminate(std::terminate_handler) __attribute__((noreturn)); +-extern void __unexpected(std::unexpected_handler) __attribute__((noreturn)); +- +-// The current installed user handlers. +-extern std::terminate_handler __terminate_handler; +-extern std::unexpected_handler __unexpected_handler; +- +-// These are explicitly GNU C++ specific. +- +-// This is the exception class we report -- "GNUCC++\0". +-const _Unwind_Exception_Class __gxx_exception_class +-= ((((((((_Unwind_Exception_Class) 'G' +- << 8 | (_Unwind_Exception_Class) 'N') +- << 8 | (_Unwind_Exception_Class) 'U') +- << 8 | (_Unwind_Exception_Class) 'C') +- << 8 | (_Unwind_Exception_Class) 'C') +- << 8 | (_Unwind_Exception_Class) '+') +- << 8 | (_Unwind_Exception_Class) '+') +- << 8 | (_Unwind_Exception_Class) '\0'); +- +-// GNU C++ personality routine, Version 0. +-extern "C" _Unwind_Reason_Code __gxx_personality_v0 +- (int, _Unwind_Action, _Unwind_Exception_Class, +- struct _Unwind_Exception *, struct _Unwind_Context *); +- +-// GNU C++ sjlj personality routine, Version 0. +-extern "C" _Unwind_Reason_Code __gxx_personality_sj0 +- (int, _Unwind_Action, _Unwind_Exception_Class, +- struct _Unwind_Exception *, struct _Unwind_Context *); +- +-// Acquire the C++ exception header from the C++ object. +-static inline __cxa_exception * +-__get_exception_header_from_obj (void *ptr) +-{ +- return reinterpret_cast<__cxa_exception *>(ptr) - 1; +-} +- +-// Acquire the C++ exception header from the generic exception header. +-static inline __cxa_exception * +-__get_exception_header_from_ue (_Unwind_Exception *exc) +-{ +- return reinterpret_cast<__cxa_exception *>(exc + 1) - 1; +-} +- +-} /* namespace __cxxabiv1 */ +- +-#pragma GCC visibility pop +- +-#endif // _UNWIND_CXX_H ++// -*- C++ -*- Exception handling and frame unwind runtime interface routines. ++// Copyright (C) 2001 Free Software Foundation, Inc. ++// ++// This file is part of GCC. ++// ++// GCC is free software; you can redistribute it and/or modify ++// it under the terms of the GNU General Public License as published by ++// the Free Software Foundation; either version 2, or (at your option) ++// any later version. ++// ++// GCC is distributed in the hope that it will be useful, ++// but WITHOUT ANY WARRANTY; without even the implied warranty of ++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++// GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with GCC; see the file COPYING. If not, write to ++// the Free Software Foundation, 51 Franklin Street, Fifth Floor, ++// Boston, MA 02110-1301, USA. ++ ++// As a special exception, you may use this file as part of a free software ++// library without restriction. Specifically, if other files instantiate ++// templates or use macros or inline functions from this file, or you compile ++// this file and link it with other files to produce an executable, this ++// file does not by itself cause the resulting executable to be covered by ++// the GNU General Public License. This exception does not however ++// invalidate any other reasons why the executable file might be covered by ++// the GNU General Public License. ++ ++// This is derived from the C++ ABI for IA-64. Where we diverge ++// for cross-architecture compatibility are noted with "@@@". ++ ++#ifndef _UNWIND_CXX_H ++#define _UNWIND_CXX_H 1 ++ ++// Level 2: C++ ABI ++ ++#include ++#include ++#include ++#include "unwind.h" ++ ++#pragma GCC visibility push(default) ++ ++namespace __cxxabiv1 ++{ ++ ++// A C++ exception object consists of a header, which is a wrapper around ++// an unwind object header with additional C++ specific information, ++// followed by the exception object itself. ++ ++struct __cxa_exception ++{ ++ // Manage the exception object itself. ++ std::type_info *exceptionType; ++ void (*exceptionDestructor)(void *); ++ ++ // The C++ standard has entertaining rules wrt calling set_terminate ++ // and set_unexpected in the middle of the exception cleanup process. ++ std::unexpected_handler unexpectedHandler; ++ std::terminate_handler terminateHandler; ++ ++ // The caught exception stack threads through here. ++ __cxa_exception *nextException; ++ ++ // How many nested handlers have caught this exception. A negated ++ // value is a signal that this object has been rethrown. ++ int handlerCount; ++ ++#ifdef __ARM_EABI_UNWINDER__ ++ // Stack of exceptions in cleanups. ++ __cxa_exception* nextPropagatingException; ++ ++ // The nuber of active cleanup handlers for this exception. ++ int propagationCount; ++#else ++ // Cache parsed handler data from the personality routine Phase 1 ++ // for Phase 2 and __cxa_call_unexpected. ++ int handlerSwitchValue; ++ const unsigned char *actionRecord; ++ const unsigned char *languageSpecificData; ++ _Unwind_Ptr catchTemp; ++ void *adjustedPtr; ++#endif ++ ++ // The generic exception header. Must be last. ++ _Unwind_Exception unwindHeader; ++}; ++ ++// Each thread in a C++ program has access to a __cxa_eh_globals object. ++struct __cxa_eh_globals ++{ ++ __cxa_exception *caughtExceptions; ++ unsigned int uncaughtExceptions; ++#ifdef __ARM_EABI_UNWINDER__ ++ __cxa_exception* propagatingExceptions; ++#endif ++}; ++ ++ ++// The __cxa_eh_globals for the current thread can be obtained by using ++// either of the following functions. The "fast" version assumes at least ++// one prior call of __cxa_get_globals has been made from the current ++// thread, so no initialization is necessary. ++extern "C" __cxa_eh_globals *__cxa_get_globals () throw(); ++extern "C" __cxa_eh_globals *__cxa_get_globals_fast () throw(); ++ ++// Allocate memory for the exception plus the thown object. ++extern "C" void *__cxa_allocate_exception(std::size_t thrown_size) throw(); ++ ++// Free the space allocated for the exception. ++extern "C" void __cxa_free_exception(void *thrown_exception) throw(); ++ ++// Throw the exception. ++extern "C" void __cxa_throw (void *thrown_exception, ++ std::type_info *tinfo, ++ void (*dest) (void *)) ++ __attribute__((noreturn)); ++ ++// Used to implement exception handlers. ++extern "C" void *__cxa_get_exception_ptr (void *) throw(); ++extern "C" void *__cxa_begin_catch (void *) throw(); ++extern "C" void __cxa_end_catch (); ++extern "C" void __cxa_rethrow () __attribute__((noreturn)); ++ ++// These facilitate code generation for recurring situations. ++extern "C" void __cxa_bad_cast (); ++extern "C" void __cxa_bad_typeid (); ++ ++// @@@ These are not directly specified by the IA-64 C++ ABI. ++ ++// Handles re-checking the exception specification if unexpectedHandler ++// throws, and if bad_exception needs to be thrown. Called from the ++// compiler. ++extern "C" void __cxa_call_unexpected (void *) __attribute__((noreturn)); ++extern "C" void __cxa_call_terminate (void*) __attribute__((noreturn)); ++ ++#ifdef __ARM_EABI_UNWINDER__ ++// Arm EABI specified routines. ++typedef enum { ++ ctm_failed = 0, ++ ctm_succeeded = 1, ++ ctm_succeeded_with_ptr_to_base = 2 ++} __cxa_type_match_result; ++extern "C" bool __cxa_type_match(_Unwind_Exception*, const std::type_info*, ++ bool, void**); ++extern "C" void __cxa_begin_cleanup (_Unwind_Exception*); ++extern "C" void __cxa_end_cleanup (void); ++#endif ++ ++// Invokes given handler, dying appropriately if the user handler was ++// so inconsiderate as to return. ++extern void __terminate(std::terminate_handler) __attribute__((noreturn)); ++extern void __unexpected(std::unexpected_handler) __attribute__((noreturn)); ++ ++// The current installed user handlers. ++extern std::terminate_handler __terminate_handler; ++extern std::unexpected_handler __unexpected_handler; ++ ++// These are explicitly GNU C++ specific. ++ ++// Acquire the C++ exception header from the C++ object. ++static inline __cxa_exception * ++__get_exception_header_from_obj (void *ptr) ++{ ++ return reinterpret_cast<__cxa_exception *>(ptr) - 1; ++} ++ ++// Acquire the C++ exception header from the generic exception header. ++static inline __cxa_exception * ++__get_exception_header_from_ue (_Unwind_Exception *exc) ++{ ++ return reinterpret_cast<__cxa_exception *>(exc + 1) - 1; ++} ++ ++#ifdef __ARM_EABI_UNWINDER__ ++static inline bool ++__is_gxx_exception_class(_Unwind_Exception_Class c) ++{ ++ // TODO: Take advantage of the fact that c will always be word aligned. ++ return c[0] == 'G' ++ && c[1] == 'N' ++ && c[2] == 'U' ++ && c[3] == 'C' ++ && c[4] == 'C' ++ && c[5] == '+' ++ && c[6] == '+' ++ && c[7] == '\0'; ++} ++ ++static inline void ++__GXX_INIT_EXCEPTION_CLASS(_Unwind_Exception_Class c) ++{ ++ c[0] = 'G'; ++ c[1] = 'N'; ++ c[2] = 'U'; ++ c[3] = 'C'; ++ c[4] = 'C'; ++ c[5] = '+'; ++ c[6] = '+'; ++ c[7] = '\0'; ++} ++ ++static inline void* ++__gxx_caught_object(_Unwind_Exception* eo) ++{ ++ return (void*)eo->barrier_cache.bitpattern[0]; ++} ++#else // !__ARM_EABI_UNWINDER__ ++// This is the exception class we report -- "GNUCC++\0". ++const _Unwind_Exception_Class __gxx_exception_class ++= ((((((((_Unwind_Exception_Class) 'G' ++ << 8 | (_Unwind_Exception_Class) 'N') ++ << 8 | (_Unwind_Exception_Class) 'U') ++ << 8 | (_Unwind_Exception_Class) 'C') ++ << 8 | (_Unwind_Exception_Class) 'C') ++ << 8 | (_Unwind_Exception_Class) '+') ++ << 8 | (_Unwind_Exception_Class) '+') ++ << 8 | (_Unwind_Exception_Class) '\0'); ++ ++static inline bool ++__is_gxx_exception_class(_Unwind_Exception_Class c) ++{ ++ return c == __gxx_exception_class; ++} ++ ++#define __GXX_INIT_EXCEPTION_CLASS(c) c = __gxx_exception_class ++ ++// GNU C++ personality routine, Version 0. ++extern "C" _Unwind_Reason_Code __gxx_personality_v0 ++ (int, _Unwind_Action, _Unwind_Exception_Class, ++ struct _Unwind_Exception *, struct _Unwind_Context *); ++ ++// GNU C++ sjlj personality routine, Version 0. ++extern "C" _Unwind_Reason_Code __gxx_personality_sj0 ++ (int, _Unwind_Action, _Unwind_Exception_Class, ++ struct _Unwind_Exception *, struct _Unwind_Context *); ++ ++static inline void* ++__gxx_caught_object(_Unwind_Exception* eo) ++{ ++ __cxa_exception* header = __get_exception_header_from_ue (eo); ++ return header->adjustedPtr; ++} ++#endif // !__ARM_EABI_UNWINDER__ ++ ++} /* namespace __cxxabiv1 */ ++ ++#pragma GCC visibility pop ++ ++#endif // _UNWIND_CXX_H diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/patches/uClibc-fix-arm-unwind-001.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/uClibc-fix-arm-unwind-001.patch Mon Apr 06 07:11:26 2009 -0500 @@ -0,0 +1,11 @@ +--- a/libc/sysdeps/linux/arm/Makefile.arch 2007-03-06 02:06:26.000000000 -0600 ++++ b/libc/sysdeps/linux/arm/Makefile.arch 2009-04-06 02:59:26.000000000 -0500 +@@ -15,7 +15,7 @@ + ifeq ($(CONFIG_ARM_EABI),y) + CSRC += aeabi_assert.c aeabi_atexit.c aeabi_errno_addr.c \ + aeabi_localeconv.c aeabi_memclr.c aeabi_memcpy.c \ +- aeabi_memmove.c aeabi_memset.c find_exidx.c ++ aeabi_memmove.c aeabi_memset.c find_exidx.c aeabi_unwind_cpp_pr1.c + SSRC += syscall-eabi.S + ifeq ($(UCLIBC_HAS_WCHAR),y) + CSRC += aeabi_mb_cur_max.c diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/patches/uClibc-fix-arm-unwind-002.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/uClibc-fix-arm-unwind-002.patch Mon Apr 06 07:11:26 2009 -0500 @@ -0,0 +1,22 @@ +--- a/libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c 2006-01-29 15:02:08.000000000 -0600 ++++ b/libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c 2009-04-06 03:13:32.000000000 -0500 +@@ -24,19 +24,16 @@ + + #include + +-attribute_hidden + void + __aeabi_unwind_cpp_pr0 (void) + { + } + +-attribute_hidden + void + __aeabi_unwind_cpp_pr1 (void) + { + } + +-attribute_hidden + void + __aeabi_unwind_cpp_pr2 (void) + { diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/armv4eb/details --- a/sources/targets/armv4eb/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/armv4eb/details Mon Apr 06 07:11:26 2009 -0500 @@ -1,6 +1,6 @@ KARCH=arm KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS="--with-float=soft" +GCC_FLAGS="--with-float=soft --enable-sjlj-exceptions" BINUTILS_FLAGS= QEMU_TEST=$KARCH @@ -14,7 +14,7 @@ } # Gentoo from Scratch -GFS_CHOST="armv4l-gentoo-linux-uclibc" +GFS_CHOST="armeb-softfloat-linux-uclibc" GFS_ARCH="arm" diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/armv4l/details --- a/sources/targets/armv4l/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/armv4l/details Mon Apr 06 07:11:26 2009 -0500 @@ -1,21 +1,6 @@ -# ARM v4, little endian, soft float. -# -# This is an extremely generic arm image that should run on any arm hardware -# still in use today. It's the i386 of arm. - -# Note: ARMv5 can run ARMv4, ARMv6 can run ARMv5, and so on. Each new -# architecture is a superset of the old ones, and the main reason to compile -# for newer platforms is speed. (ARMv5 code runs about 25% faster than -# ARMv4 code on hardware that can handle it.) The oldest architecture this -# goes back to is ARMv3 (which introduced 32-bit addressing), but that -# hardware is obsolete (not just no longer being sold, but mostly cycled out -# of the installed base). - -# For details, see http://www.arm.com/products/CPUs/architecture.html - KARCH=arm KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS="--with-float=soft" +GCC_FLAGS="--with-float=soft --enable-sjlj-exceptions" BINUTILS_FLAGS= QEMU_TEST=$KARCH diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/armv5l/details --- a/sources/targets/armv5l/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/armv5l/details Mon Apr 06 07:11:26 2009 -0500 @@ -4,15 +4,17 @@ KARCH=arm KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS= +GCC_FLAGS="--with-mabi=aapcs-linux --with-mfloat-abi=soft --with-mfp=vfp --with-meabi=4 --disable-sjlj-exceptions" BINUTILS_FLAGS= QEMU_TEST=$KARCH +CROSS_TARGET=armv5l-unknown-linux-gnueabi + ROOT=sda CONSOLE=ttyAMA0 # Gentoo from Scratch -GFS_CHOST="armv5l-gentoo-linux-uclibc" +GFS_CHOST="armv5l-softfloat-linux-uclibcgnueabi" GFS_ARCH="arm" emulator_command() diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/armv5l/miniconfig-linux --- a/sources/targets/armv5l/miniconfig-linux Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/armv5l/miniconfig-linux Mon Apr 06 07:11:26 2009 -0500 @@ -1,18 +1,26 @@ CONFIG_EXPERIMENTAL=y +CONFIG_LOCALVERSION_AUTO=y CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y +CONFIG_SYSFS_DEPRECATED_V2=y CONFIG_BLK_DEV_INITRD=y CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_COMPAT_BRK=y +CONFIG_IOSCHED_AS=y +CONFIG_IOSCHED_DEADLINE=y +CONFIG_IOSCHED_CFQ=y CONFIG_ARCH_VERSATILE_PB=y CONFIG_MACH_VERSATILE_AB=y -CONFIG_CPU_ARM926T=y CONFIG_ARM_THUMB=y CONFIG_PCI=y +CONFIG_PCI_LEGACY=y +CONFIG_AEABI=y +CONFIG_UNEVICTABLE_LRU=y CONFIG_CMDLINE="mem=128M console=ttyAMA0" -CONFIG_FPE_NWFPE=y +CONFIG_VFP=y CONFIG_BINFMT_ELF=y CONFIG_BINFMT_MISC=y CONFIG_NET=y @@ -20,10 +28,10 @@ CONFIG_PACKET_MMAP=y CONFIG_UNIX=y CONFIG_INET=y -CONFIG_FW_LOADER=y +CONFIG_BLK_DEV=y CONFIG_BLK_DEV_LOOP=y CONFIG_SCSI=y -CONFIG_BLK_DEV=y +CONFIG_SCSI_PROC_FS=y CONFIG_BLK_DEV_SD=y CONFIG_BLK_DEV_SR=y CONFIG_SCSI_LOWLEVEL=y @@ -38,16 +46,19 @@ CONFIG_SERIAL_NONSTANDARD=y CONFIG_SERIAL_AMBA_PL011=y CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_LEGACY_PTYS=y CONFIG_HW_RANDOM=y +CONFIG_HWMON=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_INTF_SYSFS=y +CONFIG_RTC_INTF_PROC=y CONFIG_RTC_INTF_DEV=y CONFIG_RTC_DRV_PL031=y CONFIG_EXT2_FS=y +CONFIG_EXT3_FS=y CONFIG_TMPFS=y -CONFIG_MAGIC_SYSRQ=y -CONFIG_EXT3_FS=y CONFIG_FILE_LOCKING=y CONFIG_MISC_FILESYSTEMS=y CONFIG_SQUASHFS=y +CONFIG_MAGIC_SYSRQ=y diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/armv5l/miniconfig-uClibc --- a/sources/targets/armv5l/miniconfig-uClibc Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/armv5l/miniconfig-uClibc Mon Apr 06 07:11:26 2009 -0500 @@ -1,12 +1,14 @@ TARGET_arm=y +CONFIG_ARM_EABI=y ARCH_WANTS_LITTLE_ENDIAN=y ARCH_HAS_MMU=y ARCH_USE_MMU=y UCLIBC_HAS_FLOATS=y -UCLIBC_HAS_FPU=y DO_C99_MATH=y UCLIBC_HAS_FENV=y +DOPIC=y HAVE_SHARED=y +LDSO_LDD_SUPPORT=y LDSO_CACHE_SUPPORT=y LDSO_BASE_FILENAME="ld-uClibc.so" UCLIBC_STATIC_LDCONFIG=y @@ -38,6 +40,7 @@ UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL=y UCLIBC_NTP_LEGACY=y UCLIBC_SV4_DEPRECATED=y +UCLIBC_HAS_ADVANCED_REALTIME=y UCLIBC_HAS_EPOLL=y UCLIBC_HAS_XATTR=y UCLIBC_HAS_PROFILING=y @@ -69,3 +72,4 @@ UCLIBC_HAS_GNU_GLOB=y UCLIBC_BUILD_RELRO=y UCLIBC_BUILD_NOEXECSTACK=y +DOSTRIP=y diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/i586/details --- a/sources/targets/i586/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/i586/details Mon Apr 06 07:11:26 2009 -0500 @@ -6,7 +6,7 @@ KARCH=i386 KERNEL_PATH=arch/${KARCH}/boot/bzImage BINUTILS_FLAGS= -GCC_FLAGS= +GCC_FLAGS="--enable-sjlj-exceptions" QEMU_TEST=$KARCH ROOT=hda diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/i686/details --- a/sources/targets/i686/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/i686/details Mon Apr 06 07:11:26 2009 -0500 @@ -3,7 +3,7 @@ KARCH=i386 KERNEL_PATH=arch/${KARCH}/boot/bzImage BINUTILS_FLAGS= -GCC_FLAGS= +GCC_FLAGS="--enable-sjlj-exceptions" QEMU_TEST=$KARCH CONSOLE=ttyS0 diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/m68k/details --- a/sources/targets/m68k/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/m68k/details Mon Apr 06 07:11:26 2009 -0500 @@ -3,7 +3,7 @@ KARCH=m68k KERNEL_PATH=vmlinux -GCC_FLAGS= #"--with-float=soft" +GCC_FLAGS="--enable-sjlj-exceptions" # "--with-float=soft" BINUTILS_FLAGS= QEMU_TEST= #$KARCH diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/mips/details --- a/sources/targets/mips/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/mips/details Mon Apr 06 07:11:26 2009 -0500 @@ -3,7 +3,7 @@ KARCH=mips KERNEL_PATH=vmlinux BINUTILS_FLAGS= -GCC_FLAGS= +GCC_FLAGS="--enable-sjlj-exceptions" QEMU_TEST=mips ROOT=hda diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/mipsel/details --- a/sources/targets/mipsel/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/mipsel/details Mon Apr 06 07:11:26 2009 -0500 @@ -3,7 +3,7 @@ KARCH=mips KERNEL_PATH=vmlinux BINUTILS_FLAGS= -GCC_FLAGS= +GCC_FLAGS="--enable-sjlj-exceptions" QEMU_TEST=mipsel ROOT=hda diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/powerpc-440fp/details --- a/sources/targets/powerpc-440fp/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/powerpc-440fp/details Mon Apr 06 07:11:26 2009 -0500 @@ -3,7 +3,7 @@ source "$CONFIG_DIR/powerpc/details" CROSS_TARGET=powerpc-unknown-linux -GCC_FLAGS="--with-cpu=440fp --with-tune=440fp" +GCC_FLAGS="--with-cpu=440fp --with-tune=440fp ${GCC_FLAGS}" BINUTILS_FLAGS="--with-cpu=440fp --with-tune=440fp" emulator_command() diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/powerpc/details --- a/sources/targets/powerpc/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/powerpc/details Mon Apr 06 07:11:26 2009 -0500 @@ -2,7 +2,7 @@ KARCH=powerpc KERNEL_PATH=vmlinux -GCC_FLAGS= +GCC_FLAGS="--enable-sjlj-exceptions" BINUTILS_FLAGS= QEMU_TEST= #ppc diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/sh4/details --- a/sources/targets/sh4/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/sh4/details Mon Apr 06 07:11:26 2009 -0500 @@ -1,6 +1,6 @@ KARCH=sh KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS= #"--with-cpu=m4-nofpu" +GCC_FLAGS="--enable-sjlj-exceptions" #"--with-cpu=m4-nofpu" BINUTILS_FLAGS= QEMU_TEST=$KARCH CROSS_TARGET=sh-superh-linux diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/sparc/details --- a/sources/targets/sparc/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/sparc/details Mon Apr 06 07:11:26 2009 -0500 @@ -5,7 +5,7 @@ KARCH=sparc KERNEL_PATH=arch/${KARCH}/boot/image BINUTILS_FLAGS= -GCC_FLAGS= +GCC_FLAGS="--enable-sjlj-exceptions" QEMU_TEST=$KARCH ROOT=sda diff -r 9be7fb3af9a1 -r b4a9c0084f2f sources/targets/x86_64/details --- a/sources/targets/x86_64/details Mon Apr 06 06:14:49 2009 -0500 +++ b/sources/targets/x86_64/details Mon Apr 06 07:11:26 2009 -0500 @@ -1,6 +1,6 @@ KARCH=x86_64 KERNEL_PATH=arch/${KARCH}/boot/bzImage -#GCC_FLAGS="-m64" +GCC_FLAGS="--enable-sjlj-exceptions" BINUTILS_FLAGS="--enable-64-bit-bfd" QEMU_TEST=