aboutsummaryrefslogtreecommitdiff
path: root/bfd/aout.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-05-12 07:31:23 +0000
committerSteve Chamberlain <steve@cygnus>1991-05-12 07:31:23 +0000
commit10be52bffd1016d6091eec0227e6775af5d1a9f6 (patch)
treecdad2305d06a66807e701af6444764e577d29b33 /bfd/aout.c
parenta8f3d651171c0296179c9b29367151c7d62f24fd (diff)
downloadgdb-10be52bffd1016d6091eec0227e6775af5d1a9f6.zip
gdb-10be52bffd1016d6091eec0227e6775af5d1a9f6.tar.gz
gdb-10be52bffd1016d6091eec0227e6775af5d1a9f6.tar.bz2
*** empty log message ***
Diffstat (limited to 'bfd/aout.c')
-rwxr-xr-xbfd/aout.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/aout.c b/bfd/aout.c
index d9518d3..00290ae 100755
--- a/bfd/aout.c
+++ b/bfd/aout.c
@@ -267,6 +267,7 @@ some_aout_object_p (abfd, callback_to_real_object_p)
header, should cope with them in this callback as well. */
#endif /* DOCUMENTATION */
+
return (*callback_to_real_object_p)(abfd);
}
@@ -412,7 +413,7 @@ aout_set_section_contents (abfd, section, location, offset, count)
obj_textsec(abfd)->filepos = sizeof(struct exec);
obj_textsec(abfd)->size = align_power(obj_textsec(abfd)->size,
obj_textsec(abfd)->alignment_power);
- obj_datasec(abfd)->filepos = obj_textsec (abfd)->filepos + obj_textsec (abfd)->size;
+ obj_datasec(abfd)->filepos = obj_textsec (abfd)->size;
obj_datasec(abfd)->size = align_power(obj_datasec(abfd)->size,
obj_datasec(abfd)->alignment_power);
@@ -1017,14 +1018,14 @@ swap_ext_reloc_out (abfd, g, natptr)
natptr->r_index[2] = r_index;
natptr->r_bits[0] =
(r_extern? RELOC_EXT_BITS_EXTERN_BIG: 0)
- || (r_type << RELOC_EXT_BITS_TYPE_SH_BIG);
+ | (r_type << RELOC_EXT_BITS_TYPE_SH_BIG);
} else {
natptr->r_index[2] = r_index >> 16;
natptr->r_index[1] = r_index >> 8;
natptr->r_index[0] = r_index;
natptr->r_bits[0] =
(r_extern? RELOC_EXT_BITS_EXTERN_LITTLE: 0)
- || (r_type << RELOC_EXT_BITS_TYPE_SH_LITTLE);
+ | (r_type << RELOC_EXT_BITS_TYPE_SH_LITTLE);
}
bfd_h_putlong (abfd, r_addend, natptr->r_addend);