From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darius Augulis Date: Sun, 31 Oct 2010 19:38:35 +0200 Subject: [U-Boot] ARM: problem with linker option -pie In-Reply-To: <20101030211711.C45471522C0@gemini.denx.de> References: <4CCC8206.40206@gmail.com> <20101030204310.3C78A1522C0@gemini.denx.de> <4CCC85B4.6060102@gmail.com> <20101030211711.C45471522C0@gemini.denx.de> Message-ID: <4CCDA99B.3010504@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/31/2010 12:17 AM, Wolfgang Denk wrote: > Dear Darius Augulis, > > In message<4CCC85B4.6060102@gmail.com> you wrote: >> >>> 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. >> >> Of course not. I just wanted inform that -pie is not working. >> Actually I don't know how to fix it correctly. It's may be interesting >> for more people, especially who wrote relocation code. > > Which exact tool chain are you using? I use toolchain from Buildroot compiled from sources on my ubuntu 10.04 host. I have made some testing today: gcc 4.4.5 + binutils 2.19 - works ok gcc 4.2.4 + binutils 2.19 - works ok gcc 4.4.5 + binutils 2.20.1 - fails gcc 4.2.4 + binutils 2.20.1 - fails gcc 4.4.5 + binutils 2.20 - fails Results show that it doesn't depend on compiler version and depends only on binutils - v2.20 and higher versions doesn't work. Darius. > > Do you have a chance to build with ELDK 4.2? > > Or, if your code is all in mainline (or you are willing to send me > patches), would you test an image that I compile for you, using LDK > 4.2? > > Best regards, > > Wolfgang Denk >