X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.c;h=d50d9f3ffc997aebae45dbf8e7fae2148cdf5fb6;hp=1046588fd31e073351f6d363beb75e74a4da5a20;hb=2cc3049ac981e8485698b7592397bd66ddb5d9d0;hpb=daf2f61a3664329ae7f9609e1e14da2b8780fd10 diff --git a/sect.c b/sect.c index 1046588..d50d9f3 100644 --- a/sect.c +++ b/sect.c @@ -210,6 +210,7 @@ int fixtest(int sno, LONG loc) // int chcheck(LONG amt) { + DEBUG { printf("chcheck(%u)\n", amt); } // If in BSS section, no allocation required if (scattr & SBSS) return 0; @@ -217,12 +218,14 @@ int chcheck(LONG amt) if (!amt) amt = CH_THRESHOLD; + DEBUG { printf(" challoc=%i, ch_size=%i, diff=%i\n", challoc, ch_size, challoc-ch_size); } if ((int)(challoc - ch_size) >= (int)amt) return 0; if (amt < CH_CODE_SIZE) amt = CH_CODE_SIZE; + DEBUG { printf(" amt (adjusted)=%u\n", amt); } SECT * p = §[cursect]; CHUNK * cp = malloc(sizeof(CHUNK) + amt);