binutils-gdb/ld/emultempl
H.J. Lu a6dbf402de ld: Add --warn-textrel and obsolete --warn-shared-textrel
--warn-shared-textrel and -z text apply to both shared object and PIE.
Add --warn-textrel and obsolete --warn-shared-textrel.  Consolidate
--warn-textrel and -z text/notext/textoff implementation.

bfd/

	PR ld/22909
	* elflink.c (bfd_elf_final_link): Use bfd_link_textrel_check.
	Check bfd_link_dll when issue a DT_TEXTREL warning.
	* elfxx-x86.c (maybe_set_textrel): Likewise.
	(_bfd_x86_elf_size_dynamic_sections): Likewise.

include/

	PR ld/22909
	* bfdlink.h (textrel_check_method): New enum.
	(bfd_link_textrel_check): New.
	(bfd_link_info): Replace warn_shared_textrel and error_textrel
	with textrel_check.

ld/

	PR ld/22909
	* NEWS: Mention --warn-textrel.
	* ld.texi: Update -z text/notext/textoff.  Add --warn-textrel.
	Remove --warn-shared-textrel.
	* ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
	OPTION_WARN_TEXTREL.
	* lexsup.c (ld_options): Add --warn-textrel.  Obsolete
	--warn-shared-textrel.
	(parse_args): Updated.
	(elf_shlib_list_options): Check link_info.textrel_check.
	* emultempl/elf.em: Updated.
	* testsuite/ld-elf/pr19539.d: Replace -z notext with
	--warn-textrel.  Expect a warning.
	* testsuite/ld-i386/warn1.d: Update expected warning.
2020-05-27 04:54:10 -07:00
..
aarch64elf.em AArch64: Set the correct ELF class for AArch64 stubs (PR/25210) 2020-01-02 14:08:27 +00:00
aix.em Show AIX gc'd symbol address adjustments in map file 2020-05-18 22:41:32 +09:30
alphaelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
arclinux.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
armcoff.em Show AIX gc'd symbol address adjustments in map file 2020-05-18 22:41:32 +09:30
armelf.em Add support for non-contiguous memory regions 2020-03-13 14:44:45 +00:00
astring.sed
avrelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
beos.em Use bfd_get_filename throughout ld 2020-05-19 12:57:15 +09:30
bfin.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cr16elf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
crxelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
cskyelf.em Indent labels 2020-02-26 10:37:25 +10:30
elf-generic.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf-x86.em x86: Check static link of dynamic objects 2020-03-13 07:39:06 -07:00
elf.em ld: Add --warn-textrel and obsolete --warn-shared-textrel 2020-05-27 04:54:10 -07:00
epiphanyelf_4x4.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
genelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
generic.em Show AIX gc'd symbol address adjustments in map file 2020-05-18 22:41:32 +09:30
hppaelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ia64elf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
irix.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
linux.em Show AIX gc'd symbol address adjustments in map file 2020-05-18 22:41:32 +09:30
m68hc1xelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
m68kelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
metagelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
mipself.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
mmix-elfnmmo.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
mmixelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
mmo.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
msp430.em Replace "if (x) free (x)" with "free (x)", ld 2020-05-21 10:45:33 +09:30
nds32elf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
needrelax.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
netbsd.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
nios2elf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ostring.sed
pdp11.em Fixes for the magic number used in PDP11 AOUT binaries. 2020-04-14 14:41:27 +01:00
pe.em Replace "if (x) free (x)" with "free (x)", ld 2020-05-21 10:45:33 +09:30
pep.em Replace "if (x) free (x)" with "free (x)", ld 2020-05-21 10:45:33 +09:30
ppc32elf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ppc64elf.em Replace "if (x) free (x)" with "free (x)", ld 2020-05-21 10:45:33 +09:30
pruelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
README Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
riscvelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
rxelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
rxlinux.em ld: Add rx-linux emulation. gas: Change ELF flags initial value in rx-linux 2020-04-30 13:35:37 +01:00
s390.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
scoreelf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
solaris2-x86.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
solaris2.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
spu_icache.o_c
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 2020-01-01 18:42:54 +10:30
spuelf.em Use bfd_get_filename throughout ld 2020-05-19 12:57:15 +09:30
tic6xdsbt.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ticoff.em Show AIX gc'd symbol address adjustments in map file 2020-05-18 22:41:32 +09:30
v850elf.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
vanilla.em Show AIX gc'd symbol address adjustments in map file 2020-05-18 22:41:32 +09:30
vms.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
vxworks.em Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
xtensaelf.em Replace "if (x) free (x)" with "free (x)", ld 2020-05-21 10:45:33 +09:30
z80.em Various fixes for the Z80 support. 2020-02-19 17:46:10 +00:00

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