From: Ben Gras Date: Wed, 23 Feb 2011 14:24:17 +0000 (+0000) Subject: fix for elf2aout X-Git-Tag: v3.2.0~641 X-Git-Url: http://zhaoyanbai.com/repos/FAQ?a=commitdiff_plain;h=beac6b15c9340812d08e33d079f4f93779bf9b72;p=minix.git fix for elf2aout introduced while making the diff with the original prettier :/ --- diff --git a/commands/elf2aout/elf2aout.c b/commands/elf2aout/elf2aout.c index c17b25a49..964b7a54d 100644 --- a/commands/elf2aout/elf2aout.c +++ b/commands/elf2aout/elf2aout.c @@ -223,6 +223,9 @@ usage: | OMAGIC); #endif + aex.a_text = text.len; + aex.a_data = data.len; + aex.a_bss = bss.len; #ifdef __minix aex.a_hdrlen = sizeof(struct exec); aex.a_magic[0] = A_MAGIC0; @@ -234,9 +237,6 @@ usage: /* total adds an implicit stack limit */ aex.a_total = aex.a_text + aex.a_data + aex.a_bss + 20 * 1024 * 1024; #endif - aex.a_text = text.len; - aex.a_data = data.len; - aex.a_bss = bss.len; aex.a_entry = ex.e_entry; aex.a_syms = (sizeof(struct nlist) * (symtabix != -1