summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gold
Commit message (Collapse)AuthorAgeFilesLines
...
* Use LTO_CODEGEN_PIC_MODEL_DYNAMIC for PIE. This requirest a git version ofRafael Espindola2012-06-131-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 includesDylan Noblesmith2011-12-221-1/+1
| | | | llvm-svn: 147197
* Point to libLTO with -L/PATH/ -lLTO so that it is found in the installRafael Espindola2011-11-231-1/+1
| | | | | | | directory. Patch by Markus Trippelsdorf. llvm-svn: 145095
* Use absolute path to exportsfile in gold plugin CMake build.Peter Collingbourne2011-11-051-1/+2
| | | | | | (Ninja generator requirement.) llvm-svn: 143783
* build: Tidy up a bunch of tool Makefiles, and simplify where possible using theDaniel Dunbar2011-10-181-10/+8
| | | | | | new all-targets pseudo-component. llvm-svn: 142401
* use 64-bit types instead of off_t/size_t to avoid the issue whenIvan Krasin2011-09-151-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 Krasin2011-09-121-9/+25
| | | | llvm-svn: 139544
* gold plugin: report errors occured in lto_module_create_from_*Ivan Krasin2011-09-091-1/+6
| | | | llvm-svn: 139340
* Don't try to dereference syms[0] on an empty vector. Reported by Todd JacksonNick Lewycky2011-07-261-0/+2
| | | | | | and Jeffrey Bosboom! llvm-svn: 136066
* Also remove -lLTO which should have been in r132349. I failed to apply thisNick Lewycky2011-05-311-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 Lewycky2011-05-311-1/+1
| | | | llvm-svn: 132349
* CMake builds gold by default since revision 127466. This isOscar Fuentes2011-05-121-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 Sands2011-05-041-1/+0
| | | | llvm-svn: 130860
* If present, use gold's support for getting a file view. This prevents havingRafael Espindola2011-04-071-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 toRafael Espindola2011-03-221-30/+2
| | | | | | memory and writing it back to disk. llvm-svn: 128108
* Add support in the LTO library for loading an object from the middleRafael Espindola2011-03-171-37/+4
| | | | | | of an file. llvm-svn: 127781
* Force re-linking of LLVMgold.so when its exports file changes.Oscar Fuentes2011-03-111-0/+6
| | | | llvm-svn: 127473
* Fix processing of gold.exports.Oscar Fuentes2011-03-111-1/+1
| | | | llvm-svn: 127471
* Add LTO and gold plugin to the CMake build. Linux-only, support forOscar Fuentes2011-03-111-0/+37
| | | | | | | | other systems pending. PR9456. llvm-svn: 127466
* Gold now rescans archives as needed, so the pass-through options are notRafael Espindola2011-02-271-22/+0
| | | | | | necessary anymore. llvm-svn: 126580
* bfd was fixed, remove the work around.Rafael Espindola2011-02-271-12/+1
| | | | llvm-svn: 126579
* LTO uses MC now.Rafael Espindola2011-02-261-24/+0
| | | | llvm-svn: 126546
* Dispose modules early and only create codegen when the plugin is beingRafael Espindola2011-02-201-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 timeRafael Espindola2011-02-191-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 Espindola2011-02-161-14/+24
| | | | llvm-svn: 125663
* Switch llvm to using comdats. For now always use groups with a singleRafael Espindola2011-02-141-2/+2
| | | | | | section. llvm-svn: 125526
* Don't open the file again in the gold plugin. To be able to do this, updateRafael Espindola2011-02-081-7/+23
| | | | | | MemoryBuffer::getOpenFile to not close the file descriptor. llvm-svn: 125128
* gold: MinGW fix.Michael J. Spencer2011-01-201-0/+7
| | | | llvm-svn: 123886
* Now to chant the magical incantation that will exorcise the System libraryCharles Davis2010-11-291-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. Spencer2010-11-291-3/+3
| | | | llvm-svn: 120304
* Move tool_output_file into its own file.Dan Gohman2010-10-071-1/+1
| | | | llvm-svn: 115973
* Don't build redundant libLLVMgold.a.NAKAMURA Takumi2010-09-101-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 Lewycky2010-09-021-4/+4
| | | | llvm-svn: 112808
* Convert tools to use tool_output_file, and introduce errorDan Gohman2010-08-201-2/+9
| | | | | | checking to places which previously lacked it. llvm-svn: 111651
* Make it possible to set the cpu used for codegen.Rafael Espindola2010-08-111-0/+6
| | | | llvm-svn: 110759
* Make it possible to set the flags passed to the assembler.Rafael Espindola2010-08-101-0/+12
| | | | | | Nick, please review. llvm-svn: 110705
* Fix silly bug.Rafael Espindola2010-08-101-1/+1
| | | | llvm-svn: 110684
* Make it possible to set the target triple and expose that with an option in theRafael Espindola2010-08-091-0/+7
| | | | | | gold plugin. llvm-svn: 110604
* s/libLLVMgold/LLVMgold/gRafael Espindola2010-08-081-2/+2
| | | | llvm-svn: 110552
* Remove variables that are written by not read.Duncan Sands2010-06-291-6/+0
| | | | llvm-svn: 107126
* Add an extra-library-path option to the plugin. This is used to supportRafael Espindola2010-06-231-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 theRafael Espindola2010-06-211-2/+2
| | | | | | const_cast. llvm-svn: 106410
* Add a pass-through option to the plugin. The use case for this option is toRafael Espindola2010-06-181-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 Espindola2010-06-141-7/+7
| | | | llvm-svn: 105962
* Plug a leak in the non-error case by removing one level of indirection.Nick Lewycky2010-06-071-6/+4
| | | | llvm-svn: 105556
* Misc cleanups to the gold plugin.Rafael Espindola2010-06-071-15/+16
| | | | llvm-svn: 105534
* Add a emit-llvm option to the plugin and make the path argument to ↵Rafael Espindola2010-06-031-2/+23
| | | | | | also-emit-llvm optional. llvm-svn: 105414
* Perfer !string.empty() over string != "".Nick Lewycky2010-06-031-2/+2
| | | | llvm-svn: 105397
* Whitespace cleanup.Nick Lewycky2010-06-031-5/+5
| | | | llvm-svn: 105395
* Don't preserve all symbols in a .so and instead trust gold to know what isRafael Espindola2010-06-031-12/+10
| | | | | | | needed. The result is that now we are able to drop unnecessary symbol from shared libraries. llvm-svn: 105389
OpenPOWER on IntegriCloud