H.J. Lu 8b43e45688 x86-64: Improve GOTPCREL relocation conversion
When GOTPCREL relocation conversion leads to relocation overflow, we
may get a mysterious linker message, like

relocation truncated to fit: R_X86_64_32S against symbol `foo'

This patch changes the linker message to

failed to convert GOTPCREL relocation; relink with --no-relax

bfd/

	* elf64-x86-64.c (elf_x86_64_convert_load_reloc): Remove the sec
	argument.  Don't check relocation overflow.  Avoid relocation
	overflow if --no-relax is used.  Set converted_reloc on symbol
	if a GOTPCREL relocation is converted.
	(elf_x86_64_relocate_section): Issue a fatal error and suggest
	--no-relax if GOTPCREL relocation conversion leads to relocation
	overflow.
	* elfxx-x86.h (elf_x86_link_hash_entry): Add converted_reloc.

ld/

	* testsuite/ld-x86-64/pr19609-4e.d: Updated.
	* testsuite/ld-x86-64/pr19609-6a.d: Likewise.
2017-09-05 11:24:14 -07:00
..
2013-11-21 04:53:05 -08:00
2013-11-21 04:53:05 -08:00
2015-10-22 04:56:39 -07:00
2015-02-19 04:45:27 -08:00
2014-11-13 11:09:40 -08:00
2014-11-13 11:09:40 -08:00
2016-02-26 05:01:34 -08:00
2016-02-26 05:01:34 -08:00
2016-02-26 05:01:34 -08:00
2016-02-26 05:01:34 -08:00
2016-02-26 05:01:34 -08:00
2016-02-26 05:01:34 -08:00
2016-02-26 05:01:34 -08:00
2017-05-11 11:28:16 -07:00
2017-05-11 11:28:16 -07:00
2017-05-11 11:28:16 -07:00
2017-05-11 11:28:16 -07:00
2017-06-21 14:45:57 -07:00
2017-04-03 08:08:27 -07:00
2016-04-20 11:13:56 -07:00
2016-04-20 11:13:56 -07:00
2015-02-19 04:45:27 -08:00
2016-04-20 11:12:22 -07:00
2014-11-20 13:29:41 -08:00
2015-10-29 09:18:57 -07:00
2015-04-22 23:19:59 +09:30
2015-04-01 04:24:24 -07:00
2015-04-01 04:24:24 -07:00
2016-02-02 06:36:52 -08:00
2015-10-01 09:31:16 +09:30
2015-10-28 03:20:55 -07:00
2015-10-28 03:20:55 -07:00
2016-03-13 08:57:10 -07:00
2016-03-13 08:57:10 -07:00
2016-03-13 08:57:10 -07:00
2016-02-26 05:01:34 -08:00
2016-02-26 05:01:34 -08:00
2016-04-19 20:11:55 -07:00
2016-03-15 11:47:06 -07:00
2016-03-15 11:47:06 -07:00
2016-03-15 11:47:06 -07:00
2017-08-31 03:54:01 -07:00
2017-08-31 03:54:01 -07:00
2017-08-31 03:54:01 -07:00