[cc65] possible linker bug

Date view Thread view Subject view

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-05-06 00:06:23


In bigboot.cfg:

SEGMENTS {
	 BSS: load = LORAM, type = bss, define = yes, align = $100;
}

in main.s:

   .import __BSS_START__
   .import __BSS_SIZE__

and then I assemble and link:

ld65 -C bigboot.cfg -m bigboot.map -o bigboot.bin main.o
Unresolved external `__BSS_START__' referenced in:
  main.s(10)
Error: 1 unresolved external(s) found - cannot create output file

Weirdness. Adding

SYMBOLS {
	__BSS_START__ = $200;
}

to the cfg works. Am I missing something?

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp_at_cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-05-06 00:09:01 CEST