Skip to content
  1. Nov 06, 2013
    • Rui Ueyama's avatar
      Undef a local macro after use. · e1c30a4e
      Rui Ueyama authored
      llvm-svn: 194128
      e1c30a4e
    • Rui Ueyama's avatar
      [PECOFF] Do not wrap the linker internal file with an archive file. · d213a9ed
      Rui Ueyama authored
      We wrapped the linker internal file with a virtual archive file, so that the
      linker internal file was linked only when it's actually used. This was to avoid
      __ImageBase being included to the resulting executable. __ImageBase used to
      occupy four bytes when emitted to executable.
      
      And then it turned out that the implementation of __ImageBase was wrong -- it
      shouldn't have been a regular atom but an absolute atom. Absolute atoms point
      to some memory location, but they don't occupy disk space themselves. So it
      wouldn't increase executable size (except the symbol table.) That means that
      it's OK to link the linker internal file unconditionally.
      
      So this patch does that, removing the wrapper archive file. Doing this
      simplifies the code.
      
      llvm-svn: 194127
      d213a9ed
    • Rui Ueyama's avatar
      [PECOFF] Ignore /disallowlib. · c13f43f4
      Rui Ueyama authored
      msvcrt.lib contains "/disallowlib" command line option in its .drectve section.
      I couldn't spot any documentation for the option. Ignore it for now so that we
      can link the library without error.
      
      llvm-svn: 194114
      c13f43f4
    • Rui Ueyama's avatar
      [PECOFF] Report error if there's unknown flag in .drectve · 7e77a294
      Rui Ueyama authored
      Errors in .drectve section were silently ignored. This patch fixes the issue.
      
      llvm-svn: 194110
      7e77a294
  2. Nov 05, 2013
  3. Nov 04, 2013
  4. Nov 02, 2013
  5. Nov 01, 2013
  6. Oct 31, 2013
  7. Oct 30, 2013
  8. Oct 29, 2013
  9. Oct 28, 2013
  10. Oct 27, 2013
    • Chandler Carruth's avatar
      Rather than rendering an argument to a std::string (which is primarily · 9204c831
      Chandler Carruth authored
      intended for debugging and diagnostic output), just inspect the spelling
      to check for specific prefixes in drectve section flags.
      
      In addition to being significantly cheaper and not relying on
      a debugging interface, this also avoids creating a temporary string and
      binding it to StringRef variable. We then went on to access it after the
      memory had been deallocated.
      
      This bug too was caught by ASan. I love ASan so much. =]
      
      llvm-svn: 193487
      9204c831
    • Chandler Carruth's avatar
      Use equals_lower() rather than creating a temporary string with lower(). · 50e5b329
      Chandler Carruth authored
      More important than any performance concerns, the code was dropping the
      temporary string on the floor after assigning it to a StringRef, and
      then used the StringRef later. Caught by running the LLD tests under
      ASan.
      
      llvm-svn: 193486
      50e5b329
Loading