#3260: Linking stage2 on PPC gives "scattered reloc r_address too large"
---------------------------------+------------------------------------------
    Reporter:  benl              |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  normal            |    Milestone:  _|_         
   Component:  Compiler          |      Version:  6.13        
    Keywords:                    |   Difficulty:  Unknown     
          Os:  MacOS X           |     Testcase:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by PHO):

  * version:  6.11 => 6.13
  * architecture:  powerpc => Unknown/Multiple


Comment:

 The attached patch is a workaround for this.
 Unfortunately, this problem can only be avoided by not merging objects (ld
 -r) at all...
 {{{
 Sat May  8 23:24:11 JST 2010  [email protected]
   * Work around for Mach-O relocation limit

   Mach-O has a limitation on the length of relocation addresses. No
   segments can be larger than 2^24 - 1 bytes (approx 16 MiB; See
   /usr/include/mach-o/reloc.h). Static GHCi libraries are merged large
   objects so they tend to exceed this limit.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3260#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to