URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gold/] [README] - Rev 358
Go to most recent revision | Compare with Previous | Blame | View Log
gold is an ELF linker. It is intended to have complete support forELF and to run as fast as possible on modern systems. For normal useit is a drop-in replacement for the older GNU linker.gold is part of the GNU binutils. See ../binutils/README for moregeneral notes, including where to send bug reports.gold was originally developed at Google, and was contributed to theFree Software Foundation in March 2008. At Google it was designed byIan Lance Taylor, with major contributions by Cary Coutant, CraigSilverstein, and Andrew Chatham.The existing GNU linker manual is intended to be accuratedocumentation for features which gold supports. gold supports most ofthe features of the GNU linker for ELF targets. Notableomissions--features of the GNU linker not currently supported ingold--are:* MEMORY regions in linker scripts* MRI compatible linker scripts* cross-reference reports (--cref)* various other minor optionsNotes on the code=================These are some notes which may be helpful to people working on thesource code of gold itself.gold is written in C++. It is a GNU program, and therefore followsthe GNU formatting standards as modified for C++. Source documents inorder of decreasing precedence:http://www.gnu.org/prep/standards/http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/C++STYLEhttp://www.zembu.com/eng/procs/c++style.htmlThe linker is intended to have complete support for cross-compilation,while still supporting the normal case of native linking as fast aspossible. In order to do this, many classes are actually templateswhose parameter is the ELF file class (e.g., 32 bits or 64 bits). TheC++ code is the same, but we don't pay the execution time cost ofalways using 64-bit integers if the target is 32 bits. Many of theseclass templates also have an endianness parameter: true forbig-endian, false for little-endian.The linker is multi-threaded. The Task class represents a single unitof work. Task objects are stored on a single Workqueue object. Taskscommunicate via Task_token objects. Task_token objects are onlymanipulated while holding the master Workqueue lock. Relatively fewmutexes are used.Build requirements==================The gold source code uses templates heavily. Building it requires arecent version of g++. g++ 4.0.3 is known to work. g++ 3.2 and g++3.4.3 are known to fail.The linker script parser uses features which are only in newerversions of bison. bison 2.3 is known to work. bison 1.26 is knownto fail. If you are building gold from an official binutils release,the bison output should already be included.
Go to most recent revision | Compare with Previous | Blame | View Log
