From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 30 Oct 2010 22:43:10 +0200 Subject: [U-Boot] ARM: problem with linker option -pie In-Reply-To: <4CCC8206.40206@gmail.com> References: <4CCC8206.40206@gmail.com> Message-ID: <20101030204310.3C78A1522C0@gemini.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 Dear Darius Augulis, In message <4CCC8206.40206@gmail.com> you 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. Sorry, but this is not a solution. You may use this as momentary workaround if you need a running system, but it cannot go into mainline. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I have the simplest tastes. I am always satisfied with the best. -- Oscar Wilde