From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 31 May 2013 13:20:00 -0500 Subject: [U-Boot] powerpc/mpc8xxx failed to compile: operand out of range In-Reply-To: <1705423740.126757.1369302746388.JavaMail.root@gnuside.com> (from jerome.arzel@gnuside.com on Thu May 23 04:52:26 2013) Message-ID: <1370024400.13614.9@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/23/2013 04:52:26 AM, J?r?me Arzel wrote: > Hi all, > > I have an issue when I compile U-Boot for my target machine (P1022DS, > 36-bit). > Here is the error message: > > release.S: Assembler messages: > release.S:154: Error: operand out of range (0xfffff144 is not between > 0x00000000 and 0x0000ffff) > release.S:286: Error: operand out of range (0xfffff144 is not between > 0x00000000 and 0x0000ffff) > release.S:311: Error: operand out of range (0xfffff140 is not between > 0x00000000 and 0x0000ffff) > > (release.S is located to arch/powerpc/cpu/mpc85xx/release.S) > > And here is the code for the first error (line 150): > > #define toreset(x) (x - __secondary_start_page + 0xfffff000) > > /* get our PIR to figure out our table entry */ > lis r3,toreset(__spin_table_addr)@h > ori r3,r3,toreset(__spin_table_addr)@l > > I don't really know why it doesn't work, but I think > that "ori" is inappropried, the immediate value must be a 16-bit > value. > > I use GCC 4.7.3, compiled in x86_64 for target > powerpc-none-linux-gnuspe. > My U-Boot come from the repository, but older versions fail too. This appears to be a binutils bug, introduced in 2.23.2. The attached test program gives a similar error on 2.23.2, but 2.23.1 is OK. I've filed it here: http://sourceware.org/bugzilla/show_bug.cgi?id=15557 -Scott -------------- next part -------------- ori 3,3,(y-x+0x8000)@l x: y: