diff options
author | Steve Chamberlain <steve@cygnus> | 1991-05-13 21:02:56 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-05-13 21:02:56 +0000 |
commit | 1a602d6e6119641d4b2d3640ccfbac9913dbaad5 (patch) | |
tree | 5d8796ee40b75950da35028c37b1ac5af08903c9 /bfd/sunos.c | |
parent | c42538adaf569b07eb4649623353d612561d6e39 (diff) | |
download | fsf-binutils-gdb-1a602d6e6119641d4b2d3640ccfbac9913dbaad5.zip fsf-binutils-gdb-1a602d6e6119641d4b2d3640ccfbac9913dbaad5.tar.gz fsf-binutils-gdb-1a602d6e6119641d4b2d3640ccfbac9913dbaad5.tar.bz2 |
* sunos.c: (choose_reloc_size) added: (sunos4_callback) calls
choose_reloc_size. (sunos4_write_object_contents) now calls
choose_reloc_size so outputs relocs correctly, also calculates the
size of the sections correctly.
* aout.c: (look in the rrgs I hate VI)
~
~
~
~
Diffstat (limited to 'bfd/sunos.c')
-rw-r--r-- | bfd/sunos.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bfd/sunos.c b/bfd/sunos.c index d9235da..a451a48 100644 --- a/bfd/sunos.c +++ b/bfd/sunos.c @@ -271,11 +271,8 @@ sunos4_write_object_contents (abfd) /* This is not strictly true, but will probably do for the default case. FIXME. */ - /* Also the size has already had the sizeof the header taken into - account. It may be wrong for the application to have to do this - (though this is what sizeof_headers is for), but it's the way - it is, so that's the way it will stay for the moment.*/ - execp->a_text = obj_textsec (abfd)->size ; /*+ sizeof(struct exec);*/ + + execp->a_text = obj_textsec (abfd)->size + EXEC_BYTES_SIZE; N_SET_MAGIC (*execp, ZMAGIC); } else if (abfd->flags & WP_TEXT) { N_SET_MAGIC (*execp, NMAGIC); |