Skip to content
  1. Mar 26, 2017
    • Rui Ueyama's avatar
      Simplify relocation offset adjustment. · 08aede36
      Rui Ueyama authored
      Previously, relocation offsets are recalculated for .eh_frame sections
      inside the main loop, and that messed up the main loop. This patch
      separates that logic into a dedicated class.
      
      llvm-svn: 298785
      08aede36
  2. Mar 25, 2017
  3. Mar 24, 2017
  4. Mar 23, 2017
  5. Mar 22, 2017
  6. Mar 21, 2017
  7. Mar 20, 2017
    • Simon Atanasyan's avatar
      [ELF][MIPS] Calculate relocations agains _gp_disp / __gnu_local_gp using dedicated 'expressions' · d34a3631
      Simon Atanasyan authored
      The patch introduces two new relocations expressions R_MIPS_GOT_GP and
      R_MIPS_GOT_GP_PC. The first one represents a current value of `_gp`
      pointer and used to calculate relocations against the `__gnu_local_gp`
      symbol. The second one represents the offset between the beginning of
      the function and the `_gp` pointer's value.
      
      There are two motivations for introducing new expressions:
      - It's better to keep all non-trivial relocation calculations in the
        single place - `getRelocTargetVA` function.
      - Relocations against both `_gp_disp` and `__gnu_local_gp` symbols
        depend on the `_gp` value. It's a magical value points to the "middle"
        of GOT. Now all relocations use a common `_gp` value. But in fact,
        under some conditions each input file might require its own `_gp`
        value. I'm going to implement it in the future patches. So it's
        better to make `MipsGotSection` responsible for calculation of
        the `_gp` value.
      
      llvm-svn: 298306
      d34a3631
    • Simon Atanasyan's avatar
      [ELF][MIPS] Follow-up to r298272. Fix typo to fix buildbot. · 5378e423
      Simon Atanasyan authored
      llvm-svn: 298304
      5378e423
    • George Rimar's avatar
      [ELF] - Detemplate MipsGotSection<ELFT> · 14534eb8
      George Rimar authored
      This continues detemplation process.
      
      Detemplating MipsGotSection<ELFT> is helpfull because can
      help to detemplate getRelocTargetVA. (one more change is required)
      It opens road to detemplation of GotSection<ELFT> and probably
      something else after that.
      
      Differential revision: https://reviews.llvm.org/D31090
      
      llvm-svn: 298272
      14534eb8
    • George Rimar's avatar
      [ELF] - Detemplate BuildIdSection section. · 6c2949da
      George Rimar authored
      Does not introduce anything new,
      just performs detemplate, using methods we
      already have.
      
      Differential revision: https://reviews.llvm.org/D30935
      
      llvm-svn: 298269
      6c2949da
    • Rafael Espindola's avatar
      Inline a few functions. · 195f23c5
      Rafael Espindola authored
      I don't foresee having to makes these functions any stricter or
      fancier, so it probably makes sense to inline them.
      
      llvm-svn: 298252
      195f23c5
    • Rafael Espindola's avatar
      Initialize dot. · 49592cf6
      Rafael Espindola authored
      This would fix an initialized error found by msan. The error is not
      showing after r298241, but it is not clear why.
      
      llvm-svn: 298251
      49592cf6
    • George Rimar's avatar
      [ELF] - Simplify redundant templated call. NFC. · 05423488
      George Rimar authored
      llvm-svn: 298244
      05423488
Loading