From 4b7710b5463c48d8a46d5c54650f4d0fc401ffc5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 19 Apr 2012 10:50:17 -0400 Subject: Fix "invalid swi expression" error? Building EGLIBC with the static GCC would result in an error such as this: /tmp/[...].s: Assembler messages: /tmp/[...].s:168: Error: invalid swi expression /tmp/[...].s:168: Error: value of 983045 too large for field of 2 byt es at 170 Apparently, it makes no sense for GCC to generate Thumb code with the ARM Architecture Procedure Call Standard (AAPCS). --- diff --git a/temporary-bootstrap-builder-setup-cortexa8.txt b/temporary-bootstrap-builder-setup-cortexa8.txt index c2e81d2..c0ae527 100644 --- a/temporary-bootstrap-builder-setup-cortexa8.txt +++ b/temporary-bootstrap-builder-setup-cortexa8.txt @@ -108,11 +108,10 @@ convenience; this has no effect on the target system. > unset CXXFLAGS > export BBL_HOST=$(echo ${MACHTYPE} | \ > sed "s/$(echo ${MACHTYPE} | cut -d - -f 2)/cross/") - > export BBL_TARGET=arm-none-linux-gnu - > export BBL_ABI=aapcs-linux - > export BBL_GCCTGTOPTS="--with-arch=armv7-a --with-cpu=cortex-a8 - > --with-tune=cortex-a8 --with-mode=thumb --with-fpu=neon --with-float=hard - > --with-abi=${BBL_ABI}" + > export BBL_TARGET=arm-cortex_a8-linux-gnu + > export BBL_GCCTGTOPTS='--with-arch=armv7-a --with-abi=aapcs-linux + > --with-cpu=cortex-a8 --with-tune=cortex-a8 + > --with-fpu=neon --with-float=hard' > EOF $ source ~/.bash_profile -- cgit v0.9.1