diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-02 22:44:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-02 22:44:54 +0000 |
commit | a1ade84e4748187c9ceaba6b77d46b6445d915d7 (patch) | |
tree | 6ec3fe5f46b9cddba4ba9736a7d7953cbe19a4f1 /bfd | |
parent | 2855b89fe2bdf10e780afa4820de34241a4b68c4 (diff) | |
download | gdb-a1ade84e4748187c9ceaba6b77d46b6445d915d7.zip gdb-a1ade84e4748187c9ceaba6b77d46b6445d915d7.tar.gz gdb-a1ade84e4748187c9ceaba6b77d46b6445d915d7.tar.bz2 |
Add casts to pacify SunOS linker.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/sunos.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bfd/sunos.c b/bfd/sunos.c index bb3671e..7039d74 100644 --- a/bfd/sunos.c +++ b/bfd/sunos.c @@ -1029,7 +1029,7 @@ bfd_sunos_size_dynamic_sections (output_bfd, info, sdynptr, sneedptr, s = bfd_get_section_by_name (dynobj, ".hash"); BFD_ASSERT (s != NULL); hashalloc = (dynsymcount + bucketcount - 1) * HASH_ENTRY_SIZE; - s->contents = bfd_alloc (dynobj, hashalloc); + s->contents = (bfd_byte *) bfd_alloc (dynobj, hashalloc); if (s->contents == NULL && dynsymcount > 0) { bfd_set_error (bfd_error_no_memory); @@ -1079,7 +1079,7 @@ bfd_sunos_size_dynamic_sections (output_bfd, info, sdynptr, sneedptr, bfd_byte *contents; add = 8 - (s->_raw_size & 7); - contents = realloc (s->contents, s->_raw_size + add); + contents = (bfd_byte *) realloc (s->contents, s->_raw_size + add); if (contents == NULL) { bfd_set_error (bfd_error_no_memory); @@ -1096,7 +1096,7 @@ bfd_sunos_size_dynamic_sections (output_bfd, info, sdynptr, sneedptr, BFD_ASSERT (s != NULL); if (s->_raw_size != 0) { - s->contents = bfd_alloc (dynobj, s->_raw_size); + s->contents = (bfd_byte *) bfd_alloc (dynobj, s->_raw_size); if (s->contents == NULL) { bfd_set_error (bfd_error_no_memory); @@ -1122,7 +1122,7 @@ bfd_sunos_size_dynamic_sections (output_bfd, info, sdynptr, sneedptr, s = bfd_get_section_by_name (dynobj, ".dynrel"); if (s->_raw_size != 0) { - s->contents = bfd_alloc (dynobj, s->_raw_size); + s->contents = (bfd_byte *) bfd_alloc (dynobj, s->_raw_size); if (s->contents == NULL) { bfd_set_error (bfd_error_no_memory); @@ -1135,7 +1135,7 @@ bfd_sunos_size_dynamic_sections (output_bfd, info, sdynptr, sneedptr, /* Make space for the global offset table. */ s = bfd_get_section_by_name (dynobj, ".got"); - s->contents = bfd_alloc (dynobj, s->_raw_size); + s->contents = (bfd_byte *) bfd_alloc (dynobj, s->_raw_size); if (s->contents == NULL) { bfd_set_error (bfd_error_no_memory); @@ -1568,9 +1568,9 @@ sunos_scan_dynamic_symbol (h, data) ".dynstr"); BFD_ASSERT (s != NULL); if (s->contents == NULL) - contents = malloc (len + 1); + contents = (bfd_byte *) malloc (len + 1); else - contents = realloc (s->contents, s->_raw_size + len + 1); + contents = (bfd_byte *) realloc (s->contents, s->_raw_size + len + 1); if (contents == NULL) { bfd_set_error (bfd_error_no_memory); |