Skip to content
  1. Jan 10, 2017
  2. Jan 09, 2017
    • Peter Collingbourne's avatar
      ELF: Discard .gnu.linkonce.* sections. · c39e5d64
      Peter Collingbourne authored
      The linkonce feature is a sort of proto-comdat. As far as I am aware no
      compiler produces linkonce sections anymore, but some glibc i386 object
      files contain definitions of symbol "__x86.get_pc_thunk.bx" in linkonce
      sections. Drop those sections to avoid duplicate symbol errors.
      
      This is glibc PR20543, we should remove this hack once that has been
      fixed for a while.
      
      Fixes PR31215.
      
      Differential Revision: https://reviews.llvm.org/D28430
      
      llvm-svn: 291474
      c39e5d64
    • Meador Inge's avatar
      [ELF] Allow defined symbols to be assigned from linker script · 8f1f3c40
      Meador Inge authored
      This patch allows for linker scripts to assign a new value
      to a symbol that is already defined (either in an object file
      or the linker script itself).
      
      llvm-svn: 291459
      8f1f3c40
    • Pavel Labath's avatar
      [lld][cmake] Fix LLVM_LINK_LLVM_DYLIB build · c9fa114b
      Pavel Labath authored
      Summary:
      Lld's build had a couple of issues which prevented a successfull
      LLVM_LINK_LLVM_DYLIB compilation.
      
      - add_llvm_library vs llvm_add_library: One adds a library to libLLVM.so, other
        one doesn't. Lld was using the wrong one, causing symbols to be mupltiply
        defined in things linking to libLLVM.
      - confusion when to use LINK_LIBS vs LINK_COMPONENTS in llvm_add_library
      - not using LLVM_LINK_COMPONENTS for add_lld_tool
      
      With these fixes lld compiles and it's test suite passes both in
      LLVM_LINK_LLVM_DYLIB mode and without it.
      
      Reviewers: ruiu, beanz
      
      Subscribers: llvm-commits, mgorny
      
      Differential Revision: https://reviews.llvm.org/D28397
      
      llvm-svn: 291432
      c9fa114b
    • Rui Ueyama's avatar
      Define sys::path::convert_to_slash · 3e649039
      Rui Ueyama authored
      This patch moves convertToUnixPathSeparator from LLD to LLVM.
      
      Differential Revision: https://reviews.llvm.org/D28444
      
      llvm-svn: 291414
      3e649039
    • Rui Ueyama's avatar
      Add linker-script-included files to reproduce tar files. · ec1c75e0
      Rui Ueyama authored
      Previously, files added using INCLUDE directive weren't added
      to reproduce archives. In this patch, I defined a function to
      open a file and use that from Driver and LinkerScript.
      
      llvm-svn: 291413
      ec1c75e0
  3. Jan 07, 2017
  4. Jan 06, 2017
  5. Jan 05, 2017
    • Rafael Espindola's avatar
      Move code to the .cpp file. NFC. · bd3ab097
      Rafael Espindola authored
      llvm-svn: 291113
      bd3ab097
    • Rafael Espindola's avatar
      Detemplate SectionKey. NFC. · 7244708f
      Rafael Espindola authored
      llvm-svn: 291110
      7244708f
    • Rafael Espindola's avatar
      Change which input sections we concatenate · 33713983
      Rafael Espindola authored
      After Mark's patch I was wondering what was the rationale for the ELF
      spec requiring us to merge only sections with matching flags and
      types. I tried emailing
      https://groups.google.com/forum/#!forum/generic-abi, but looks like my
      emails are not being posted (the list is probably moderated). I
      emailed Cary Coutant instead.
      
      Cary pointed out that the section was a late addition and didn't got
      the scrutiny it deserved. Given that and the problems found by
      implementing the letter of the standard, I propose changing lld to
      merge all sections with the same name and issue errors if the types or
      some critical flags are different.
      
      This should allow an unmodified firefox linked with lld to run.
      
      This also merges some code with the linkerscript path.
      
      llvm-svn: 291107
      33713983
  6. Jan 04, 2017
  7. Dec 30, 2016
    • Saleem Abdulrasool's avatar
      COFF: replace a magic number and assert more · 1618a653
      Saleem Abdulrasool authored
      Assert that the size of the MD5 result is the same size as the signature
      field being populated.  Use the sizeof operator to determine the size of
      the field being written rather than hardcoding it to the magic number
      16.  NFC.
      
      llvm-svn: 290764
      1618a653
  8. Dec 25, 2016
  9. Dec 23, 2016
  10. Dec 22, 2016
Loading