aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-i960.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-10 17:27:22 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-10 17:27:22 +0000
commit22aabad533bdca449695c5653029f80ad039723f (patch)
tree86396de415a411c071b8833a2a20caeb06f73ecf /bfd/coff-i960.c
parentd3f6b4638aaf0a0c790e343fa94337db1aad6a91 (diff)
downloadgdb-22aabad533bdca449695c5653029f80ad039723f.zip
gdb-22aabad533bdca449695c5653029f80ad039723f.tar.gz
gdb-22aabad533bdca449695c5653029f80ad039723f.tar.bz2
* coff-i960.c (coff_i960_reloc_type_lookup): Add BFD_RELOC_CTOR.
* linker.c (_bfd_generic_link_write_global_symbol): Don't assume the section of a common symbol is not NULL.
Diffstat (limited to 'bfd/coff-i960.c')
-rw-r--r--bfd/coff-i960.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/coff-i960.c b/bfd/coff-i960.c
index c505798..550b75c 100644
--- a/bfd/coff-i960.c
+++ b/bfd/coff-i960.c
@@ -1,5 +1,5 @@
/* BFD back-end for Intel 960 COFF files.
- Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
Written by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -128,6 +128,7 @@ coff_i960_reloc_type_lookup (abfd, code)
case BFD_RELOC_I960_CALLJ:
return &howto_optcall;
case BFD_RELOC_32:
+ case BFD_RELOC_CTOR:
return &howto_rellong;
case BFD_RELOC_24_PCREL:
return &howto_iprmed;
@@ -165,7 +166,7 @@ bfd_target icoff_little_vec =
HAS_SYMS | HAS_LOCALS | WP_TEXT),
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
- 0, /* leading underscore */
+ '_', /* leading underscore */
'/', /* ar_pad_char */
15, /* ar_max_namelen */
@@ -192,6 +193,7 @@ bfd_target icoff_little_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,
};
@@ -209,7 +211,7 @@ bfd_target icoff_big_vec =
HAS_SYMS | HAS_LOCALS | WP_TEXT),
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
- 0, /* leading underscore */
+ '_', /* leading underscore */
'/', /* ar_pad_char */
15, /* ar_max_namelen */
@@ -236,6 +238,7 @@ bfd_getb64, bfd_getb_signed_64, bfd_putb64,
BFD_JUMP_TABLE_RELOCS (coff),
BFD_JUMP_TABLE_WRITE (coff),
BFD_JUMP_TABLE_LINK (coff),
+ BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
COFF_SWAP_TABLE,
};