binutils-gdb/gold
Walter Lee 5c0b3823c6 Add support for tilegx in gold.
* configure.ac (ENABLE_GOLD): support tilegx*
	* configure: rebuild
elfcpp:
	* tilegx.h: New file.
	* elfcpp.h: add EM_TILEGX.
gold:
	* tilegx.cc: New file.
	* Makefile.am (TARGETSOURCES): Add tilegx.cc
	(ALL_TARGETOBJS): Add tilegx.$(OBJEXT)
	* configure.tgt: Add entries for tilegx*.
	* configure.ac: Likewise.
	* Makefile.in: Rebuild.
	* configure: Likewise.
	* testsuite/icf_safe_test.sh (arch_specific_safe_fold): Handle
	tilegx.
2012-09-15 17:11:28 +00:00
..
po Updated Vietnamese translation. 2012-08-09 14:46:44 +00:00
testsuite Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
aclocal.m4 * configure.in (AC_CHECK_FUNCS): Add setlocale. 2012-04-05 08:43:41 +00:00
archive.cc * archive.cc (Library_base::should_include_member): Check for 2012-04-17 00:28:41 +00:00
archive.h
arm-reloc-property.cc
arm-reloc-property.h
arm-reloc.def
arm.cc * target-reloc.h (scan_relocs): Call scan.local for relocs 2012-09-12 22:43:54 +00:00
attributes.cc
attributes.h
binary.cc
binary.h
ChangeLog Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
common.cc * arm.cc (Arm_relocate_functions::abs16): Remove unused typedef. 2012-07-11 14:18:40 +00:00
common.h
compressed_output.cc
compressed_output.h
config.in * config.in: Disable sanity check for kfreebsd. 2012-09-10 22:30:57 +00:00
configure Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
configure.ac Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
configure.tgt Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
copy-relocs.cc
copy-relocs.h
cref.cc
cref.h
debug.h
defstd.cc
defstd.h
descriptors.cc
descriptors.h
dirsearch.cc
dirsearch.h
dwarf_reader.cc 2012-09-06 Cary Coutant <ccoutant@google.com> 2012-09-07 20:14:10 +00:00
dwarf_reader.h gold: Handle DW_AT_high_pc as offset from DW_AT_low_pc in gdb-index.cc. 2012-05-01 19:12:21 +00:00
dynobj.cc * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call 2012-06-04 20:00:31 +00:00
dynobj.h
ehframe.cc * arm.cc (Arm_relocate_functions::abs16): Remove unused typedef. 2012-07-11 14:18:40 +00:00
ehframe.h
errors.cc
errors.h
expression.cc
ffsll.c
fileread.cc
fileread.h
freebsd.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 2012-05-02 21:37:24 +00:00
ftruncate.c
gc.cc
gc.h * target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions. 2012-09-09 03:43:51 +00:00
gdb-index.cc 2012-09-10 Sterling Augustine <saugustine@google.com> 2012-09-10 19:16:33 +00:00
gdb-index.h 2012-09-10 Sterling Augustine <saugustine@google.com> 2012-09-10 19:16:33 +00:00
gold-threads.cc
gold-threads.h
gold.cc * target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions. 2012-09-09 03:43:51 +00:00
gold.h PR gold/14309 2012-07-10 14:54:29 +00:00
i386.cc * target-reloc.h (scan_relocs): Call scan.local for relocs 2012-09-12 22:43:54 +00:00
icf.cc
icf.h
incremental-dump.cc * incremental-dump.cc (find_input_containing_global): Replace 2012-04-24 22:05:28 +00:00
incremental.cc * arm.cc (Arm_relocate_functions::abs16): Remove unused typedef. 2012-07-11 14:18:40 +00:00
incremental.h PR gold/14570 2012-09-12 18:29:18 +00:00
int_encoding.cc
int_encoding.h
layout.cc PR gold/14566 2012-09-10 23:10:41 +00:00
layout.h Patch adds support to allow plugins to map selected subset of sections to unique 2012-08-24 18:35:35 +00:00
main.cc
Makefile.am Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
Makefile.in Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
mapfile.cc
mapfile.h
merge.cc
merge.h
mremap.c
nacl.cc * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 2012-05-02 21:37:24 +00:00
nacl.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 2012-05-02 21:37:24 +00:00
NEWS
object.cc 2012-09-06 Cary Coutant <ccoutant@google.com> 2012-09-07 20:14:10 +00:00
object.h PR gold/14570 2012-09-12 18:29:18 +00:00
options.cc
options.h gold/ 2012-06-07 05:14:44 +00:00
output.cc PR gold/14570 2012-09-12 18:29:18 +00:00
output.h * output.h (Output_data_got::add_global_tls, add_local_tls, 2012-09-10 23:05:54 +00:00
parameters.cc * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 2012-05-02 21:37:24 +00:00
parameters.h
plugin.cc Patch adds support to allow plugins to map selected subset of sections to unique 2012-08-24 18:35:35 +00:00
plugin.h
powerpc.cc * target-reloc.h (scan_relocs): Call scan.local for relocs 2012-09-12 22:43:54 +00:00
pread.c
README
readsyms.cc
readsyms.h
reduced_debug_output.cc elfcpp/ 2012-05-01 22:46:36 +00:00
reduced_debug_output.h
reloc-types.h
reloc.cc * object.h (Sized_relobj_file::emit_relocs): Delete. 2012-09-05 00:34:20 +00:00
reloc.h * arm.cc (Target_arm::do_is_defined_by_abi): Make sym a const 2012-04-26 00:07:21 +00:00
resolve.cc
script-c.h
script-sections.cc PR ld/14265 2012-08-14 08:31:57 +00:00
script-sections.h PR ld/14265 2012-08-14 08:31:57 +00:00
script.cc
script.h
sparc.cc * target-reloc.h (scan_relocs): Call scan.local for relocs 2012-09-12 22:43:54 +00:00
stringpool.cc
stringpool.h
symtab.cc * target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions. 2012-09-09 03:43:51 +00:00
symtab.h * powerpc.cc: Formatting and white space. 2012-08-18 11:12:50 +00:00
target-reloc.h * target-reloc.h (scan_relocs): Call scan.local for relocs 2012-09-12 22:43:54 +00:00
target-select.cc * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 2012-05-02 21:37:24 +00:00
target-select.h * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF. 2012-05-02 21:37:24 +00:00
target.cc gold: Fix parameterization of do_adjust_elf_header 2012-04-20 22:23:47 +00:00
target.h * output.h (Output_data_got::add_global_tls, add_local_tls, 2012-09-10 23:05:54 +00:00
tilegx.cc Add support for tilegx in gold. 2012-09-15 17:11:28 +00:00
timer.cc * timer.cc: #include <unistd.h>. 2012-04-06 17:21:55 +00:00
timer.h
tls.h
TODO
token.h
version.cc
workqueue-internal.h
workqueue-threads.cc
workqueue.cc
workqueue.h
x86_64.cc * target-reloc.h (scan_relocs): Call scan.local for relocs 2012-09-12 22:43:54 +00:00
yyscript.y

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++/17_intro/C++STYLE
    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.