[LLVMdev] Comment "FIXME" in X86MachObjectWriter::RecordX86Relocation

Verena Beckham verena at codeplay.com
Fri Jun 29 08:58:16 PDT 2012


Hi,

In X86MachObjectWriter::RecordX86Relocation I found the comment


   if (Target.isAbsolute()) { // constant
     // SymbolNum of 0 indicates the absolute section.
     //
     // FIXME: Currently, these are never generated (see code below). I 
cannot
     // find a case where they are actually emitted.
     Type = macho::RIT_Vanilla;
   }

Is the FIXME still true? I've got some code that hits this, and it seems 
any code doing a function call to an absolute address (as described in 
this bug for ELF: http://llvm.org/bugs/show_bug.cgi?id=8656) would hit 
this. (Although I haven't tried it)

I'm using Windows 32bit x86 Mach-O, with MCJIT.

Trying to find a bug within my program and wondered whether the code is 
just not supported by LLVM. Let me know if you need a testcase.

Thanks!


-- 
Verena Beckham

Vice President Engineering

Codeplay Software Ltd
45 York Place, Edinburgh, EH1 3HP
Tel: 0131 466 0503
Fax: 0131 557 6600
Website: http://www.codeplay.com

This email and any attachments may contain confidential and /or 
privileged information and  is for use  by the addressee only. If you 
are not the intended recipient, please notify Codeplay Software Ltd 
immediately and delete the message from your computer. You may not copy 
or forward it,or use or disclose its contents to any other person. Any 
views or other information in this message which do not relate to our 
business are not authorized by Codeplay software Ltd, nor does this 
message form part of any contract unless so stated.
As internet communications are capable of data corruption Codeplay 
Software Ltd does not accept any responsibility for any changes made to 
this message after it was sent. Please note that Codeplay Software Ltd 
does not accept any liability or responsibility for viruses and it is 
your responsibility to scan any attachments.
Company registered in England and Wales, number: 04567874
Registered office: 81 Linkfield Street, Redhill RH1 6BY



More information about the llvm-dev mailing list