Windows-native GHC (Yasm issue)

Peter Tanski p.tanski at gmail.com
Wed Nov 22 20:38:36 EST 2006


On Nov 22, 2006, at 11:34 AM, Simon Marlow wrote:
> Peter Tanski wrote:
>> On Nov 22, 2006, at 4:18 AM, Simon Marlow wrote:
>>
>>> By "modify the NCG to output the correct data sections" do you  
>>> mean  putting the two symbols in the same section for a relative   
>>> reference?  This means putting SRTs in the text section.  We  
>>> used  to do this (this was one workaround for the lack of 64-bit  
>>> relative  relocations on x86_64), but it's not really the right  
>>> thing; SRTs  should go in the read-only data section to avoid  
>>> polluting the code  cache.
>> I meant sorting out the potential relocation symbols ourselves  
>> and  put them into a '.reloc' section ('.reloc' is for COFF).   
>> This is  something the assembler (Yasm) should do.
>
> Ok, I'm out of my depth here, I don't know what the .reloc section  
> does (or anything abot COFF, for that matter).

Same here.  I am working off of the Microsoft PE-COFF spec myself.   
Maybe the Yasm developers have a better idea :)

Cheers,
Pete


More information about the Cvs-ghc mailing list