This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cross compiler libgcc.a with -mthumb-interwork
John Carter wrote:
I'm trying to create a cross compiler hosted on i386 linux targetting an
embedded arm thumb device with thumb-interworking on.
You need to the modify gcc-4.X/gcc/config/arm/t-arm-elf file to enable multilib for thumb
interworking before building gcc. For gcc 4.0 targetting eCos I had to add the following
patch.
I think that by default they are not enabled (just as BE support isn't) so the resulting
build remains relatively small as each variant of the supporting libraries under
installdir/arm-elf/lib is about 15Mb.
--- o 2004-09-01 14:14:21.000000000 +0300
+++ t-arm-elf 2005-05-19 12:54:41.000000000 +0300
@@ -23,8 +23,8 @@
# MULTILIB_DIRNAMES += fpu soft
# MULTILIB_EXCEPTIONS += *mthumb/*mhard-float*
#
-# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
-# MULTILIB_DIRNAMES += normal interwork
+MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
+MULTILIB_DIRNAMES += normal interwork
#
# MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore
# MULTILIB_DIRNAMES += elf under