aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-10-15 09:00:09 +0000
committerJohn Gilmore <gnu@cygnus>1992-10-15 09:00:09 +0000
commitf8e01940189dfd4a06f8818d4442ce6d39fd9539 (patch)
tree6100ef7299d0808978b22575fea4c1c4df1ea80d /bfd/coffcode.h
parentdac4929a6d43b500b573166e53a6706789c7cad1 (diff)
downloadgdb-f8e01940189dfd4a06f8818d4442ce6d39fd9539.zip
gdb-f8e01940189dfd4a06f8818d4442ce6d39fd9539.tar.gz
gdb-f8e01940189dfd4a06f8818d4442ce6d39fd9539.tar.bz2
* aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,
coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c, sco-core.c: Lint: Second argument of bfd_seek is always file_ptr. Third argument is SEEK_SET or SEEK_CUR. Result is always 0 or -1.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index a104051..6b311f9 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1230,7 +1230,7 @@ DEFUN(coff_object_p,(abfd),
}
/* Seek past the opt hdr stuff */
- bfd_seek(abfd, internal_f.f_opthdr + FILHSZ, SEEK_SET);
+ bfd_seek(abfd, (file_ptr) (internal_f.f_opthdr + FILHSZ), SEEK_SET);
/* if the optional header is NULL or not the correct size then
quit; the only difference I can see between m88k dgux headers (MC88DMAGIC)
@@ -2263,15 +2263,10 @@ coff_section_symbol (abfd, name)
bfd *abfd;
char *name;
{
- asection *sec = bfd_get_section_by_name (abfd, name);
+ asection *sec = bfd_make_section_old_way (abfd, name);
asymbol *sym;
combined_entry_type *csym;
- if (!sec)
- {
- /* create empty symbol */
- abort ();
- }
sym = sec->symbol;
if (coff_symbol_from (abfd, sym))
csym = coff_symbol_from (abfd, sym)->native;
@@ -2409,10 +2404,6 @@ DEFUN(coff_write_object_contents,(abfd),
current->target_index = count;
count++;
}
-
-
-
-
if(abfd->output_has_begun == false) {
coff_compute_section_file_positions(abfd);
@@ -2696,7 +2687,7 @@ DEFUN(coff_write_object_contents,(abfd),
internal_f.f_nsyms = bfd_get_symcount(abfd);
/* now write them */
- if (bfd_seek(abfd, 0L, SEEK_SET) != 0)
+ if (bfd_seek(abfd, (file_ptr) 0, SEEK_SET) != 0)
return false;
{
FILHDR buff;