summaryrefslogtreecommitdiff
path: root/bfd/elf32-cr16.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-cr16.c')
-rw-r--r--bfd/elf32-cr16.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/bfd/elf32-cr16.c b/bfd/elf32-cr16.c
index c93fd9da8f8..7853f9e3c89 100644
--- a/bfd/elf32-cr16.c
+++ b/bfd/elf32-cr16.c
@@ -633,7 +633,7 @@ _bfd_cr16_elf_create_got_section (bfd * abfd, struct bfd_link_info * info)
return FALSE;
/* The first bit of the global offset table is the header. */
- s->size += bed->got_header_size;
+ s->size += bed->got_header_size (info);
return TRUE;
}
@@ -2792,6 +2792,14 @@ _bfd_cr16_elf_reloc_type_class (const struct bfd_link_info *info ATTRIBUTE_UNUSE
}
}
+/* Determine the size of the header of for the GOT section. */
+
+static bfd_vma
+_bfd_cr16_elf_got_header_size (struct bfd_link_info* info ATTRIBUTE_UNUSED)
+{
+ return 12;
+}
+
/* Definitions for setting CR16 target vector. */
#define TARGET_LITTLE_SYM cr16_elf32_vec
#define TARGET_LITTLE_NAME "elf32-cr16"
@@ -2838,6 +2846,7 @@ _bfd_cr16_elf_reloc_type_class (const struct bfd_link_info *info ATTRIBUTE_UNUSE
_bfd_cr16_elf_finish_dynamic_sections
#define elf_backend_reloc_type_class _bfd_cr16_elf_reloc_type_class
+#define elf_backend_got_header_size _bfd_cr16_elf_got_header_size
#define elf_backend_want_got_plt 1