aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-microblaze.c
diff options
context:
space:
mode:
authorRich Felker <bugdal@aerifal.cx>2017-01-03 16:18:41 +0000
committerNick Clifton <nickc@redhat.com>2017-01-03 16:18:41 +0000
commitde1010f40884537cf0905ad134162cd2db71dc2a (patch)
tree7f38471913e34248058b3f3e25e403bfed30c07e /bfd/elf32-microblaze.c
parentb52d3cfcfb472263eca181da37dfc0377978acba (diff)
downloadfsf-binutils-gdb-de1010f40884537cf0905ad134162cd2db71dc2a.zip
fsf-binutils-gdb-de1010f40884537cf0905ad134162cd2db71dc2a.tar.gz
fsf-binutils-gdb-de1010f40884537cf0905ad134162cd2db71dc2a.tar.bz2
Fix generation of GOT table when only GOT-relative relocs are used.
PR ld/21017 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry for R_MICROBLAZE_GOTOFF_64.
Diffstat (limited to 'bfd/elf32-microblaze.c')
-rw-r--r--bfd/elf32-microblaze.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
index 52c60ef..7061328 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -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)
{