You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Cary Coutant 32364e50a7 gold/ 13 years ago
..
po Regenerate. 14 years ago
testsuite gold/ 13 years ago
ChangeLog gold/ 13 years ago
Makefile.am 2013-04-26 Geoff Pike <gpike@chromium.org> 13 years ago
Makefile.in gold/ 13 years ago
NEWS Add copyright notices 13 years ago
README * README: Update coding style link. 13 years ago
TODO * TODO: New file. 18 years ago
aclocal.m4 * configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS. 14 years ago
archive.cc 2013-03-29 Sriraman Tallam <tmsriram@google.com> 13 years ago
archive.h PR gold/12163 15 years ago
arm-reloc-property.cc Fix typos in gold. 16 years ago
arm-reloc-property.h Fix typos in gold. 16 years ago
arm-reloc.def Fix typos in gold. 16 years ago
arm.cc * target-reloc.h (relocate_section): If the reloc offset is out of 13 years ago
attributes.cc * archive.cc: Formatting fixes: Remove whitespace between 16 years ago
attributes.h Fix typos in gold. 16 years ago
binary.cc * binary.cc (Binary_to_elf::sized_convert): Don't crash if the 15 years ago
binary.h Add support for --format binary for input files. 18 years ago
common.cc * arm.cc (Arm_relocate_functions::abs16): Remove unused typedef. 14 years ago
common.h * gold.cc (queue_middle_gc_tasks): Use a separate blocker for each 16 years ago
compressed_output.cc * compressed_output.cc (zlib_decompress): Fix signature in 16 years ago
compressed_output.h * compressed_output.cc (zlib_decompress): New function. 16 years ago
config.in Fix mingw gold build with plugins enabled 13 years ago
configure gold/ 13 years ago
configure.ac gold/ 13 years ago
configure.tgt bfd/ 13 years ago
copy-relocs.cc * object.h (Relobj::local_symbol_value): New function. 15 years ago
copy-relocs.h * copy-relocs.cc (Copy_relocs::copy_reloc): Call make_copy_reloc 15 years ago
cref.cc Fix typos in gold. 16 years ago
cref.h PR 10980 16 years ago
debug.h * debug.h (DEBUG_INCREMENTAL): New flag. 16 years ago
defstd.cc PR 10893 16 years ago
defstd.h Update copyright years. Update language files. 18 years ago
descriptors.cc * descriptors.cc (Descriptors::close_all): New function. 13 years ago
descriptors.h * descriptors.cc (Descriptors::close_all): New function. 13 years ago
dirsearch.cc 2011-11-17 Sterling Augustine <saugustine@google.com> 15 years ago
dirsearch.h 2011-11-17 Sterling Augustine <saugustine@google.com> 15 years ago
dwarf_reader.cc Add dwp support for v2 DWARF package file format. 13 years ago
dwarf_reader.h Add dwp support for v2 DWARF package file format. 13 years ago
dwp.cc * dwp.cc (Dwp_output_file::add_contribution): Avoid signed/unsigned 13 years ago
dwp.h gold/ 14 years ago
dynobj.cc * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call 14 years ago
dynobj.h 2012-03-21 Cary Coutant <ccoutant@google.com> 14 years ago
ehframe.cc * ehframe.h (Post_fdes) Make it a vector of Post_fde rather than 13 years ago
ehframe.h * ehframe.h (Post_fdes) Make it a vector of Post_fde rather than 13 years ago
errors.cc * common.cc (Symbol_table::do_allocate_commons_list): Call 15 years ago
errors.h * common.cc (Symbol_table::do_allocate_commons_list): Call 15 years ago
expression.cc * object.h (Relobj::local_symbol_value): New function. 15 years ago
ffsll.c * ffsll.c (ffsll): Correct implementation. 17 years ago
fileread.cc gold/ 14 years ago
fileread.h gold/ 14 years ago
freebsd.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 14 years ago
ftruncate.c Add copyright notices 13 years ago
gc.cc 2009-01-20 Sriraman Tallam <tmsriram@google.com> 17 years ago
gc.h * gc.h (gc_process_relocs): Don't look through function descriptors. 13 years ago
gdb-index.cc Add dwp support for v2 DWARF package file format. 13 years ago
gdb-index.h 2012-09-10 Sterling Augustine <saugustine@google.com> 14 years ago
gold-threads.cc Fix typos in gold. 16 years ago
gold-threads.h 2010-02-22 Doug Kwan <dougkwan@google.com> 16 years ago
gold.cc 2013-04-26 Geoff Pike <gpike@chromium.org> 13 years ago
gold.h gold/ 14 years ago
i386.cc * target-reloc.h (relocate_section): If the reloc offset is out of 13 years ago
icf.cc * gc.h (gc_process_relocs): Don't look through function descriptors. 13 years ago
icf.h 2011-02-02 Sriraman Tallam <tmsriram@google.com> 15 years ago
incremental-dump.cc * incremental-dump.cc (find_input_containing_global): Replace 14 years ago
incremental.cc gold/ 14 years ago
incremental.h PR gold/14570 14 years ago
int_encoding.cc * int_encoding.cc (read_unsigned_LEB_128): Replaced with inline 14 years ago
int_encoding.h * int_encoding.cc (read_unsigned_LEB_128): Replaced with inline 14 years ago
layout.cc 2013-06-05 Alexander Ivchenko <alexander.ivchenko@intel.com> 13 years ago
layout.h 2013-04-26 Geoff Pike <gpike@chromium.org> 13 years ago
main.cc 2012-03-21 Cary Coutant <ccoutant@google.com> 14 years ago
mapfile.cc * incremental-dump.cc (dump_incremental_inputs): Print dynamic reloc 15 years ago
mapfile.h * incremental-dump.cc (dump_incremental_inputs): Print dynamic reloc 15 years ago
merge.cc * merge.cc (Output_merge_string::do_add_input_section): Correct 13 years ago
merge.h 2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com> 13 years ago
mremap.c * configure.ac: Check for sys/mman.h and mmap. Check for mremap 15 years ago
nacl.cc gold/ 14 years ago
nacl.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 14 years ago
object.cc gold/ 13 years ago
object.h gold/ 13 years ago
options.cc gold/ 13 years ago
options.h 2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com> 13 years ago
output.cc 2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com> 13 years ago
output.h 2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com> 13 years ago
parameters.cc * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 14 years ago
parameters.h * gold.cc: Include timer.h. 15 years ago
plugin.cc * descriptors.cc (Descriptors::close_all): New function. 13 years ago
plugin.h 2012-03-21 Cary Coutant <ccoutant@google.com> 14 years ago
powerpc.cc * target-reloc.h (relocate_section): If the reloc offset is out of 13 years ago
pread.c * pread.c: Include stdio.h. 17 years ago
readsyms.cc * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info): 14 years ago
readsyms.h * archive.cc (Archive::include_member): Adjust call to 15 years ago
reduced_debug_output.cc elfcpp/ 14 years ago
reduced_debug_output.h Revert -Wshadow changes, all changes from: 17 years ago
reloc-types.h * copy-relocs.cc: New file. 18 years ago
reloc.cc * object.h (Sized_relobj_file::emit_relocs): Delete. 14 years ago
reloc.h * arm.cc (Target_arm::do_is_defined_by_abi): Make sym a const 14 years ago
resolve.cc gold/ 13 years ago
script-c.h * README: Remove claim that MEMORY is not supported. 16 years ago
script-sections.cc gold/ 13 years ago
script-sections.h PR ld/14265 14 years ago
script.cc 2011-11-17 Sterling Augustine <saugustine@google.com> 15 years ago
script.h PR gold/13023 15 years ago
sparc.cc * target-reloc.h (relocate_section): If the reloc offset is out of 13 years ago
stringpool.cc gold/ 13 years ago
stringpool.h 2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com> 13 years ago
symtab.cc gold/ 13 years ago
symtab.h gold/ 13 years ago
system.h gold/ 14 years ago
target-reloc.h gold/ 13 years ago
target-select.cc * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 14 years ago
target-select.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 14 years ago
target.cc * target.h (Target::plt_fde_location, do_plt_fde_location): Declare. 13 years ago
target.h * gold.cc (queue_middle_tasks): Move detect_odr_violations.. 13 years ago
tilegx.cc * target-reloc.h (relocate_section): If the reloc offset is out of 13 years ago
timer.cc * timer.cc: #include <unistd.h>. 14 years ago
timer.h * gold.cc: Include timer.h. 15 years ago
tls.h Update copyright years. Update language files. 18 years ago
token.h * dirsearch.cc (Dirsearch::initialize): Add all blockers before 16 years ago
version.cc Update gold copyright year to 2013 13 years ago
workqueue-internal.h * workqueue-internal.h (Workqueue_threader::should_cancel_thread): 15 years ago
workqueue-threads.cc * workqueue-internal.h (Workqueue_threader::should_cancel_thread): 15 years ago
workqueue.cc * workqueue-internal.h (Workqueue_threader::should_cancel_thread): 15 years ago
workqueue.h * workqueue-internal.h (Workqueue_threader::should_cancel_thread): 15 years ago
x86_64.cc * target-reloc.h (relocate_section): If the reloc offset is out of 13 years ago
yyscript.y 2011-11-11 Sterling Augustine <saugustine@google.com> 15 years ago

