[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PowerPC assembler help



Brad Boyer wrote:

> Was this input for an assembler or output from a disassembler? If this
> is from a disassembly of a dynamically relocatable object, it might
> have gotten confused by an instruction being the target of a relocation.

This is code generated by the Glasgow Haskell Compiler (GHC).

The reason I was asking was that when this is run through the assembler
I get the following error for some instances of the instruction:

    /tmp/ghc2806_0/ghc2806_1.s:51766:0:
       Error: operand out of range (0x000000000000adf8 is not between
       0xffffffffffff8000 and 0x0000000000007fff)

The GHC bug is here:

    http://hackage.haskell.org/trac/ghc/ticket/7830

The old thing is that the compiler has been working correctly for years
with this lwz instruction, but recently, due to some extra code inlining,
the generated code for this module gre to a size to trigger this bug.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Reply to: