diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-03-27 23:04:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-03-27 23:04:01 +0000 |
commit | d3e572fefc2e912a649512738e34a355a53603c9 (patch) | |
tree | 62265bb6b7e3985a9b00f43e2a68594ca1d1c421 /bfd/coff-h8300.c | |
parent | 8230f31c92c3dc4c12a9b6531e50c82284455f95 (diff) | |
download | gdb-d3e572fefc2e912a649512738e34a355a53603c9.zip gdb-d3e572fefc2e912a649512738e34a355a53603c9.tar.gz gdb-d3e572fefc2e912a649512738e34a355a53603c9.tar.bz2 |
update copyrights
Diffstat (limited to 'bfd/coff-h8300.c')
-rw-r--r-- | bfd/coff-h8300.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/bfd/coff-h8300.c b/bfd/coff-h8300.c index 835b6e1..1de570f 100644 --- a/bfd/coff-h8300.c +++ b/bfd/coff-h8300.c @@ -1,5 +1,5 @@ /* BFD back-end for Hitachi H8/300 COFF binaries. - Copyright 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright 1990, 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. Written by Steve Chamberlain, <sac@cygnus.com>. This file is part of BFD, the Binary File Descriptor library. @@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "libbfd.h" #include "bfdlink.h" +#include "genlink.h" #include "coff/h8300.h" #include "coff/internal.h" #include "libcoff.h" @@ -76,6 +77,11 @@ static reloc_howto_type howto_table[] = HOWTO (R_MOVLB1, 0, 1, 16, false, 0, complain_overflow_bitfield,special, "24/8", false, 0x0000ffff, 0x0000ffff, false), HOWTO (R_MOVLB2, 0, 1, 16, false, 0, complain_overflow_bitfield, special, "8/24", false, 0x0000ffff, 0x0000ffff, false), + /* An indirect reference to a function. This causes the function's address + to be added to the function vector in lo-mem and puts the address of + the function vector's entry in the jsr instruction. */ + HOWTO (R_MEM_INDIRECT, 0, 0, 8, false, 0, complain_overflow_bitfield, special, "8/indirect", false, 0x000000ff, 0x000000ff, false), + }; @@ -157,8 +163,11 @@ rtype2howto (internal, dst) case R_MOVLB2: internal->howto = howto_table + 13; break; + case R_MEM_INDIRECT: + internal->howto = howto_table + 14; + break; default: - fprintf (stderr, "Bad reloc\n"); + abort (); break; } } @@ -388,6 +397,7 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr, break; } + case R_MEM_INDIRECT: /* Temporary */ case R_RELBYTE: { unsigned int gap = bfd_coff_reloc16_get_value (reloc, link_info, @@ -602,8 +612,8 @@ const bfd_target h8300coff_vec = { "coff-h8300", /* name */ bfd_target_coff_flavour, - true, /* data byte order is big */ - true, /* header byte order is big */ + BFD_ENDIAN_BIG, /* data byte order is big */ + BFD_ENDIAN_BIG, /* header byte order is big */ (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | |