[PATCH] D11612: [lld][ELF2] Apply relocations.
    Simon Atanasyan via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Aug  7 22:22:53 PDT 2015
    
    
  
atanasyan added a subscriber: atanasyan.
atanasyan added a comment.
> I believe it shouldn't be hard to rewrite it as one pass if we have to.
>  So it looks like a premature optimization to me.
Suppose we have a relocation R. This relocation is in the .text section and refers a symbol in the .data section. Suppose that the .data section goes after the .text one. It is still a common case even if we forget about a linker script support. How will we write result of this relocation using a single pass approach? Will we know an address of the symbol in the .data section at the moment of writing the .text section?
http://reviews.llvm.org/D11612
    
    
More information about the llvm-commits
mailing list