binutils-gdb/ld/testsuite
Sudakshina Das 4e5391148d [BFD, AArch64, x86] Improve warning for --force-bti
The AArch64 linker option to turn on BTI (--force-bti) warns in case there are
input objects which have a missing GNU NOTE section for BTI. This patch is trying
to improve the warnings that come out.

In order to do so, I propose adding a new argument to elf_merge_gnu_properties
and the backend function merge_gnu_properties. This new argument makes sure
that we now pass both the objects along with the properties to which they
belong to. The x86 backend function has also been updated to match this
change.

*** bfd/ChangeLog ***

2019-03-21  Sudakshina Das  <sudi.das@arm.com>

	* elf-bfd.h (struct elf_backend_data): Add argument to
	merge_gnu_properties.
	* elf-properties.c (elf_merge_gnu_properties): Add argument to
	itself and while calling bed->merge_gnu_properties.
	(elf_merge_gnu_property_list): Update the calls for
	elf_merge_gnu_properties.
	* elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
	of --force-bti warning and add argument.
	* elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
	warning.
	* elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
	* elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
	declaration.

*** ld/ChangeLog ***

2019-03-21  Sudakshina Das  <sudi.das@arm.com>

	* testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
	* testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
	* testsuite/ld-aarch64/bti-plt-6.d: Update warning.
	* testsuite/ld-aarch64/bti-plt-7.d: Likewise.
	* testsuite/ld-aarch64/bti-warn.d: New test.
2019-03-21 16:20:21 +00:00
..
config Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-aarch64 [BFD, AArch64, x86] Improve warning for --force-bti 2019-03-21 16:20:21 +00:00
ld-alpha Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-arc Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-arm Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-auto-import Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-avr Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-bootstrap Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-cdtest Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-checks Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-cris Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-crx Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-csky
ld-cygwin Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-d10v Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-discard Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-elf Adjust pr14156 test for m68hc1* 2019-03-21 22:19:51 +10:30
ld-elfcomm Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-elfvers Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-elfvsb Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-elfweak Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-fastcall Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-frv Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-gc Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-h8300 Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-i386 x86: Properly set IBT and SHSTK properties for -z ibt/shstk 2019-03-13 14:38:29 +08:00
ld-ia64 Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-ifunc Skip ld/pr23169 on SPARC. 2019-01-29 10:11:01 +01:00
ld-libs Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-linkonce Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-m68hc11 Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-m68k run_dump_test source in build directory 2019-01-08 18:50:54 +10:30
ld-mep Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-metag Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-mips-elf Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-misc Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-mmix Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-mn10300 Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-msp430-elf Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-nds32 Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-nios2
ld-or1k Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-pe Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-pie Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-plugin Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-powerpc PowerPC __tls_get_addr arg parsing 2019-02-21 18:05:05 +10:30
ld-pru
ld-riscv-elf Fix spelling mistakes in BFD library. 2019-01-21 12:39:24 +00:00
ld-s12z Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-s390 Revert "Add support to GNU ld to separate got related plt entries" 2019-03-01 15:35:00 +01:00
ld-scripts Fix some ldscripts/pr24008 fails 2019-02-06 17:33:54 +10:30
ld-selective Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-sh Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-shared Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-size Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-sparc Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-spu Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-srec Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-tic6x Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-tilegx Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-tilepro Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-undefined Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-unique csky ld testsuite fixes 2019-03-18 22:37:26 +10:30
ld-v850 Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-vax-elf Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-visium Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-vxworks Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-x86-64 x86: Properly set IBT and SHSTK properties for -z ibt/shstk 2019-03-13 14:38:29 +08:00
ld-xc16x Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-xstormy16 Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ld-xtensa bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
ld-z8k Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
lib Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303