Skip to content
  • Simon Atanasyan's avatar
    [ELF][MIPS] Convert .reginfo and .MIPS.options sections to synthetic input sections · ce02cf00
    Simon Atanasyan authored
    Previously, we have both input and output sections for .reginfo and
    .MIPS.options. Now for each such sections we have one synthetic input
    sections: MipsReginfoSection and MipsOptionsSection respectively.
    
    Both sections are handled as regular sections until the control reaches
    Writer. Writer then aggregates all sections whose type is SHT_MIPS_REGINFO
    or SHT_MIPS_OPTIONS to create a single synthesized input section. In that
    moment Writer also save GP0 value to the MipsGp0 field of the corresponding
    ObjectFile. This value required for R_MIPS_GPREL16 and R_MIPS_GPREL32
    relocations calculation.
    
    Differential revision: https://reviews.llvm.org/D26444
    
    llvm-svn: 286397
    ce02cf00
Loading