A few Questions

Sylvain Becker sylvain.becker@gmail.com
Thu Jun 16 12:26:00 GMT 2005


Hi,

Thanks for the replies.
I have compiled the xscale toolchain sucessfully with this options:

KERNELCONFIG=`pwd`/arm.config
TARGET=arm-xscale-linux-gnu
TARGET_CFLAGS="-O -msoft-float -mthumb-interwork"
GCC_EXTRA_CONFIG="--with-float=soft --with-cpu=xscale
--enable-interwork --enable-cxx-flags=-mcpu=xscale"
GLIBC_EXTRA_CONFIG="--with-float=soft --enable-interwork --without-fp"


But...(always a but), When I check the headers of my objects:

crtbegin.o -> says it's compiled with SF.   don't say anything about
interworking.
libgcc.a -> says it's compiled with SF.   don't say anything about interworking.
crti.o -> says it's compiled with SF.   don't say anything about interworking.
libc.o -> says it's compiled with S and with thumb interworking.

Compilation is done with -static -static-libgcc. I got lots of
warning, about "interworking" because module are not recognised as all
thumb-interworking:/
The programme starts, go to custom initialization and hangup.. 
(hangup in "my_function", at instruction  "bl  <my_function +
0x130>"..weird.. ).
Anyway, I'll try with smaller examples. 

If you see any mistake in my option file, or if you guess that object
headers are not correctly set, please let me know,

Sylvain Becker.

On 6/16/05, Daniel Kegel <dank@kegel.com> wrote:
> Sylvain Becker wrote:
> > I saw in "crosstool.sh", an hardcoded value fo kernel version ->
> > "--enable-kernel=2.4.3"
> > is that problematic if I am using a different Kernel, or is that just
> > for bootstrap-ing?
> 
> The --enable-kernel=2.4.3 sets the lower bound on the kernel
> version that the toolchain can generate apps for.
> If you know for sure you won't be running on any kernel
> older than 2.6.0, you can change it to --enable-kernel=2.6.0,
> and maybe save a tiny bit of space and speed up your syscalls a
> tiny bit.
> If you need to run on the 2.2 kernel, you would want to
> change it to --enable-kernel=2.2.10 or something.
> 
> Most folks won't need to play with it.
> 
> I think :-)
> 


-- 
Sylvain Becker

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list