diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-20 21:55:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-20 21:55:45 +0000 |
commit | 2f3508ad05b193386e250bee0cb8b30d23928af1 (patch) | |
tree | ada9ff855c0d95dec0fddcb8a124df083871b505 /bfd/coff-h8300.c | |
parent | 1cf8bd3f31a43932cad1d21cac4acf5b98983e56 (diff) | |
download | gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.zip gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.tar.gz gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.tar.bz2 |
* Many files: change all bfd_target vectors to be const. Change
all uses of bfd_target * to be const bfd_target *. Change
bfd_target_vector and bfd_default_vector arrays to be const
bfd_target * const *.
Diffstat (limited to 'bfd/coff-h8300.c')
-rw-r--r-- | bfd/coff-h8300.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/coff-h8300.c b/bfd/coff-h8300.c index 8c7af9b..14ac3d3 100644 --- a/bfd/coff-h8300.c +++ b/bfd/coff-h8300.c @@ -41,7 +41,7 @@ static reloc_howto_type howto_table[] = HOWTO (R_JMP2, 0, 0, 8, false, 0, complain_overflow_bitfield, 0, "pcrecl/16", true, 0x000000ff, 0x000000ff, false), - HOWTO (R_JMPL1, 0, 1, 32, false, 0, complain_overflow_bitfield, 0, "24/pcrell", true, 0x0000ffff, 0x0000ffff, false), + HOWTO (R_JMPL1, 0, 2, 32, false, 0, complain_overflow_bitfield, 0, "24/pcrell", true, 0x00ffffff, 0x00ffffff, false), HOWTO (R_JMPL_B8, 0, 0, 8, false, 0, complain_overflow_bitfield, 0, "pc8/24", true, 0x000000ff, 0x000000ff, false), HOWTO (R_MOVLB1, 0, 1, 16, false, 0, complain_overflow_bitfield, 0, "24/8", true, 0x0000ffff, 0x0000ffff, false), @@ -342,7 +342,7 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr, + dst_address + link_order->u.indirect.section->output_section->vma; int gap = (bfd_coff_reloc16_get_value (reloc, link_info, input_section) - - dot) + 1; + - dot) - 1; if (gap > 32767 || gap < -32768) { if (! ((*link_info->callbacks->reloc_overflow) @@ -562,7 +562,7 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr, -bfd_target h8300coff_vec = +const bfd_target h8300coff_vec = { "coff-h8300", /* name */ bfd_target_coff_flavour, @@ -599,6 +599,7 @@ bfd_target h8300coff_vec = BFD_JUMP_TABLE_RELOCS (coff), BFD_JUMP_TABLE_WRITE (coff), BFD_JUMP_TABLE_LINK (coff), + BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), COFF_SWAP_TABLE, }; |