Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use LTO_CODEGEN_PIC_MODEL_DYNAMIC for PIE. This requirest a git version of | Rafael Espindola | 2012-06-13 | 1 | -0/+2 | |
| | | | | | | | | gold to work. Since the enum value LDPO_PIE has just been added to plugin-api.h, use a numeric constant for now so that we don't require an unreleased version of gold to build. llvm-svn: 158402 | |||||
* | drop unneeded config.h includes | Dylan Noblesmith | 2011-12-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 147197 | |||||
* | Point to libLTO with -L/PATH/ -lLTO so that it is found in the install | Rafael Espindola | 2011-11-23 | 1 | -1/+1 | |
| | | | | | | | directory. Patch by Markus Trippelsdorf. llvm-svn: 145095 | |||||
* | Use absolute path to exportsfile in gold plugin CMake build. | Peter Collingbourne | 2011-11-05 | 1 | -1/+2 | |
| | | | | | | (Ninja generator requirement.) llvm-svn: 143783 | |||||
* | build: Tidy up a bunch of tool Makefiles, and simplify where possible using the | Daniel Dunbar | 2011-10-18 | 1 | -10/+8 | |
| | | | | | | new all-targets pseudo-component. llvm-svn: 142401 | |||||
* | use 64-bit types instead of off_t/size_t to avoid the issue when | Ivan Krasin | 2011-09-15 | 1 | -1/+1 | |
| | | | | | | | | gold plugin is built with Large File Support (sizeof(off_t) == 64 on i686) and the rest of LLVM is built w/o Large File Support (sizeof(off_t) == 32 on i686) which corrupts the stack. llvm-svn: 139873 | |||||
* | gold plugin: don't report error on non-bitcode (e.g. ELF) files. | Ivan Krasin | 2011-09-12 | 1 | -9/+25 | |
| | | | | llvm-svn: 139544 | |||||
* | gold plugin: report errors occured in lto_module_create_from_* | Ivan Krasin | 2011-09-09 | 1 | -1/+6 | |
| | | | | llvm-svn: 139340 | |||||
* | Don't try to dereference syms[0] on an empty vector. Reported by Todd Jackson | Nick Lewycky | 2011-07-26 | 1 | -0/+2 | |
| | | | | | | and Jeffrey Bosboom! llvm-svn: 136066 | |||||
* | Also remove -lLTO which should have been in r132349. I failed to apply this | Nick Lewycky | 2011-05-31 | 1 | -1/+1 | |
| | | | | | | from David Meyer's patch! llvm-svn: 132352 | |||||
* | Make the gold plugin build on Cygwin as well as Linux. Patch by David Meyer! | Nick Lewycky | 2011-05-31 | 1 | -1/+1 | |
| | | | | llvm-svn: 132349 | |||||
* | CMake builds gold by default since revision 127466. This is | Oscar Fuentes | 2011-05-12 | 1 | -2/+4 | |
| | | | | | | | | | inconsistent with autoconf, which by default set BINUTILS_INCDIR to empty and exclude gold from target list. Based on a patch by Haitao Li! llvm-svn: 131229 | |||||
* | Remove an unused variable. | Duncan Sands | 2011-05-04 | 1 | -1/+0 | |
| | | | | llvm-svn: 130860 | |||||
* | If present, use gold's support for getting a file view. This prevents having | Rafael Espindola | 2011-04-07 | 1 | -1/+12 | |
| | | | | | | to map the file both in the linker and in the plugin. llvm-svn: 129109 | |||||
* | Add a lto_codegen_compile_to_file to avoid producing a file, reading it to | Rafael Espindola | 2011-03-22 | 1 | -30/+2 | |
| | | | | | | memory and writing it back to disk. llvm-svn: 128108 | |||||
* | Add support in the LTO library for loading an object from the middle | Rafael Espindola | 2011-03-17 | 1 | -37/+4 | |
| | | | | | | of an file. llvm-svn: 127781 | |||||
* | Force re-linking of LLVMgold.so when its exports file changes. | Oscar Fuentes | 2011-03-11 | 1 | -0/+6 | |
| | | | | llvm-svn: 127473 | |||||
* | Fix processing of gold.exports. | Oscar Fuentes | 2011-03-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 127471 | |||||
* | Add LTO and gold plugin to the CMake build. Linux-only, support for | Oscar Fuentes | 2011-03-11 | 1 | -0/+37 | |
| | | | | | | | | other systems pending. PR9456. llvm-svn: 127466 | |||||
* | Gold now rescans archives as needed, so the pass-through options are not | Rafael Espindola | 2011-02-27 | 1 | -22/+0 | |
| | | | | | | necessary anymore. llvm-svn: 126580 | |||||
* | bfd was fixed, remove the work around. | Rafael Espindola | 2011-02-27 | 1 | -12/+1 | |
| | | | | llvm-svn: 126579 | |||||
* | LTO uses MC now. | Rafael Espindola | 2011-02-26 | 1 | -24/+0 | |
| | | | | llvm-svn: 126546 | |||||
* | Dispose modules early and only create codegen when the plugin is being | Rafael Espindola | 2011-02-20 | 1 | -5/+19 | |
| | | | | | | used by the linker and not by nm or ar. llvm-svn: 126089 | |||||
* | Add modules to codegen as soon as possible. This reduces the link time | Rafael Espindola | 2011-02-19 | 1 | -30/+24 | |
| | | | | | | of libxul from 12m31.084s to 7m1.359s. llvm-svn: 126052 | |||||
* | Add a debug obj-path option to make it easy to keep the .o produce by LTO. | Rafael Espindola | 2011-02-16 | 1 | -14/+24 | |
| | | | | llvm-svn: 125663 | |||||
* | Switch llvm to using comdats. For now always use groups with a single | Rafael Espindola | 2011-02-14 | 1 | -2/+2 | |
| | | | | | | section. llvm-svn: 125526 | |||||
* | Don't open the file again in the gold plugin. To be able to do this, update | Rafael Espindola | 2011-02-08 | 1 | -7/+23 | |
| | | | | | | MemoryBuffer::getOpenFile to not close the file descriptor. llvm-svn: 125128 | |||||
* | gold: MinGW fix. | Michael J. Spencer | 2011-01-20 | 1 | -0/+7 | |
| | | | | llvm-svn: 123886 | |||||
* | Now to chant the magical incantation that will exorcise the System library | Charles Davis | 2010-11-29 | 1 | -1/+1 | |
| | | | | | | | | from LLVM forever: grep -lR "llvm/System" * | grep -v .svn | xargs sed -ie 's#llvm/System#llvm/Support#g' llvm-svn: 120314 | |||||
* | I swear I did a make clean and make before committing all this... | Michael J. Spencer | 2010-11-29 | 1 | -3/+3 | |
| | | | | llvm-svn: 120304 | |||||
* | Move tool_output_file into its own file. | Dan Gohman | 2010-10-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 115973 | |||||
* | Don't build redundant libLLVMgold.a. | NAKAMURA Takumi | 2010-09-10 | 1 | -1/+0 | |
| | | | | | | | Building archive would be executed due to definition of BUILD_ARCHIVE, even if BUILD_ARCHIVE = "0". llvm-svn: 113578 | |||||
* | Fix compile errors. | Nick Lewycky | 2010-09-02 | 1 | -4/+4 | |
| | | | | llvm-svn: 112808 | |||||
* | Convert tools to use tool_output_file, and introduce error | Dan Gohman | 2010-08-20 | 1 | -2/+9 | |
| | | | | | | checking to places which previously lacked it. llvm-svn: 111651 | |||||
* | Make it possible to set the cpu used for codegen. | Rafael Espindola | 2010-08-11 | 1 | -0/+6 | |
| | | | | llvm-svn: 110759 | |||||
* | Make it possible to set the flags passed to the assembler. | Rafael Espindola | 2010-08-10 | 1 | -0/+12 | |
| | | | | | | Nick, please review. llvm-svn: 110705 | |||||
* | Fix silly bug. | Rafael Espindola | 2010-08-10 | 1 | -1/+1 | |
| | | | | llvm-svn: 110684 | |||||
* | Make it possible to set the target triple and expose that with an option in the | Rafael Espindola | 2010-08-09 | 1 | -0/+7 | |
| | | | | | | gold plugin. llvm-svn: 110604 | |||||
* | s/libLLVMgold/LLVMgold/g | Rafael Espindola | 2010-08-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 110552 | |||||
* | Remove variables that are written by not read. | Duncan Sands | 2010-06-29 | 1 | -6/+0 | |
| | | | | llvm-svn: 107126 | |||||
* | Add an extra-library-path option to the plugin. This is used to support | Rafael Espindola | 2010-06-23 | 1 | -0/+13 | |
| | | | | | | | | | | | | having a library both as bitcode and native code. We want to use the bitcode first, but if codegen produces new undefined references we have to use the native code to satisfy those references. Gold has no notion of bitcode and native search directories, so instead it has an API where the plugin can instruct it to look for the libraries it is passing to it. This patch uses that API. llvm-svn: 106674 | |||||
* | add_input_file and add_input_library now take const arguments, remove the | Rafael Espindola | 2010-06-21 | 1 | -2/+2 | |
| | | | | | | const_cast. llvm-svn: 106410 | |||||
* | Add a pass-through option to the plugin. The use case for this option is to | Rafael Espindola | 2010-06-18 | 1 | -0/+26 | |
| | | | | | | | | ask the linker to take another look into some library or object. The case when one might want to do this is when codegen introduces a new undefined reference. The canonical example is libgcc. llvm-svn: 106303 | |||||
* | Don't produce output only if *all* files are unused. | Rafael Espindola | 2010-06-14 | 1 | -7/+7 | |
| | | | | llvm-svn: 105962 | |||||
* | Plug a leak in the non-error case by removing one level of indirection. | Nick Lewycky | 2010-06-07 | 1 | -6/+4 | |
| | | | | llvm-svn: 105556 | |||||
* | Misc cleanups to the gold plugin. | Rafael Espindola | 2010-06-07 | 1 | -15/+16 | |
| | | | | llvm-svn: 105534 | |||||
* | Add a emit-llvm option to the plugin and make the path argument to ↵ | Rafael Espindola | 2010-06-03 | 1 | -2/+23 | |
| | | | | | | also-emit-llvm optional. llvm-svn: 105414 | |||||
* | Perfer !string.empty() over string != "". | Nick Lewycky | 2010-06-03 | 1 | -2/+2 | |
| | | | | llvm-svn: 105397 | |||||
* | Whitespace cleanup. | Nick Lewycky | 2010-06-03 | 1 | -5/+5 | |
| | | | | llvm-svn: 105395 | |||||
* | Don't preserve all symbols in a .so and instead trust gold to know what is | Rafael Espindola | 2010-06-03 | 1 | -12/+10 | |
| | | | | | | | needed. The result is that now we are able to drop unnecessary symbol from shared libraries. llvm-svn: 105389 |