Re: [Sdcc-user] Z80 and custom crt0 - gsinit is pointing to GSFINAL instead of GSINIT

2009-07-10 Thread Alistair Buxton
vie, 10/7/09, Alistair Buxton escribió: > >> De: Alistair Buxton >> Asunto: Re: [Sdcc-user] Z80 and custom crt0 - gsinit is pointing to GSFINAL >> instead of GSINIT >> Para: sdcc-user@lists.sourceforge.net >> Fecha: viernes, 10 julio, 2009 11:3

Re: [Sdcc-user] Z80 and custom crt0 - gsinit is pointing to GSFINAL instead of GSINIT

2009-07-10 Thread Alistair Buxton
2009/7/7 Alistair Buxton : > 2009/7/7  : >> >> - Alistair Buxton wrote: >> >>> When I use my custom crt0, in the final binary, gsinit: is pointing to >>> GSFINAL instead of GSINIT. >> >> crt0 needs to be the first module in the list of modul

Re: [Sdcc-user] Z80 and custom crt0 - gsinit is pointing to GSFINAL instead of GSINIT

2009-07-07 Thread Alistair Buxton
2009/7/7 : > > - Alistair Buxton wrote: > >> When I use my custom crt0, in the final binary, gsinit: is pointing to >> GSFINAL instead of GSINIT. > > crt0 needs to be the first module in the list of modules you link. > If it is not first, then the gsinit label

[Sdcc-user] Z80 and custom crt0 - gsinit is pointing to GSFINAL instead of GSINIT

2009-07-07 Thread Alistair Buxton
CODE and DATA areas - all variables can be stored in CODE like consts are. Is there some way to tell the compiler to do that? Here is my custom crt0: ;; crt0 for Actions chips. ;; Based on SDCC's z80 crt0 ;; Modified by Alistair Buxton ;; Generic crt0.s for a Z80 .module crt0 .globl _m