#4013: build fails on OS X: Invalid Mach-O file:Address out of bounds while
relocating object file
-------------------------+--------------------------------------------------
    Reporter:  igloo     |        Owner:  igloo              
        Type:  bug       |       Status:  new                
    Priority:  highest   |    Milestone:  6.14.1             
   Component:  Compiler  |      Version:  6.13               
    Keywords:            |   Difficulty:                     
          Os:  MacOS X   |     Testcase:                     
Architecture:  x86       |      Failure:  Building GHC failed
-------------------------+--------------------------------------------------

Comment(by igloo):

 Hmm, can anyone see what's going on with the `0x0000000c` vs `0xfffffffc`
 here?:
 {{{
 $ cat q.s

 .const_data
 foo:
         .long  123
         .align 2
 .text
         .align 2
         .long   foo - bar + 16
         .long   0
         .long   125
 bar:
         .long 124

 $ gcc -c q.s
 $ ld -r q.o -o w.o
 $ otool -r ?.o
 q.o:
 Relocation information (__TEXT,__text) 2 entries
 address  pcrel length extern type    scattered symbolnum/value
 00000000 0     2      n/a    4       1         0x00000010
 00000000 0     2      n/a    1       1         0x0000000c
 w.o:
 Relocation information (__TEXT,__text) 2 entries
 address  pcrel length extern type    scattered symbolnum/value
 00000000 0     2      n/a    4       1         0x00000010
 00000000 0     2      n/a    1       1         0xfffffffc
 $
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4013#comment:13>
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