Siddhesh Poyarekar 7e05773767 [PATCH v3] aarch64: Emit jump slot for conditional branch to undefined symbols
The linker silently writes out a conditional branch to 0 if the
target symbol in R_AARCH64_CONDBR19 or R_AARCH64_TSTBR14 relocations is
undefined.  Emit a PLT instead so that behaviour is the same for these
relocations as the llvm linker.

The special behaviour for undefined weak symbols, where conditional
branches to such symbols result in a branch unto themselves, has been
retained.  This is because the weak-undefined.s test explicitly checks
for that, leading me to conclude that it's expected behaviour.

bfd	* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Club
	BFD_RELOC_AARCH64_BRANCH19 and BFD_RELOC_AARCH64_TSTBR14
	cases with BFD_RELOC_AARCH64_JUMP26.
	(elfNN_aarch64_check_relocs): Likewise.

ld	* testsuite/ld-aarch64/aarch64-elf.exp: New test
	emit-relocs-560.
	* testsuite/ld-aarch64/emit-relocs-560.d: New file.
	* testsuite/ld-aarch64/emit-relocs-560.s: New file.
2020-05-19 11:07:52 +01:00
..
2020-03-02 23:49:03 +10:30
2020-03-02 19:30:48 +10:30
2020-05-19 12:35:03 +09:30
2020-05-19 12:35:03 +09:30
2020-02-19 13:12:00 +10:30
2020-04-22 18:46:45 -07:00
2020-05-19 12:35:03 +09:30
2020-05-19 10:51:04 +09:30
2020-03-02 19:30:48 +10:30
2020-05-19 12:35:03 +09:30
2020-01-01 18:12:08 +10:30
2020-03-03 00:12:44 +10:30
2020-03-31 15:04:21 +10:30
2020-02-26 10:37:25 +10:30
2020-03-02 19:30:48 +10:30
2020-03-02 11:36:19 +10:30
2020-02-19 13:12:00 +10:30
2020-03-02 19:30:48 +10:30
2020-04-27 17:41:39 +01:00
2020-03-20 03:55:30 -07:00
2020-04-27 17:41:39 +01:00
2020-02-26 10:37:25 +10:30
2020-02-19 17:46:10 +00:00
2020-02-19 13:12:00 +10:30
2020-05-19 12:35:03 +09:30
2020-02-19 13:12:00 +10:30
2020-02-26 10:37:25 +10:30
2020-02-19 13:12:00 +10:30
2020-02-19 13:12:00 +10:30
2020-02-19 14:00:55 +10:30
2020-02-19 13:12:00 +10:30
2020-02-26 10:37:25 +10:30
2020-02-19 13:12:00 +10:30
2020-02-26 10:37:25 +10:30
2020-02-19 13:12:00 +10:30
2020-02-26 10:37:25 +10:30
2020-02-19 14:00:55 +10:30
2020-02-19 13:12:00 +10:30
2020-02-19 13:12:00 +10:30
2020-03-02 11:36:19 +10:30
2020-02-19 13:12:00 +10:30
2020-02-19 14:00:55 +10:30
2020-02-19 13:12:00 +10:30
2020-05-11 21:08:37 +09:30
2020-01-22 17:14:08 +10:30
2020-02-19 13:12:00 +10:30
2020-02-19 14:00:55 +10:30
2020-02-19 13:14:05 +10:30
2020-02-19 13:12:00 +10:30
2020-02-26 10:37:25 +10:30
2020-02-19 13:12:00 +10:30
2020-02-26 10:37:25 +10:30
2020-02-26 10:37:25 +10:30
2020-02-26 10:37:25 +10:30
2020-03-20 11:02:49 +10:30
2020-05-19 12:35:03 +09:30
2020-05-19 12:35:03 +09:30
2020-03-19 07:07:11 +01:00
2020-01-22 16:45:04 -08:00
2020-02-26 10:37:25 +10:30
2020-02-19 13:12:00 +10:30
2020-02-19 13:12:00 +10:30
2020-03-02 23:49:03 +10:30
2020-03-03 00:12:44 +10:30
2020-02-26 10:37:25 +10:30
2020-03-26 20:02:42 +10:30
2020-03-02 23:49:03 +10:30
2020-03-02 19:30:48 +10:30
2020-04-22 18:46:45 -07:00
2020-05-19 12:35:03 +09:30
2020-03-02 23:49:03 +10:30
2020-03-02 19:30:48 +10:30
2020-03-02 19:30:48 +10:30
2020-03-02 19:30:48 +10:30
2020-03-02 19:30:48 +10:30
2020-05-19 12:35:03 +09:30
2020-03-02 19:30:48 +10:30
2020-01-31 10:47:46 +10:30
2020-01-31 10:47:46 +10:30
2020-03-02 23:49:03 +10:30
2020-05-19 12:35:03 +09:30
2020-03-02 23:49:03 +10:30
2020-05-19 12:35:03 +09:30
2020-04-27 17:41:39 +01:00
2020-03-02 19:30:48 +10:30
2020-03-02 19:30:48 +10:30
2020-05-19 12:35:03 +09:30
2020-03-20 03:55:30 -07:00
2020-03-02 19:30:48 +10:30
2020-03-02 23:49:03 +10:30
2020-04-22 18:46:45 -07:00
2020-03-03 00:12:44 +10:30
2020-04-18 10:24:17 +09:30
2020-05-19 12:35:03 +09:30
2020-05-19 12:35:03 +09:30
2020-01-17 12:34:03 -06:00
2020-04-27 17:41:39 +01:00
2020-03-31 15:04:21 +10:30
2020-05-19 00:00:17 +00:00
2020-04-28 08:35:34 +09:30
2020-05-19 12:35:03 +09:30
2020-01-14 11:02:28 +10:30
2020-03-09 10:10:36 +10:30
2020-03-02 19:30:48 +10:30
2020-03-02 19:30:48 +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.

BFD is an object file library.  It permits applications to use the
same routines to process object files regardless of their format.

BFD is used by the GNU debugger, assembler, linker, and the binary
utilities.

The documentation on using BFD is scanty and may be occasionally
incorrect.  Pointers to documentation problems, or an entirely
rewritten manual, would be appreciated.

There is some BFD internals documentation in doc/bfdint.texi which may
help programmers who want to modify BFD.

BFD is normally built as part of another package.  See the build
instructions for that package, probably in a README file in the
appropriate directory.

BFD supports the following configure options:

  --target=TARGET
	The default target for which to build the library.  TARGET is
	a configuration target triplet, such as sparc-sun-solaris.
  --enable-targets=TARGET,TARGET,TARGET...
	Additional targets the library should support.  To include
	support for all known targets, use --enable-targets=all.
  --enable-64-bit-bfd
	Include support for 64 bit targets.  This is automatically
	turned on if you explicitly request a 64 bit target, but not
	for --enable-targets=all.  This requires a compiler with a 64
	bit integer type, such as gcc.
  --enable-shared
	Build BFD as a shared library.
  --with-mmap
	Use mmap when accessing files.  This is faster on some hosts,
	but slower on others.  It may not work on all hosts.

Report bugs with BFD to bug-binutils@gnu.org.

Patches are encouraged.  When sending patches, always send the output
of diff -u or diff -c from the original file to the new file.  Do not
send default diff output.  Do not make the diff from the new file to
the original file.  Remember that any patch must not break other
systems.  Remember that BFD must support cross compilation from any
host to any target, so patches which use ``#ifdef HOST'' are not
acceptable.  Please also read the ``Reporting Bugs'' section of the
gcc manual.

Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them.

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.