Skip to content
  1. Jan 20, 2017
  2. Jan 19, 2017
  3. Jan 18, 2017
    • Peter Smith's avatar
      [ELF] Move createThunks() after scanRelocations() · ee6d7186
      Peter Smith authored
          
      A necessary first step towards range extension thunks is to delay
      the creation of thunks until the layout of InputSections within
      OutputSections has been done.
          
      The change scans the relocations directly from InputSections rather
      than looking in the ELF File the InputSection came from. This will
      allow a future change to redirect the relocations to symbols defined
      by Thunks rather than indirect when resolving relocations.
          
      A side-effect of moving ThunkCreation is that the OutSecOff of
      InputSections may change in an OutputSection that contains Thunks.
      In well behaved programs thunks are not in OutputSections with
      dynamic relocations.
          
      Differential Revision: https://reviews.llvm.org/D28811
      
      llvm-svn: 292359
      ee6d7186
    • Rui Ueyama's avatar
      Return early if writeMapFile failed. · 40eaa996
      Rui Ueyama authored
      This patch adds a test for an invalid output path for -Map option,
      though that test is not for verifying that we are using error()
      instead of fatal() in writeMapFile.
      
      llvm-svn: 292336
      40eaa996
    • Peter Collingbourne's avatar
      ELF: Add support for relocation type R_X86_64_8. · ae30386f
      Peter Collingbourne authored
      Although this relocation type is not part of the x86-64 psABI, I intend to
      use it internally as part of the ThinLTO implementation.
      
      Differential Revision: https://reviews.llvm.org/D28841
      
      llvm-svn: 292330
      ae30386f
  4. Jan 17, 2017
  5. Jan 16, 2017
    • Simon Atanasyan's avatar
      [ELF][MIPS] Exclude mips .got from PT_GNU_RELRO segment · 2bd98af5
      Simon Atanasyan authored
      On MIPS .got section cannot be included into the PT_GNU_RELRO segment.
      Sometimes it might work, but in general it is unsupported. One of the
      problem is that all sections marked by SHF_MIPS_GPREL should be grouped
      together because data in these sections is addressable with a gp
      relative address, but such sections might be writable.
      
      This patch exclude mips .got from PT_GNU_RELRO segment and group
      SHF_MIPS_GPREL sections.
      
      llvm-svn: 292161
      2bd98af5
    • Rafael Espindola's avatar
      Give priority to linker scripts over preemption. · 41a93a3e
      Rafael Espindola authored
      LLD exports symbols that are also present in used shared libraries to
      make sure they are preempted at runtime. That is a reasonable default,
      but we must allow for it to be overwritten with linker script. If we
      don't, libraries that expect to be able to hide a c++ delete operator
      will fail.
      
      This should fix the firebird build.
      
      llvm-svn: 292146
      41a93a3e
    • George Rimar's avatar
      [ELF] - Fix format specifiers in writeOutSecLine() · 07d94e35
      George Rimar authored
      I had a error in map-file.s testcase under MSVS2015/win32:
      
      map-file.s:30:16: error: expected string not found in input
      // CHECK-NEXT: 0000000000200158 0000000000000030 8 .eh_frame
      
      <stdin>:2:1: note: scanning from here
      0000000000200158 10 30 .eh_frame
      
      Format string '%0*x' requires an argument of type 'unsigned int',
      but argument has type 'uint64_t'. Proper format is '%0*llx' then.
      
      This fixes testcase failture for me.
      
      llvm-svn: 292102
      07d94e35
    • Rui Ueyama's avatar
      Use error() instead of fatal() to handle file open error. · c9807c33
      Rui Ueyama authored
      llvm-svn: 292090
      c9807c33
  6. Jan 15, 2017
  7. Jan 14, 2017
  8. Jan 13, 2017
  9. Jan 12, 2017
  10. Jan 11, 2017
Loading