Skip to content
  • Peter Smith's avatar
    [ELF] Use synthetic section to hold copy relocation · ebfe9941
    Peter Smith authored
        
    When we need a copy relocation we create a synthetic SHT_NOBITS
    section that contains the right amount of ZI and assign it to either
    .bss or .rel.ro.bss as appropriate. This allows the dynamic relocation
    to be placed on the InputSection, removing the last case where a
    dynamic relocation is stored as an offset from the OutputSection. This
    has the side effect that we can run assignOffsets() after scanRelocs()
    without losing the additional ZI needed for the copy relocations.
    
    Differential Revision: https://reviews.llvm.org/D29637
    
    llvm-svn: 294577
    ebfe9941
Loading