From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Sun, 31 Oct 2010 08:46:04 +0100 Subject: [U-Boot] ARM: problem with linker option -pie In-Reply-To: <4CCC8206.40206@gmail.com> References: <4CCC8206.40206@gmail.com> Message-ID: <4CCD1EBC.6010508@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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