README

gold is an ELF linker.  It is intended to have complete support for
ELF and to run as fast as possible on modern systems. For normal use
it is a drop-in replacement for the older GNU linker.

gold is part of the GNU binutils. See ../binutils/README for more
general notes, including where to send bug reports.

gold was originally developed at Google, and was contributed to the
Free Software Foundation in March 2008. At Google it was designed by
Ian Lance Taylor, with major contributions by Cary Coutant, Craig
Silverstein, and Andrew Chatham.

The existing GNU linker manual is intended to be accurate
documentation for features which gold supports. gold supports most of
the features of the GNU linker for ELF targets. Notable
omissions--features of the GNU linker not currently supported in
gold--are:
* MRI compatible linker scripts
* cross-reference reports (--cref)
* various other minor options


Notes on the code
=================

These are some notes which may be helpful to people working on the
source code of gold itself.

gold is written in C++. It is a GNU program, and therefore follows
the GNU formatting standards as modified for C++. Source documents in
order of decreasing precedence:
http://www.gnu.org/prep/standards/
http://gcc.gnu.org/onlinedocs/libstdc++/manual/source_code_style.html
http://www.zembu.com/eng/procs/c++style.html

The linker is intended to have complete support for cross-compilation,
while still supporting the normal case of native linking as fast as
possible. In order to do this, many classes are actually templates
whose parameter is the ELF file class (e.g., 32 bits or 64 bits). The
C++ code is the same, but we don't pay the execution time cost of
always using 64-bit integers if the target is 32 bits. Many of these
class templates also have an endianness parameter: true for
big-endian, false for little-endian.

The linker is multi-threaded. The Task class represents a single unit
of work. Task objects are stored on a single Workqueue object. Tasks
communicate via Task_token objects. Task_token objects are only
manipulated while holding the master Workqueue lock. Relatively few
mutexes are used.


Build requirements
==================

The gold source code uses templates heavily. Building it requires a
recent version of g++. g++ 4.0.3 and 4.1.3 are known to work. g++
3.2, 3.4.3, and 4.1.2 are known to fail.

The linker script parser uses features which are only in newer
versions of bison. bison 2.3 is known to work. bison 1.26 is known
to fail. If you are building gold from an official binutils release,
the bison output should already be included.


Copyright (C) 2012 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.