summaryrefslogtreecommitdiff
path: root/bfd/elf32-or1k.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-or1k.c')
-rw-r--r--bfd/elf32-or1k.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bfd/elf32-or1k.c b/bfd/elf32-or1k.c
index 38406eda3d6..a7cfdb8a605 100644
--- a/bfd/elf32-or1k.c
+++ b/bfd/elf32-or1k.c
@@ -3238,6 +3238,13 @@ or1k_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
return TRUE;
}
+/* Determine the size of the header of for the GOT section. */
+
+static bfd_vma
+or1k_elf_got_header_size (struct bfd_link_info* info ATTRIBUTE_UNUSED)
+{
+ return 12;
+}
#define ELF_ARCH bfd_arch_or1k
#define ELF_MACHINE_CODE EM_OR1K
@@ -3270,7 +3277,7 @@ or1k_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
#define elf_backend_plt_readonly 1
#define elf_backend_want_got_plt 1
#define elf_backend_want_plt_sym 0
-#define elf_backend_got_header_size 12
+#define elf_backend_got_header_size or1k_elf_got_header_size
#define elf_backend_dtrel_excludes_plt 1
#define elf_backend_want_dynrelro 1