From 80af6ce214dfd660b63a34fb18cb25822c5e60ec Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 3 Nov 1987 16:17:37 +0000 Subject: [PATCH] improved previous improvements --- mach/m68020/cv/cv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mach/m68020/cv/cv.c b/mach/m68020/cv/cv.c index 5cbcfc58f..1c49599fc 100644 --- a/mach/m68020/cv/cv.c +++ b/mach/m68020/cv/cv.c @@ -138,11 +138,14 @@ main(argc, argv) /* 410 file with ROMSG in instruction space */ rom_in_data = 0; magic= 0410 ; - textsize= outsect[TEXTSG].os_size + outsect[ROMSG].os_size ; - datasize= outsect[DATASG].os_size ; + textsize= (outsect[ROMSG].os_base - outsect[TEXTSG].os_base) + + outsect[ROMSG].os_size ; + datasize= outsect[BSSSG].os_base - outsect[DATASG].os_base ; if ( ! follows(&outsect[ROMSG], &outsect[TEXTSG])) fatal("rom segment must follow text\n") ; + outsect[TEXTSG].os_size = outsect[ROMSG].os_base - outsect[TEXTSG].os_base; + outsect[DATASG].os_size = datasize; bsssize = outsect[BSSSG].os_size; if ( outhead.oh_nsect==NSECT ) { if ( ! follows(&outsect[LSECT], &outsect[BSSSG]))