49857a
--- binutils.orig/bfd/elf64-x86-64.c	2018-03-19 11:50:18.770407381 +0000
49857a
+++ binutils-2.27/bfd/elf64-x86-64.c	2018-03-19 12:01:12.177534677 +0000
49857a
@@ -1931,6 +1931,9 @@ elf_x86_64_convert_load_reloc (bfd *abfd
49857a
     {
49857a
       bfd_signed_vma distance;
49857a
 
49857a
+      if (tsec->output_section == NULL)
49857a
+	return TRUE;
49857a
+
49857a
       /* At this point, we don't know the load addresses of TSEC
49857a
 	 section nor SEC section.  We estimate the distrance between
49857a
 	 SEC and TSEC.  We store the estimated distances in the