From: jesusc Date: Tue, 15 Jul 2003 22:38:02 +0000 (+0000) Subject: sdcc option -Wl-bBSEG=0x08 works now... X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f081be2ab2cc73ab8c4f0acb924ab907163bf598;p=fw%2Fsdcc sdcc option -Wl-bBSEG=0x08 works now... git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2737 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/as/mcs51/lkarea.c b/as/mcs51/lkarea.c index 1d979b4f..d13f104e 100644 --- a/as/mcs51/lkarea.c +++ b/as/mcs51/lkarea.c @@ -382,7 +382,7 @@ lnkarea() /*JCF: Since area BSEG is defined just before BSEG_BYTES, use the bit size of BSEG to compute the byte size of BSEG_BYTES: */ if (!strcmp(ap->a_id, "BSEG")) { - ap->a_ap->a_axp->a_size=(ap->a_size+7)/8; /*Bits to bytes*/ + ap->a_ap->a_axp->a_size=(ap->a_addr/8)+((ap->a_size+7)/8); /*Bits to bytes*/ } else if (!strcmp(ap->a_id, "REG_BANK_0")) ta[0]=ap; else if (!strcmp(ap->a_id, "REG_BANK_1")) ta[1]=ap;