binutils-gdb/ld/emultempl
Alan Modra 8ee10e8609 PR27451, -z start_stop_gc
When --gc-sections is in effect, a reference from a retained section
to __start_SECNAME or __stop_SECNAME causes all input sections named
SECNAME to also be retained, if SECNAME is representable as a C
identifier and either __start_SECNAME or __stop_SECNAME is synthesized
by the linker.  Add an option to disable that feature, effectively
ignoring any relocation that references a synthesized linker defined
__start_ or __stop_ symbol.

	PR 27451
include/
	* bfdlink.h (struct bfd_link_info): Add start_stop_gc.
bfd/
	* elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
	defined start/stop symbols when start_stop_gc.
	(bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
	(bfd_elf_define_start_stop): Don't modify ldscript_def syms.
	* linker.c (bfd_generic_define_start_stop): Likewise.
ld/
	* emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
	* lexsup.c (elf_static_list_options): Display help for them.  Move
	help for -z stack-size to here from elf_shlib_list_options. Add
	help for -z start-stop-visibility and -z undefs.
	* ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
	* NEWS: Mention -z start-stop-gc.
	* testsuite/ld-gc/start2.s,
	* testsuite/ld-gc/start2.d: New test.
	* testsuite/ld-gc/gc.exp: Run it.
2021-03-01 17:28:03 +10:30
..
aarch64elf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
aix.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
alphaelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
arclinux.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
armcoff.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
armelf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
astring.sed
avrelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
beos.em PR27226, ld.bfd contains huge .rodata section 2021-01-26 20:54:43 +10:30
bfin.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
cr16elf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
crxelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
cskyelf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
elf-generic.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
elf-x86.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
elf.em PR27451, -z start_stop_gc 2021-03-01 17:28:03 +10:30
epiphanyelf_4x4.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
genelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
generic.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
hppaelf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
ia64elf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
irix.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
linux.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
m68hc1xelf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
m68kelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
metagelf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
mipself.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
mmix-elfnmmo.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
mmixelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
mmo.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
msp430.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
nds32elf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
needrelax.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
netbsd.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
nios2elf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
ostring.sed
pdp11.em PR27226, ld.bfd contains huge .rodata section 2021-01-26 20:54:43 +10:30
pe.em PR27226, ld.bfd contains huge .rodata section 2021-01-26 20:54:43 +10:30
pep.em PR27226, ld.bfd contains huge .rodata section 2021-01-26 20:54:43 +10:30
ppc32elf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ppc64elf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
pruelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
README Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
riscvelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
rxelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
rxlinux.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
s390.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
scoreelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
solaris2-x86.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
solaris2.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
spu_icache.o_c Regenerate spu overlay and icache manager files 2014-11-04 22:36:13 +10:30
spu_icache.S
spu_ovl.o_c Regenerate spu_ovl.o_c 2016-10-15 12:53:57 +10:30
spu_ovl.S Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
spuelf.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
tic6xdsbt.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ticoff.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
v850elf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
vanilla.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
vms.em SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
vxworks.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
xtensaelf.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
z80.em Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +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-2021 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.