Skip to content
  • George Rimar's avatar
    [ELF] - Assign SHF_INFO_LINK flag to REL[A] sections. · ef84219d
    George Rimar authored
    Spec says: (http://www.sco.com/developers/gabi/latest/ch4.sheader.html)
    
    sh_info
    This member holds extra information, whose interpretation depends on the section type.
    If the sh_flags field for this section header includes the attribute SHF_INFO_LINK, 
    then this member represents a section header table index.
    
    SHF_INFO_LINK
    The sh_info field of this section header holds a section header table index.
    
    Since sh_info for SHT_REL[A] sections should contain the section header index of the
    section to which the relocation applies, this is
    consistent with spec to put this flag. Behavior matches both bfd and gold as well.
    
    Differential revision: https://reviews.llvm.org/D33763
    
    llvm-svn: 304531
    ef84219d
Loading