From 1a602d6e6119641d4b2d3640ccfbac9913dbaad5 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Mon, 13 May 1991 21:02:56 +0000 Subject: * 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) ~ ~ ~ ~  --- bfd/sunos.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bfd/sunos.c') 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); -- cgit v1.1