Would it be worthwhile to try and turn off TNTC?  I don't know which
section info tables live in without TNTC, but if it were to move info
tables into a separate section this might help.

On 16 September 2010 04:16, Ben Lippmeier <b...@ouroborus.net> wrote:
>
>>> 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.
>>
>> -fPIC should have helped by eliminating relocations from the text  and data 
>> sections.  Very Strange.  Does the dynamic version of the ghc package link 
>> without errors?
>
> So it looks like the real problem is the total size of the text section in 
> the resulting library, not the number of relocations needed.
>
> I haven't tried the dynamic version yet. The build system wants to make the 
> static one first. I did get a
>
> -rw-r--r--    1 benl  staff  56357392 15 Sep 17:19 libHSghc-6.13.20100914.a
>
> though.
>
> Ben.
>
>
>
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc@haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>



-- 
If it looks like a duck, and quacks like a duck, we have at least to
consider the possibility that we have a small aquatic bird of the
family Anatidae on our hands.

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to