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