aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-11-28 13:00:18 +0000
committerJohn Gilmore <gnu@cygnus>1992-11-28 13:00:18 +0000
commit1f29e30b1f011b35c948b048e7f19cfa663d57d9 (patch)
tree6bdf19737e1e8dc3d65b1fc62b1c2049f892fdb5 /bfd/coffcode.h
parentd4a06831c1121dc4205135127d82a3fb6d53f26b (diff)
downloadgdb-1f29e30b1f011b35c948b048e7f19cfa663d57d9.zip
gdb-1f29e30b1f011b35c948b048e7f19cfa663d57d9.tar.gz
gdb-1f29e30b1f011b35c948b048e7f19cfa663d57d9.tar.bz2
* aout-target.h, aoutf1.h, trad-core.c, coffcode.h, libaout.h:
Eliminate all PROTO calls, replace with PARAMS for readability. * aoutx.h: Add type to callback parameter. * coff-mips.c: Don't call trad-core.h, not needed. * trad-core.c: Incorporate trad-core.h declarations. Fix comments. * trad-core.h: Eliminate, unused.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 29b83ff..3e11a86 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -672,7 +672,7 @@ DEFUN(coff_swap_aux_in,(abfd, ext1, type, class, in1),
in->x_sym.x_fcnary.x_ary.x_dimen[3] = bfd_h_get_16(abfd, (bfd_byte *) ext->x_sym.x_fcnary.x_ary.x_dimen[3]);
#endif
}
- if (class == C_BLOCK || ISFCN(type) || ISTAG(type)) {
+ if (class == C_BLOCK || ISFCN(type) || ISTAG(class)) {
in->x_sym.x_fcnary.x_fcn.x_lnnoptr = GET_FCN_LNNOPTR(abfd, ext);
in->x_sym.x_fcnary.x_fcn.x_endndx.l = GET_FCN_ENDNDX(abfd, ext);
}
@@ -749,7 +749,7 @@ DEFUN(coff_swap_aux_out,(abfd, inp, type, class, extp),
bfd_h_put_16(abfd, in->x_sym.x_tvndx , (bfd_byte *) ext->x_sym.x_tvndx);
#endif
- if (class == C_BLOCK || ISFCN(type) || ISTAG(type)) {
+ if (class == C_BLOCK || ISFCN(type) || ISTAG(class)) {
PUT_FCN_LNNOPTR(abfd, in->x_sym.x_fcnary.x_fcn.x_lnnoptr, ext);
PUT_FCN_ENDNDX(abfd, in->x_sym.x_fcnary.x_fcn.x_endndx.l, ext);
}
@@ -3876,7 +3876,7 @@ DEFUN(get_value,(reloc, seclet),
/* Add the value contained in the relocation */
- value += (short)((reloc->addend) & 0xffff);
+ value += reloc->addend;
return value;
}
@@ -4234,9 +4234,9 @@ DEFUN(bfd_coff_get_relocated_section_contents,(in_abfd, seclet, data),
#define coff_get_section_contents bfd_generic_get_section_contents
#define coff_close_and_cleanup bfd_generic_close_and_cleanup
-#define coff_bfd_debug_info_start bfd_void
+#define coff_bfd_debug_info_start bfd_void
#define coff_bfd_debug_info_end bfd_void
-#define coff_bfd_debug_info_accumulate (PROTO(void,(*),(bfd*, struct sec *))) bfd_void
+#define coff_bfd_debug_info_accumulate \
+ (void (*) PARAMS ((bfd *, struct sec *))) bfd_void
#define coff_bfd_get_relocated_section_contents bfd_generic_get_relocated_section_contents
-#define coff_bfd_relax_section bfd_generic_relax_section
-
+#define coff_bfd_relax_section bfd_generic_relax_section