binutils-gdb/ld/emultempl
Nick Clifton 97a232d733 Add -z undefs option to the ELF linker.
Currently we have no obvious way to revert the action of the "-z defs"
  command line option.  The "--unresolved-symbols=ignore-in-object-files"
  does pretty much what is needed, but it is non-obvious and it also
  touches the setting for reporting unresolved symbol references from
  shared libraries.  So I am proposing adding a "-z undefs" option to be
  the inverse of "-z defs".  (I thought that "-z nodefs" might be
  confusing since it implies banning all definitions, rather than
  allowing them).

  In addition the description of the "-z defs" option in the linker
  documentation is misleading in one place, where it says:

    'defs'
       Disallows undefined symbols in object files.  Undefined
       symbols in shared libraries are still allowed.

  whereas later on it gets it right:

    '-z defs'
       Report unresolved symbol references from regular object files.
       This is done even if the linker is creating a non-symbolic shared
       library.  The switch '--[no-]allow-shlib-undefined' controls the
       behaviour for reporting unresolved references found in shared
       libraries being linked in.

	* emultempl/elf32.em (_handle_option): Add support for "-z undefs"
	as the opposite of "-z defs".
	* ld.texinfo: Document the new option.  Update the description of
	the -z defs option to make it clear that it does generate an error
	if an undefined symbol reference is found in an object file whilst
	creating a shared library.
	* NEWS: Document this new feature.
2018-01-12 08:15:55 +00:00
..
aarch64elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
aix.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
alphaelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
arclinux.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
armcoff.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
armelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
astring.sed
avrelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
beos.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
bfin.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
cr16elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
crxelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
elf32.em Add -z undefs option to the ELF linker. 2018-01-12 08:15:55 +00:00
elf-generic.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
epiphanyelf_4x4.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
genelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
generic.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
gld960.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
gld960c.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
hppaelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
ia64elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
irix.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
linux.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
lnk960.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
m68hc1xelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
m68kcoff.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
m68kelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
metagelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mipself.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mmix-elfnmmo.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mmixelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mmo.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
msp430.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
nds32elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
needrelax.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
netbsd.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
nios2elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
ostring.sed
pe.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
pep.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
ppc32elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
ppc64elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
pruelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
README Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
riscvelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
rxelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
s390.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
scoreelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
sh64elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
solaris2.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
spu_icache.o_c
spu_icache.S
spu_ovl.o_c
spu_ovl.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
spuelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
sunos.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
tic6xdsbt.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
ticoff.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
v850elf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
vanilla.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
vms.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
vxworks.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
xtensaelf.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
z80.em Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30

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.

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.

Copyright (C) 2012-2018 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.