Ben Lippmeier:
>> c) reordering modules in .cabal?
> 
> I had a few goes by hand, but it didn't help, and I don't think it's going 
> to. 
> 
> I've been poking through the source of MacOS ld, and the header file 
> /usr/include/mach-o/reloc.h mentioned in the original ticket. From what I 
> understand, the field that is overflowing is the offset from the start of the 
> section (text or data) to the thing that is being relocated. The field is 
> only 24bits long, which limits the relocatable contents of each section to 
> 16MB. The field is not the offset between the source and target symbols, so 
> reordering modules won't help.
> 
> I don't know what the difference between "relocatable contents" and "the 
> whole .o file" is, or how many sections we're using. In my build tree from 
> Sept 9th the resulting file is 44MB and it made that ok.

For details on the file format:

  * ABI reference: 
http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html
  * Background info: 
http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/MachOTopics/0-Introduction/introduction.html

Manuel

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to