Hi KJ,

Lin KJ wrote:
I wonder whether the "arm-linux-" toolchains recommend by the uClinux website 
can be used for ARM uClinux world.

They can, I use them to create running systems.
(I always test the GDB/ARMultaor uClinux target with those arm-linux
toolchains).


The compiler library "libgcc.a" will be an issue.
Since XIP code is must for uClinux, the "libgcc.a" must be produced by the XIP 
compiling flags.

No, that is not the case. uClinux binaries do not necessarily have
to be XIP. For the FLAT format using targets elf2flt can create
binaries that do full relocation at load/run time.

And this is the case I normally use. For the XIP cases you
won't have the right libgcc.a from those toolchains. You would
need to generate a toolchain from source and multilib it
for the XIP case you want.


For ARM, it will be "-fpic -msingle-pic-base".
By objdump inspecting, I found the libgcc.a of the "arm-linux" toolchains on 
the uClinux website is not compilied by the options.

Thats right...


When the program calls the functions of libgcc.a, it will be broken in some 
cases.
The easy way to test is to do the "long long" variable division.
However, i seldom heard people complain about their toolchains.
Why? Or my understanding is wrong?

The arm-linux toolchain is really a standard VM linux tool chain.
It also happens to work for the non-XIP uClinux case, which is why
I use it. (One toolchain for all the arm-linux work I do).


Doesn't other architecture have the same issue?

It all depends on the toolchain in this case. Unfortunately there
is a lot of different binary packages out there (different versions,
different patches applied, etc). Some won't compile older uClinux-dist,
some won't compile newer, it is a trick to find a combination that
works the way you want it to (at least if you don't want to build
the toolchain yourself).

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     [EMAIL PROTECTED]
SnapGear, a McAfee Company                  PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to