PDATA segment too big when commenting code

I have a project that compiles to about 30KB, so it takes a while to load to my 8051. I'm trying to fix a small part, so I commented-out most of my main() routine. The linker now warns me and says it won't include the uncalled segments, (good,) but then it says I've run out of PDATA space for many of the functions that remain, (bad.) I'm using the Compact memory model. When I don't comment-out these function calls, the whole project links correctly. Is this strange behavior, or am I missing something obvious? Thanks.

More questions in this forum