Skip to content
  1. Oct 11, 2017
  2. Oct 10, 2017
    • Rafael Espindola's avatar
      Don't create a dummy __tls_get_addr. · 97c57b9e
      Rafael Espindola authored
      We just don't need one with the current setup.
      
      We only error on undefined references that are used by some
      relocation.
      
      If we managed to relax all uses of __tls_get_addr, no relocation uses
      it and we don't produce an error.
      
      This is less code and fixes the case were we fail to relax. Before we
      would produce a broken output, but now we produce an error.
      
      llvm-svn: 315334
      97c57b9e
    • James Henderson's avatar
      [ELF] Set Dot initially to --image-base value when using linker scripts · b5ca92ef
      James Henderson authored
      When parsing linker scripts, LLD previously started with a '.' value of 0,
      regardless of the internal default image base for the target, and regardless of
      switches such as --image-base. It seems reasonable to use a different image base
      value when using linker scripts and --image-base is specified, since otherwise the
      switch has no effect. This change does this, as well as removing unnecessary
      initialisation of Dot where it is not used.
      
      The default image base should not be used when processing linker
      scripts, because this will change the behaviour for existing linker script users,
      and potentially result in invalid output being produced, as a subsequent assignment
      to Dot could move the location counter backwards. Instead, we maintain the existing
      behaviour of starting from 0 if --image-base is not specified.
      
      Reviewers: ruiu
      
      Differential Revision: https://reviews.llvm.org/D38360
      
      llvm-svn: 315293
      b5ca92ef
    • Andrew Ng's avatar
      [LLD] Fix findOrphanPos to consistently ignore "dead" OutputSection's · 4d54a4b4
      Andrew Ng authored
      When findOrphanPos does the reverse search to find the OutputSection
      preceding the orphan's insertion point, look for a live OutputSection
      and ignore "dead" OutputSection's. This matches the behaviour of the
      forward search performed earlier in this function.
      
      Added test which without the above fix fails as a result of an orphan
      executable section being incorrectly placed in a non-executable segment.
      
      Differential Review: https://reviews.llvm.org/D38690
      
      llvm-svn: 315292
      4d54a4b4
    • George Rimar's avatar
      [ELF] - Improve "has non-ABS reloc" error. · 7e9c5610
      George Rimar authored
      It did not contain information about relocation type and symbol.
      
      Differential revision: https://reviews.llvm.org/D38623
      
      llvm-svn: 315280
      7e9c5610
    • Martin Storsjö's avatar
      [COFF] Don't error out on relocations to discarded sections in .eh_frame · 67dd3415
      Martin Storsjö authored
      This allows linking code with dwarf exception handling.
      
      Differential Revision: https://reviews.llvm.org/D38681
      
      llvm-svn: 315273
      67dd3415
    • Rui Ueyama's avatar
      Make a local variable name shorter. NFC. · c04a91aa
      Rui Ueyama authored
      llvm-svn: 315271
      c04a91aa
Loading