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

Heiko Schocher
2010-10-31T07:46:04Z

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