Retro68/binutils/gold
Wolfgang Thaller f485e125c4 binutils 2.39 2022-10-27 20:45:45 +02:00
..
po binutils 2.39 2022-10-27 20:45:45 +02:00
testsuite binutils 2.39 2022-10-27 20:45:45 +02:00
ChangeLog binutils 2.39 2022-10-27 20:45:45 +02:00
ChangeLog-0815 upgrade gcc to 6.3.0, binutils to 2.28 2017-04-10 13:32:00 +02:00
ChangeLog-2016 Update gcc to 7.2.0, binutils to 2.29, newlib to 2.5.0 2017-10-07 02:16:47 +02:00
ChangeLog-2017 update to binutils 2.31.1 2018-12-28 16:25:28 +01:00
ChangeLog-2018 binutils 2.39 2022-10-27 20:45:45 +02:00
ChangeLog-2019 binutils 2.39 2022-10-27 20:45:45 +02:00
ChangeLog-2020 binutils 2.39 2022-10-27 20:45:45 +02:00
Makefile.am binutils 2.39 2022-10-27 20:45:45 +02:00
Makefile.in binutils 2.39 2022-10-27 20:45:45 +02:00
NEWS binutils 2.39 2022-10-27 20:45:45 +02:00
README binutils 2.39 2022-10-27 20:45:45 +02:00
TODO add binutils-2.20.1 2012-03-26 21:18:29 +02:00
aarch64-reloc-property.cc binutils 2.39 2022-10-27 20:45:45 +02:00
aarch64-reloc-property.h binutils 2.39 2022-10-27 20:45:45 +02:00
aarch64-reloc.def binutils 2.39 2022-10-27 20:45:45 +02:00
aarch64.cc binutils 2.39 2022-10-27 20:45:45 +02:00
aclocal.m4 update to binutils 2.31.1 2018-12-28 16:25:28 +01:00
archive.cc binutils 2.39 2022-10-27 20:45:45 +02:00
archive.h binutils 2.39 2022-10-27 20:45:45 +02:00
arm-reloc-property.cc binutils 2.39 2022-10-27 20:45:45 +02:00
arm-reloc-property.h binutils 2.39 2022-10-27 20:45:45 +02:00
arm-reloc.def binutils 2.39 2022-10-27 20:45:45 +02:00
arm.cc binutils 2.39 2022-10-27 20:45:45 +02:00
attributes.cc binutils 2.39 2022-10-27 20:45:45 +02:00
attributes.h binutils 2.39 2022-10-27 20:45:45 +02:00
binary.cc binutils 2.39 2022-10-27 20:45:45 +02:00
binary.h binutils 2.39 2022-10-27 20:45:45 +02:00
common.cc binutils 2.39 2022-10-27 20:45:45 +02:00
common.h binutils 2.39 2022-10-27 20:45:45 +02:00
compressed_output.cc binutils 2.39 2022-10-27 20:45:45 +02:00
compressed_output.h binutils 2.39 2022-10-27 20:45:45 +02:00
config.in binutils 2.39 2022-10-27 20:45:45 +02:00
configure binutils 2.39 2022-10-27 20:45:45 +02:00
configure.ac binutils 2.39 2022-10-27 20:45:45 +02:00
configure.tgt binutils 2.39 2022-10-27 20:45:45 +02:00
copy-relocs.cc binutils 2.39 2022-10-27 20:45:45 +02:00
copy-relocs.h binutils 2.39 2022-10-27 20:45:45 +02:00
cref.cc binutils 2.39 2022-10-27 20:45:45 +02:00
cref.h binutils 2.39 2022-10-27 20:45:45 +02:00
debug.h binutils 2.39 2022-10-27 20:45:45 +02:00
defstd.cc binutils 2.39 2022-10-27 20:45:45 +02:00
defstd.h binutils 2.39 2022-10-27 20:45:45 +02:00
descriptors.cc binutils 2.39 2022-10-27 20:45:45 +02:00
descriptors.h binutils 2.39 2022-10-27 20:45:45 +02:00
dirsearch.cc binutils 2.39 2022-10-27 20:45:45 +02:00
dirsearch.h binutils 2.39 2022-10-27 20:45:45 +02:00
dwarf_reader.cc binutils 2.39 2022-10-27 20:45:45 +02:00
dwarf_reader.h binutils 2.39 2022-10-27 20:45:45 +02:00
dwp.cc binutils 2.39 2022-10-27 20:45:45 +02:00
dwp.h binutils 2.39 2022-10-27 20:45:45 +02:00
dynobj.cc binutils 2.39 2022-10-27 20:45:45 +02:00
dynobj.h binutils 2.39 2022-10-27 20:45:45 +02:00
ehframe.cc binutils 2.39 2022-10-27 20:45:45 +02:00
ehframe.h binutils 2.39 2022-10-27 20:45:45 +02:00
errors.cc binutils 2.39 2022-10-27 20:45:45 +02:00
errors.h binutils 2.39 2022-10-27 20:45:45 +02:00
expression.cc binutils 2.39 2022-10-27 20:45:45 +02:00
ffsll.c binutils 2.39 2022-10-27 20:45:45 +02:00
fileread.cc binutils 2.39 2022-10-27 20:45:45 +02:00
fileread.h binutils 2.39 2022-10-27 20:45:45 +02:00
freebsd.h binutils 2.39 2022-10-27 20:45:45 +02:00
ftruncate.c binutils 2.39 2022-10-27 20:45:45 +02:00
gc.cc binutils 2.39 2022-10-27 20:45:45 +02:00
gc.h binutils 2.39 2022-10-27 20:45:45 +02:00
gdb-index.cc binutils 2.39 2022-10-27 20:45:45 +02:00
gdb-index.h binutils 2.39 2022-10-27 20:45:45 +02:00
gold-threads.cc binutils 2.39 2022-10-27 20:45:45 +02:00
gold-threads.h binutils 2.39 2022-10-27 20:45:45 +02:00
gold.cc binutils 2.39 2022-10-27 20:45:45 +02:00
gold.h binutils 2.39 2022-10-27 20:45:45 +02:00
i386.cc binutils 2.39 2022-10-27 20:45:45 +02:00
icf.cc binutils 2.39 2022-10-27 20:45:45 +02:00
icf.h binutils 2.39 2022-10-27 20:45:45 +02:00
incremental-dump.cc binutils 2.39 2022-10-27 20:45:45 +02:00
incremental.cc binutils 2.39 2022-10-27 20:45:45 +02:00
incremental.h binutils 2.39 2022-10-27 20:45:45 +02:00
int_encoding.cc binutils 2.39 2022-10-27 20:45:45 +02:00
int_encoding.h binutils 2.39 2022-10-27 20:45:45 +02:00
layout.cc binutils 2.39 2022-10-27 20:45:45 +02:00
layout.h binutils 2.39 2022-10-27 20:45:45 +02:00
main.cc binutils 2.39 2022-10-27 20:45:45 +02:00
mapfile.cc binutils 2.39 2022-10-27 20:45:45 +02:00
mapfile.h binutils 2.39 2022-10-27 20:45:45 +02:00
merge.cc binutils 2.39 2022-10-27 20:45:45 +02:00
merge.h binutils 2.39 2022-10-27 20:45:45 +02:00
mips.cc binutils 2.39 2022-10-27 20:45:45 +02:00
mremap.c binutils 2.39 2022-10-27 20:45:45 +02:00
nacl.cc binutils 2.39 2022-10-27 20:45:45 +02:00
nacl.h binutils 2.39 2022-10-27 20:45:45 +02:00
object.cc binutils 2.39 2022-10-27 20:45:45 +02:00
object.h binutils 2.39 2022-10-27 20:45:45 +02:00
options.cc binutils 2.39 2022-10-27 20:45:45 +02:00
options.h binutils 2.39 2022-10-27 20:45:45 +02:00
output.cc binutils 2.39 2022-10-27 20:45:45 +02:00
output.h binutils 2.39 2022-10-27 20:45:45 +02:00
parameters.cc binutils 2.39 2022-10-27 20:45:45 +02:00
parameters.h binutils 2.39 2022-10-27 20:45:45 +02:00
plugin.cc binutils 2.39 2022-10-27 20:45:45 +02:00
plugin.h binutils 2.39 2022-10-27 20:45:45 +02:00
powerpc.cc binutils 2.39 2022-10-27 20:45:45 +02:00
pread.c binutils 2.39 2022-10-27 20:45:45 +02:00
readsyms.cc binutils 2.39 2022-10-27 20:45:45 +02:00
readsyms.h binutils 2.39 2022-10-27 20:45:45 +02:00
reduced_debug_output.cc binutils 2.39 2022-10-27 20:45:45 +02:00
reduced_debug_output.h binutils 2.39 2022-10-27 20:45:45 +02:00
reloc-types.h binutils 2.39 2022-10-27 20:45:45 +02:00
reloc.cc binutils 2.39 2022-10-27 20:45:45 +02:00
reloc.h binutils 2.39 2022-10-27 20:45:45 +02:00
resolve.cc binutils 2.39 2022-10-27 20:45:45 +02:00
s390.cc binutils 2.39 2022-10-27 20:45:45 +02:00
script-c.h binutils 2.39 2022-10-27 20:45:45 +02:00
script-sections.cc binutils 2.39 2022-10-27 20:45:45 +02:00
script-sections.h binutils 2.39 2022-10-27 20:45:45 +02:00
script.cc binutils 2.39 2022-10-27 20:45:45 +02:00
script.h binutils 2.39 2022-10-27 20:45:45 +02:00
sparc.cc binutils 2.39 2022-10-27 20:45:45 +02:00
stringpool.cc binutils 2.39 2022-10-27 20:45:45 +02:00
stringpool.h binutils 2.39 2022-10-27 20:45:45 +02:00
symtab.cc binutils 2.39 2022-10-27 20:45:45 +02:00
symtab.h binutils 2.39 2022-10-27 20:45:45 +02:00
system.h binutils 2.39 2022-10-27 20:45:45 +02:00
target-reloc.h binutils 2.39 2022-10-27 20:45:45 +02:00
target-select.cc binutils 2.39 2022-10-27 20:45:45 +02:00
target-select.h binutils 2.39 2022-10-27 20:45:45 +02:00
target.cc binutils 2.39 2022-10-27 20:45:45 +02:00
target.h binutils 2.39 2022-10-27 20:45:45 +02:00
tilegx.cc binutils 2.39 2022-10-27 20:45:45 +02:00
timer.cc binutils 2.39 2022-10-27 20:45:45 +02:00
timer.h binutils 2.39 2022-10-27 20:45:45 +02:00
tls.h binutils 2.39 2022-10-27 20:45:45 +02:00
token.h binutils 2.39 2022-10-27 20:45:45 +02:00
version.cc binutils 2.39 2022-10-27 20:45:45 +02:00
workqueue-internal.h binutils 2.39 2022-10-27 20:45:45 +02:00
workqueue-threads.cc binutils 2.39 2022-10-27 20:45:45 +02:00
workqueue.cc binutils 2.39 2022-10-27 20:45:45 +02:00
workqueue.h binutils 2.39 2022-10-27 20:45:45 +02:00
x86_64.cc binutils 2.39 2022-10-27 20:45:45 +02:00
yyscript.c binutils 2.39 2022-10-27 20:45:45 +02:00
yyscript.h binutils 2.39 2022-10-27 20:45:45 +02:00
yyscript.y binutils 2.39 2022-10-27 20:45:45 +02:00

README

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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-2022 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.