diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-11-21 00:02:37 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2008-11-21 00:02:37 +0000 |
commit | 10455f89a67d238ba6c832b873be8d01d7137064 (patch) | |
tree | b293d9679dc2e398075b45bbe6646a8aef182940 /bfd/elfxx-target.h | |
parent | 5a29d1a0ec62602a47004fc41ff437d8a9ed77fc (diff) | |
download | gdb-10455f89a67d238ba6c832b873be8d01d7137064.zip gdb-10455f89a67d238ba6c832b873be8d01d7137064.tar.gz gdb-10455f89a67d238ba6c832b873be8d01d7137064.tar.bz2 |
* elf-bfd.h (struct elf_backend_data): New member got_elt_size.
(_bfd_elf_default_got_elt_size): Declare.
* elflink.c (struct alloc_got_off_arg): Replace member got_elt_size
by new member info.
(elf_gc_allocate_got_offsets): Adjust for calling bed->got_elt_size
to get the element size instead of using a gofarg entry.
(bfd_elf_gc_common_finalize_got_offsets): Similar.
(_bfd_elf_default_got_elt_size): New function.
* elfxx-target.h: New macro elf_backend_got_elt_size.
(elfNN_bed): Use it.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r-- | bfd/elfxx-target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index d897c32..811dbf5 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -446,6 +446,9 @@ #ifndef elf_backend_got_header_size #define elf_backend_got_header_size 0 #endif +#ifndef elf_backend_got_elt_size +#define elf_backend_got_elt_size _bfd_elf_default_got_elt_size +#endif #ifndef elf_backend_obj_attrs_vendor #define elf_backend_obj_attrs_vendor NULL #endif @@ -712,6 +715,7 @@ static struct elf_backend_data elfNN_bed = &elf_backend_size_info, elf_backend_special_sections, elf_backend_got_header_size, + elf_backend_got_elt_size, elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type, |