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.
 
 
 
 
 
 
H.J. Lu 221fd5d598 Update copyright year to 2014 13 years ago
..
po Regenerate. 14 years ago
testsuite Use in-tree assembler for exception_x86_64_bnd_test. 13 years ago
ChangeLog Update copyright year to 2014 13 years ago
Makefile.am Use $(INSTALL_PROGRAM_ENV) consistently. 13 years ago
Makefile.in Use $(INSTALL_PROGRAM_ENV) consistently. 13 years ago
NEWS Add copyright notices 14 years ago
README * README: Update coding style link. 14 years ago
TODO * TODO: New file. 19 years ago
aclocal.m4 * configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS. 14 years ago
archive.cc gold/ 13 years ago
archive.h gold/ 13 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 gold/ 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. 19 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 17 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 Add configure checks for <unordered_set> and <unordered_map>. 13 years ago
configure Add configure checks for <unordered_set> and <unordered_map>. 13 years ago
configure.ac Add configure checks for <unordered_set> and <unordered_map>. 13 years ago
configure.tgt bfd/ 14 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 17 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. 19 years ago
descriptors.cc * descriptors.cc (Descriptors::close_all): New function. 14 years ago
descriptors.h * descriptors.cc (Descriptors::close_all): New function. 14 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 Restore support for dwp v2 DWARF package file format. 13 years ago
dwarf_reader.h Restore support for dwp v2 DWARF package file format. 13 years ago
dwp.cc Add --verify-only option to DWP. 13 years ago
dwp.h Add --verify-only option to DWP. 13 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> 15 years ago
ehframe.cc Revert "Fix race condition while building EH frame header." 13 years ago
ehframe.h Revert "Fix race condition while building EH frame header." 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. 18 years ago
fileread.cc gold/ 14 years ago
fileread.h 2013-07-15 Shawn Landden <shawnlandden@gmail.com> 13 years ago
freebsd.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 15 years ago
ftruncate.c Add copyright notices 14 years ago
gc.cc 2009-01-20 Sriraman Tallam <tmsriram@google.com> 18 years ago
gc.h * gc.h (gc_process_relocs): Don't look through function descriptors. 14 years ago
gdb-index.cc Restore support for dwp v2 DWARF package file format. 13 years ago
gdb-index.h 2013-07-22 Sterling Augustine <saugustine@google.com> 13 years ago
gold-threads.cc gold/ 13 years ago
gold-threads.h gold/ 13 years ago
gold.cc 2013-04-26 Geoff Pike <gpike@chromium.org> 14 years ago
gold.h gold/ 14 years ago
i386.cc gold/ 13 years ago
icf.cc * gc.h (gc_process_relocs): Don't look through function descriptors. 14 years ago
icf.h gold/ 13 years ago
incremental-dump.cc * incremental-dump.cc (find_input_containing_global): Replace 15 years ago
incremental.cc gold/ 14 years ago
incremental.h gold/ 13 years ago
int_encoding.cc * int_encoding.cc (read_unsigned_LEB_128): Replaced with inline 15 years ago
int_encoding.h * int_encoding.cc (read_unsigned_LEB_128): Replaced with inline 15 years ago
layout.cc gold/ 13 years ago
layout.h gold/ 13 years ago
main.cc 2012-03-21 Cary Coutant <ccoutant@google.com> 15 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 16 years ago
nacl.cc gold/ 14 years ago
nacl.h 2013-07-15 Shawn Landden <shawnlandden@gmail.com> 13 years ago
object.cc Fix assert failure with --emit-relocs and .eh_frame sections. 13 years ago
object.h PR binutils/15834 13 years ago
options.cc gold/ 13 years ago
options.h gold/ 13 years ago
output.cc gold/ 13 years ago
output.h * output.h (Output_data_got::add_constant): Tidy. 13 years ago
parameters.cc gold/ 13 years ago
parameters.h gold/ 13 years ago
plugin.cc * descriptors.cc (Descriptors::close_all): New function. 14 years ago
plugin.h gold/ 13 years ago
powerpc.cc Fixes to powerpc64 gold ELFv2 support 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): 15 years ago
readsyms.h gold/ 13 years ago
reduced_debug_output.cc elfcpp/ 15 years ago
reduced_debug_output.h Revert -Wshadow changes, all changes from: 17 years ago
reloc-types.h * copy-relocs.cc: New file. 19 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 15 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/ 14 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 gold/ 13 years ago
stringpool.cc * stringpool.cc (Stringpool_template::reserve): Add 13 years ago
stringpool.h 2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com> 13 years ago
symtab.cc gold/ 14 years ago
symtab.h Remove powerpc.cc copy of use_plt_offset 13 years ago
system.h Add configure checks for <unordered_set> and <unordered_map>. 13 years ago
target-reloc.h gold/ 13 years ago
target-select.cc * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 15 years ago
target-select.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 15 years ago
target.cc gold/ 13 years ago
target.h gold/ 13 years ago
tilegx.cc gold/ 13 years ago
timer.cc * timer.cc: #include <unistd.h>. 15 years ago
timer.h * gold.cc: Include timer.h. 15 years ago
tls.h Update copyright years. Update language files. 19 years ago
token.h * dirsearch.cc (Dirsearch::initialize): Add all blockers before 17 years ago
version.cc Update copyright year to 2014 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 Add R_X86_64_PC32_BND/R_X86_64_PLT32_BND suppor to gold 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.