add patch fixing static linking bug with gotoff relocs on microblaze

This commit is contained in:
Rich Felker 2017-01-02 15:52:21 -05:00
parent 7db01153a2
commit 458feff9b0
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- binutils-2.27/bfd/elf32-microblaze.c.orig 2017-01-02 15:44:42.110115295 -0500
+++ binutils-2.27/bfd/elf32-microblaze.c 2017-01-02 15:43:22.768999626 -0500
@@ -2399,6 +2399,7 @@
tls_type |= (TLS_TLS | TLS_LD);
dogottls:
sec->has_tls_reloc = 1;
+ case R_MICROBLAZE_GOTOFF_64:
case R_MICROBLAZE_GOT_64:
if (htab->sgot == NULL)
{