Skip to content
  1. Nov 06, 2013
    • Rui Ueyama's avatar
      [PECOFF] Do not expose _noDefaultLibs. No functionality change. · 589276cd
      Rui Ueyama authored
      llvm-svn: 194130
      589276cd
    • Rui Ueyama's avatar
      [PECOFF] Do not add the same library to the input graph more than once. · 249c7b33
      Rui Ueyama authored
      /defaultlib options can be specified implicitly via the .drectve section, and
      it's pretty common that multiple object files add the same library, such as
      user32.lib, to the input. We shouldn't add the same library multiple times.
      
      llvm-svn: 194129
      249c7b33
    • 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
    • Rui Ueyama's avatar
      [MachO] Fix uninitialized field bug found on Windows. · d19d0bc5
      Rui Ueyama authored
      n_desc field in MachO string table was not initialized. On Unix,
      test/darwin/hello-world.objtxt did not fail because I think an nlist object
      is always allocated to a fresh heap initialized with zeros. On Windows,
      uninitialized fields are filled with 0xCC when compiled with /GZ. Because
      of that the test was failing on Windows.
      
      llvm-svn: 193909
      d19d0bc5
  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
  11. Oct 26, 2013
Loading