Skip to content
  1. Jul 14, 2017
  2. Jul 13, 2017
    • Rui Ueyama's avatar
      Move feature-specific functions out of Strings.cpp. · 1e77ad14
      Rui Ueyama authored
      Functions declared in Strings.h should provide generic string operations
      for the linker, but some of them are too specific to some features. This
      patch moves them to the location where they are used.
      
      llvm-svn: 307949
      1e77ad14
    • Rafael Espindola's avatar
      Refactor gdb index creation. · 300b3867
      Rafael Espindola authored
      I have a patch to let DwarfContext defer to lld for getting section
      contents and relocations.
      
      That is a pretty big performance improvement.
      
      This is just a refactoring to make that easier to do.
      
      This change makes the *creation* of gdb index a dedicated step and
      makes that templated. That is so that we can uses Elf_Rel in the code.
      
      llvm-svn: 307867
      300b3867
  3. Jul 12, 2017
  4. Jul 11, 2017
  5. Jul 10, 2017
  6. Jul 07, 2017
    • Peter Smith's avatar
      [ELF] Add call to assignAddresses() before createThunks() [NFC] · 96f813d1
      Peter Smith authored
      In preparation for the addition of rangeThunks() calculate the addresses
      of all the inputSections so that ThunkSections can be inserted at the right
      place.
      
      Differential Revision: https://reviews.llvm.org/D34688
      
      llvm-svn: 307373
      96f813d1
    • George Rimar's avatar
      [ELF] - Fail the link if something happens on DWARF parsing stage of -gdb-index building · 1b51b7fc
      George Rimar authored
      This is relative to PR33173,
      
      Previously if something wrong happened on DWARF parsers side during parsing
      object for building gdb index (like was in PR: unsupported relocation) 
      then LLD continued and finished the link. DWARF parsers sure showed error
      message on their side, but that is all.
      
      Patch changes behavior to fail the link in this case and show more
      detailed message.
      
      Differential revision: https://reviews.llvm.org/D34814
      
      llvm-svn: 307370
      1b51b7fc
    • Peter Smith's avatar
      [ELF] Extract temporary state used in assignAddresses() · 906e9a18
      Peter Smith authored
      The assignAddresses() function accumulates state in the LinkerScript that
      prevents it from being called multiple times. This change moves the state
      into a separate structure AddressState that is created at the start of the
      function and disposed of at the end.
      
      CurAddressState is used rather than passing a reference to the state as a
      parameter to the functions used by assignAddresses(). This is because the
      getSymbolValue function needs to be executed in the context of AddressState
      but it is stored in ScriptParser when AddressState is not available.
      
      The AddressState is also used in a limited context by processCommands()
      
      Differential Revision: https://reviews.llvm.org/D34345
      
      llvm-svn: 307367
      906e9a18
    • George Rimar's avatar
      [ELF] - Handle symbols with default version early. · 85e9216e
      George Rimar authored
      This fixes last testcase provided in PR28414.
      In short issue is next: when we had X@@Version symbol in object A,
      we did not resolve it to X early. Then when in another object B
      we had reference to undefined X, symbol X from archive was fetched.
      Since both archive and object A contains another symbol Z, duplicate
      symbol definition was triggered as a result.
      
      Correct behavior is to use X@@Version from object A instead and do not fetch
      any symbols from archive.
      
      Differential revision: https://reviews.llvm.org/D35059
      
      llvm-svn: 307364
      85e9216e
  7. Jul 06, 2017
  8. Jul 05, 2017
  9. Jul 04, 2017
Loading