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 David Lucena
--- El 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:31 > 2009/7/7 Alistair Bux

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 modules you link. >> If it is not first, then the gsinit la

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 will not be ahead of the stuff >

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

2009-07-07 Thread bobrob
- 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 will not be ahead of the stuff the compiler puts in th

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

2009-07-07 Thread Alistair Buxton
Hi, When I use my custom crt0, in the final binary, gsinit: is pointing to GSFINAL instead of GSINIT. Therefore, global variables do not get initialised. Also, GSINIT is placed into DATA which seems to be wrong. Finally, since my device only has RAM and not ROM, I don't think I need separate CODE