[U-Boot] ARM: problem with linker option -pie

Heiko Schocher hs at denx.de
Sun Oct 31 08:46:04 CET 2010


Hello Darius,

Darius Augulis wrote:
> I've found solution which solves problem of empty command table.
> Actually the problem is -pie linker option. I removed it and added -fPIC
> flag to compiler options. Because relocation with such changes fails, I
> set TEXT_BASE equal to runtime calculated relocation address.
> And it works! All commands are there.

Which toolchain do you use?

Can you try ELDK-4.2, seems to me newer gcc have problems
with -pie

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list