Help diagnose problems with the metag target when mixing static and shared binaries.

PR ld/20675
	* elf32-metag.c (elf_metag_relocate_section): Replace abort with
	an informative error message.
This commit is contained in:
Nick Clifton
2016-11-18 09:27:41 +00:00
parent cd42d70b4d
commit 6ec49e7c0a
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-11-18 Nick Clifton <nickc@redhat.com>
PR ld/20675
* elf32-metag.c (elf_metag_relocate_section): Replace abort with
an informative error message.
2016-11-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> 2016-11-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR ld/20789 PR ld/20789

View File

@ -1880,7 +1880,14 @@ elf_metag_relocate_section (bfd *output_bfd,
else else
{ {
/* We don't support changing the TLS model. */ /* We don't support changing the TLS model. */
abort (); /* PR 20675 */
if (bfd_link_pic (info))
_bfd_error_handler (_("%B(%A): multiple TLS models are not supported"),
input_bfd, input_section, name);
else
_bfd_error_handler (_("%B(%A): shared library symbol %s encountered whilst performing a static link"),
input_bfd, input_section, name);
return FALSE;
} }
cur_off += 8; cur_off += 8;