aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-11-18 01:06:45 +0000
committerRichard Henderson <rth@redhat.com>1999-11-18 01:06:45 +0000
commit86dc0f79f59480ef98f870c71d2e38ea23e56a04 (patch)
treee77d39aec1b71c080b4520e09dd6103f9e562333 /bfd/elfxx-target.h
parent22b3e891f0fe72093d144f7442aa9c777e5a6bf4 (diff)
downloadgdb-86dc0f79f59480ef98f870c71d2e38ea23e56a04.zip
gdb-86dc0f79f59480ef98f870c71d2e38ea23e56a04.tar.gz
gdb-86dc0f79f59480ef98f870c71d2e38ea23e56a04.tar.bz2
* elf-bfd.h (struct elf_backend_data): Reorder collect and
type_change_ok; add sign_extend_vma. * elf32-mips.c (elf_backend_sign_extend_vma): Define. * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma. (elf_swap_shdr_in, elf_swap_phdr_in): Likewise. * elfxx-target.h (elf_backend_sign_extend_vma): Default. (elfNN_bed): Follow struture changes.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 3a787a2..2e7579b 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -338,6 +338,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define elf_backend_size_info _bfd_elfNN_size_info
#endif
+#ifndef elf_backend_sign_extend_vma
+#define elf_backend_sign_extend_vma 0
+#endif
+
extern const struct elf_size_info _bfd_elfNN_size_info;
static CONST struct elf_backend_data elfNN_bed =
@@ -345,8 +349,6 @@ static CONST struct elf_backend_data elfNN_bed =
ELF_ARCH, /* arch */
ELF_MACHINE_CODE, /* elf_machine_code */
ELF_MAXPAGESIZE, /* maxpagesize */
- elf_backend_collect,
- elf_backend_type_change_ok,
elf_info_to_howto,
elf_info_to_howto_rel,
elf_backend_sym_is_global,
@@ -384,9 +386,12 @@ static CONST struct elf_backend_data elfNN_bed =
elf_backend_got_symbol_offset,
elf_backend_got_header_size,
elf_backend_plt_header_size,
+ elf_backend_collect,
+ elf_backend_type_change_ok,
elf_backend_may_use_rel_p,
elf_backend_may_use_rela_p,
elf_backend_default_use_rela_p,
+ elf_backend_sign_extend_vma,
elf_backend_want_got_plt,
elf_backend_plt_readonly,
elf_backend_want_plt_sym,