One thing I've noticed (and I don't have any experience with vbcc) is that you specify -mrel which might suggest base-relative code but you link with startup.o. Usually there are different startups depending if you go for relative code or not. I.e. I would expect to link with startuprel.o or something.
|