From: Martin, Chris; on Date: Thursday, July 29, 2004, at 12:43 PM -0400 > > My linker command file looks like: > > MEMORY { > ZP: start = $82, size = $7E, type = rw, define = yes; > #HEADER: start = $0000, size = $6, file = %O; > HEADER: start = $33f0, size = $6, file = %O; > RAM: start = $6000, size = $5c1f, file = %O; > BANK: start = $4000, size = $4000, type = ro; > #SECHDR: start = $0006, size = $4, file = %O; > SECHDR: start = $33f6, size = $4, file = %O; > #RAM28: start = $2800, size = $1800, file = %O; > RAM28: start = $3400, size = $1800, file = %O; > } > > SEGMENTS { > EXEHDR: load = HEADER, type = wprot; > CODE: load = RAM, type = wprot, define = yes; > BSS: load = RAM, type = bss, define = yes; > CHKHDR: load = SECHDR, type = wprot; > CODE2: load = RAM28, type = wprot, define = yes; > #DATA: load = RAM28, type = rw, align = $200; > DATA: load = RAM28, type = rw; > RODATA: load = RAM28, type = wprot; > ZEROPAGE: load = ZP, type = zp; > AUTOSTRT: load = RAM, type = wprot, define = yes; > } The "file = %O" is written in the order that the areas are listed in the "memory { }" section. Isn't AUTOSTRT supposed to be at the very end of the file? The above script puts it in the middle. It needs to be loaded from its own memory-area that is defined by a "last line" in "memory { }". (You can call that memory-area AUTOSTRT, too.) ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Jul 30 00:37:09 2004
This archive was generated by hypermail 2.1.8 : 2004-07-30 00:37:54 CEST