diff options
author | Steve Chamberlain <steve@cygnus> | 1991-05-08 19:21:48 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-05-08 19:21:48 +0000 |
commit | d0ec7a8ee45ad23107d26161b3499d33b99922a6 (patch) | |
tree | 297883f2c1184ec84635db108472d0587c46576d /bfd/archive.c | |
parent | a5c6b4b3b58effba6d4a89c71bf32c8daca005c6 (diff) | |
download | gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.zip gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.tar.gz gdb-d0ec7a8ee45ad23107d26161b3499d33b99922a6.tar.bz2 |
Various portability lints.
Fixed reloc bug in ieee and oasys.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r-- | bfd/archive.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index 4df6318..f1d8a6a 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -1144,7 +1144,7 @@ bsd_write_armap (arch, elength, map, orl_count, stridx) /* now write the strings themselves */ /* FIXME, this needs to be byte-swapped! */ temp = stridx + 4; - bfd_write (&temp, 1, sizeof (temp), arch); + bfd_write ((PTR)&temp, 1, sizeof (temp), arch); for (count = 0; count < orl_count; count++) bfd_write (*((map[count]).name), 1, strlen (*((map[count]).name))+1, arch); @@ -1211,9 +1211,9 @@ coff_write_armap (arch, elength, map, orl_count, stridx) /* Write the ar header for this item and the number of symbols */ - bfd_write ((char *)&hdr, 1, sizeof (struct ar_hdr), arch); + bfd_write ((PTR)&hdr, 1, sizeof (struct ar_hdr), arch); /* FIXME, this needs to be byte-swapped */ - bfd_write (&orl_count, 1, sizeof (orl_count), arch); + bfd_write ((PTR)&orl_count, 1, sizeof (orl_count), arch); /* Two passes, first write the file offsets for each symbol - remembering that each offset is on a two byte boundary @@ -1230,7 +1230,7 @@ coff_write_armap (arch, elength, map, orl_count, stridx) last_eltno++; } /* FIXME, this needs to be byte-swapped */ - bfd_write (&archive_member_file_ptr, + bfd_write ((PTR)&archive_member_file_ptr, 1, sizeof (archive_member_file_ptr), arch); @@ -1238,7 +1238,7 @@ coff_write_armap (arch, elength, map, orl_count, stridx) /* now write the strings themselves */ for (count = 0; count < orl_count; count++) { - bfd_write (*((map[count]).name), + bfd_write ((PTR)*((map[count]).name), 1, strlen (*((map[count]).name))+1, arch); |