Skip to content
  1. Oct 14, 2016
    • George Rimar's avatar
      [ELF] - Implemented -z wxneeded. · cc6e567c
      George Rimar authored
      -z wxneeded creates a PHDR PT_OPENBSD_WXNEEDED.
      
      PT_OPENBSD_WXNEEDED
      The array element specifies that a process executing this file may need to be able to map or protect memory regions as simultaneously executable and writable. If the system is unable or unwilling to permit that for this executable then it may fail immediately. This segment type is meaningful only for executable files and is ignored in other objects.
      
      http://man.openbsd.org/OpenBSD-current/man5/elf.5
      
      Differential revision: https://reviews.llvm.org/D25472
      
      llvm-svn: 284226
      cc6e567c
    • Konstantin Zhuravlyov's avatar
      [ELF/AMDGPU]: Add support for new relocations · d4327e95
      Konstantin Zhuravlyov authored
      Differential Revision: https://reviews.llvm.org/D25563
      
      llvm-svn: 284197
      d4327e95
    • Rui Ueyama's avatar
      Improve comments. · b04af133
      Rui Ueyama authored
      llvm-svn: 284177
      b04af133
    • Peter Collingbourne's avatar
      ELF: Override DSO definitions when creating __start_* and __stop_* symbols. · 24a01c34
      Peter Collingbourne authored
      Previously we would fail to synthesise a __start_ or __stop_ symbol if
      there existed a definition in a DSO. Instead, we would try to link against
      the DSO definition. This became possible after D23552 when linking against
      lld-produced DSOs but could in principle also occur when linking against
      DSOs produced by other linkers.
      
      Not only does it seem more likely that a user would expect the resolved
      definition to be local to the executable, but if a __start_ or __stop_
      symbol was synthesised by the linker, it is effectively impossible to link
      against correctly from a non-PIC executable in a read-only section. Neither
      a PLT nor a copy relocation would give us the right semantics here. The only
      way the link could succeed is if the executable provided its own synthetic
      definition of the symbol.
      
      The fix is to also synthesise the definition if the only definition comes
      from a DSO. Since this is what the addOptionalSynthetic function does,
      switch to using that function.
      
      Fixes PR30680.
      
      Differential Revision: https://reviews.llvm.org/D25544
      
      llvm-svn: 284168
      24a01c34
  2. Oct 13, 2016
    • Peter Collingbourne's avatar
      Add "opt" to the list of test dependencies. · 3aa0a251
      Peter Collingbourne authored
      We've started using it in the ThinLTO tests.
      
      Also remove a repeated dependency on llvm-nm.
      
      llvm-svn: 284095
      3aa0a251
    • Rui Ueyama's avatar
      Move a utility function to Strings.cpp. · acb67bcb
      Rui Ueyama authored
      So that we can use the function from anywhere.
      
      llvm-svn: 284092
      acb67bcb
    • Rui Ueyama's avatar
      Fix variable name. NFC. · 5665af83
      Rui Ueyama authored
      llvm-svn: 284079
      5665af83
    • Rui Ueyama's avatar
      Support GNU-style ZLIB-compressed input sections. · 05384080
      Rui Ueyama authored
      Previously, we supported only SHF_COMPRESSED sections because it's
      new and it's the ELF standard. But there are object files compressed
      in the GNU style out there, so we had to support it.
      
      Sections compressed in the GNU style start with ".zdebug_" and
      contain different headers than the ELF standard's one. In this
      patch, getRawCompressedData is responsible to handle it.
      
      A tricky thing about GNU-style compressed sections is that we have
      to rename them when creating output sections. ".zdebug_" prefix
      implies the section is compressed. We need to rename ".zdebug_"
      ".debug" because our output sections are not compressed.
      We do that in this patch.
      
      llvm-svn: 284068
      05384080
  3. Oct 12, 2016
  4. Oct 11, 2016
  5. Oct 10, 2016
  6. Oct 07, 2016
Loading