Fix generation of GOT table when only GOT-relative relocs are used.
authorRich Felker <bugdal@aerifal.cx>
Tue, 3 Jan 2017 16:18:41 +0000 (16:18 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 3 Jan 2017 16:18:41 +0000 (16:18 +0000)
PR ld/21017
* elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
for R_MICROBLAZE_GOTOFF_64.

bfd/ChangeLog
bfd/elf32-microblaze.c

index 1e82218e9c19661e11e64b1e64dfcc8562f8f2d6..41d511948afe484449d4ade227d7b3dc1efbb84a 100644 (file)
@@ -1,3 +1,9 @@
+2017-01-03  Rich Felker  <bugdal@aerifal.cx>
+
+       PR ld/21017
+       * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
+       for R_MICROBLAZE_GOTOFF_64.
+
 2017-01-03  Nick Clifton  <nickc@redhat.com>
 
        * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
index 52c60efce651d73b3b46203554be746e702fec07..70613284cd95433ca735c68df4b6b601117b7f4a 100644 (file)
@@ -2353,6 +2353,7 @@ microblaze_elf_check_relocs (bfd * abfd,
         dogottls:
           sec->has_tls_reloc = 1;
          /* Fall through.  */
+        case R_MICROBLAZE_GOTOFF_64:
         case R_MICROBLAZE_GOT_64:
           if (htab->elf.sgot == NULL)
             {