buildtools/legacy/binutils/ld/emultempl
Simon South 465fb4d4a7 gcc2: Allow the user to build non-PI executables
This aligns legacy gcc with the changes to gcc4 committed in 4192115 and
the two subsequent commits.  It also disables legacy ld's default
behaviour of recursively resolving shared-library dependencies at link
time, preventing missing-library warnings during the build and aligning
ld's behaviour with that of more recent versions.

gcc2:

* CPP_SPEC: Replace non-existent command-line options with valid
  equivalents.
* CC1_SPEC: Remove non-existent "no-fpic" option; add "fno-pic" and
  "fno-PIC" as options that disable the generation of
  position-independent code; use "-fPIC" by default.
* LINK_SPEC: Pass "-shared" to the linker only if it was passed to gcc;
  output position-independent executables by default, exporting all
  symbols to match the behaviour of "-shared"; when building a
  dynamically linked executable, do not recursively add shared libraries
  as dependencies but do allow unresolved symbols in them; specify
  "-Bsymbolic" only when building a shared library.
* All: Wrap lines at 80 columns; use more compact notation where
  available.

ld:

* Do not recursively resolve shared-library dependencies when building
  an executable if the "--no-add-needed" and "--allow-shlib-undefined"
  options are in effect.  This effectively backports binutils commits
  8fbb09e and 4706eab.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2015-11-02 21:09:55 +01:00
..
aix.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
alphaelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
armcoff.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
armelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
astring.sed Moved the old binutils to their new home. 2005-11-22 15:54:23 +00:00
beos.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
crxelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
elf32.em gcc2: Allow the user to build non-PI executables 2015-11-02 21:09:55 +01:00
generic.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
gld960.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
gld960c.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
hppaelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
ia64elf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
irix.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
linux.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
lnk960.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
m68hc1xelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
m68kcoff.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
m68kelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
mipsecoff.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
mmix-elfnmmo.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
mmixelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
mmo.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
needrelax.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
netbsd.em Moved the old binutils to their new home. 2005-11-22 15:54:23 +00:00
ostring.sed Moved the old binutils to their new home. 2005-11-22 15:54:23 +00:00
pe.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
ppc32elf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
ppc64elf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
README Moved the old binutils to their new home. 2005-11-22 15:54:23 +00:00
sh64elf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
sunos.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
ticoff.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
vanilla.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
vxworks.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
xtensaelf.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00
z80.em * updated binutils to 2.17, most problems should be solved now... 2007-02-21 21:17:52 +00:00

The files in this directory are sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.