Skip to content
  1. Nov 15, 2013
    • Rui Ueyama's avatar
      Select new undefined atom rather than old one if other conditions are the same. · b4dca7f0
      Rui Ueyama authored
      We can add multiple undefined atoms having the same name to the symbol table.
      If such atoms are added, the symbol table compares their canBeNull attributes,
      and select one having a stronger constraint. If their canBeNulls are the same,
      the choice is arbitrary. Currently it choose the existing one.
      
      This patch changes the preference, so that the symbol table choose the new one
      if the new atom has a greater canBeNull or a fallback atom. This shouldn't
      change the behavior except the case described below.
      
      A new undefined atom may have a new fallback atom attribute. By choosing the new
      atom, we can update the fallback atom during Core Linking. PE/COFF actually need
      that. For example, _lseek is an alias for __lseek on Windows. One of an object
      file in OLDNAMES.LIB has an undefined atom for _lseek with the fallback to
      __lseek. When the linker tries to resolve _read, it supposed to read the file
      from OLDNAMES.LIB and use the new fallback from the file. Currently LLD cannot
      handle such case because duplicate undefined atoms with the same attributes are
      ignored.
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D2161
      
      llvm-svn: 194777
      b4dca7f0
  2. Nov 13, 2013
  3. Aug 31, 2013
  4. Apr 04, 2013
    • Nick Kledzik's avatar
      This is my Driver refactoring patch. · c314b46e
      Nick Kledzik authored
      The major changes are:
      1) LinkerOptions has been merged into TargetInfo
      2) LinkerInvocation has been merged into Driver
      3) Drivers no longer convert arguments into an intermediate (core) argument 
         list, but instead create a TargetInfo object and call setter methods on 
         it. This is only how in-process linking would work. That is, you can 
         programmatically set up a TargetInfo object which controls the linking.
      4) Lots of tweaks to test suite to work with driver changes
      5) Add the DarwinDriver
      6) I heavily doxygen commented TargetInfo.h
      
      Things to do after this patch is committed:
      a) Consider renaming TargetInfo, given its new roll. 
      b) Consider pulling the list of input files out of TargetInfo. This will 
         enable in-process clients to create one TargetInfo the re-use it with 
         different input file lists.
      c) Work out a way for Drivers to format the warnings and error done in 
         core linking.
      
      llvm-svn: 178776
      c314b46e
  5. Jan 05, 2013
  6. Feb 22, 2012
Loading