Blame SOURCES/binutils-aa64-emit-DF_STATIC_TLS-when-relaxing-to-ie.patch

881b8e
--- binutils-2.23.52.0.1.orig/bfd/elf64-aarch64.c	2014-05-12 13:07:36.029172289 -0400
881b8e
+++ binutils-2.23.52.0.1/bfd/elf64-aarch64.c	2014-05-12 13:09:01.054623579 -0400
881b8e
@@ -5316,6 +5316,9 @@
881b8e
 
881b8e
 	    got_type = aarch64_reloc_got_type (r_type);
881b8e
 
881b8e
+	    if (!info->executable && (got_type & GOT_TLS_IE))
881b8e
+	      info->flags |= DF_STATIC_TLS;
881b8e
+
881b8e
 	    if (h)
881b8e
 	      {
881b8e
 		h->got.refcount += 1;