aboutsummaryrefslogtreecommitdiff
path: root/bfd/versados.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-06-15 21:18:17 +0000
committerStan Shebs <shebs@codesourcery.com>1995-06-15 21:18:17 +0000
commite0151f38e1579b8f043603060c2ff0f84846652c (patch)
tree947cf43829d078065577a813e8ebd92b41fff7a3 /bfd/versados.c
parentf6d6f1028e548ad691467c88d852b3ed94887881 (diff)
downloadgdb-e0151f38e1579b8f043603060c2ff0f84846652c.zip
gdb-e0151f38e1579b8f043603060c2ff0f84846652c.tar.gz
gdb-e0151f38e1579b8f043603060c2ff0f84846652c.tar.bz2
* bfd-in.h, bfd-in2.h (bfd_boolean): Rename bfd_true, bfd_false
to bfd_tttrue, bfd_fffalse so as not to conflict with functions. * coffswap.h (coff_swap_scnhdr_out): Remove version that was hacked for MPW C. * mpw-config.in: Set shell vars instead of pasting to makefile for each configuration, edit coffswap.h to make MPW C not choke. (i386-unknown-coff, sh-hitachi-hms): Recognize. * mpw-make.in (BFD_LIBS): Add versados.c.o. * versados.c (versados_scan): Properly cast results from bfd_alloc.
Diffstat (limited to 'bfd/versados.c')
-rw-r--r--bfd/versados.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/versados.c b/bfd/versados.c
index d77bb5e..ad89ccd 100644
--- a/bfd/versados.c
+++ b/bfd/versados.c
@@ -489,10 +489,10 @@ versados_scan (abfd)
if (esdid->section)
{
esdid->section->relocation
- = bfd_alloc (abfd, sizeof (arelent) * esdid->relocs);
+ = (arelent *) bfd_alloc (abfd, sizeof (arelent) * esdid->relocs);
esdid->contents
- = bfd_alloc (abfd, esdid->section->_raw_size);
+ = (unsigned char *) bfd_alloc (abfd, esdid->section->_raw_size);
esdid->pc = 0;
esdid->section->reloc_count = esdid->relocs;
@@ -505,7 +505,7 @@ versados_scan (abfd)
VDATA (abfd)->stringlen += strlen (esdid->section->name) + 1;
}
}
- VDATA (abfd)->symbols = bfd_alloc (abfd,
+ VDATA (abfd)->symbols = (asymbol *) bfd_alloc (abfd,
sizeof (asymbol) * abfd->symcount);
VDATA (abfd)->strings = bfd_alloc (abfd, VDATA (abfd)->stringlen);
abfd->symcount = VDATA (abfd)->nsyms;
@@ -788,6 +788,7 @@ versados_canonicalize_reloc (abfd, section, relptr, symbols)
#define versados_bfd_link_hash_table_create _bfd_generic_link_hash_table_create
#define versados_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define versados_bfd_final_link _bfd_generic_final_link
+#define versados_bfd_link_split_section _bfd_generic_link_split_section
const bfd_target versados_vec =
{