Re: crtstuff sentinels

2005-12-07 Thread Paul Brook
On Thursday 08 December 2005 00:52, DJ Delorie wrote: > > > The "-1" sentinal used for CTOR_LIST is not a representable address, > > > and the code gcc ends up using compares 0x (the -1) with > > > 0x00ff (what ends up in $a0) and it doesn't match. > > > > > > Suggestions? > > > > Use E

Re: crtstuff sentinels

2005-12-07 Thread DJ Delorie
> > The "-1" sentinal used for CTOR_LIST is not a representable address, > > and the code gcc ends up using compares 0x (the -1) with > > 0x00ff (what ends up in $a0) and it doesn't match. > > > > Suggestions? > > Use ELF .init_array/.fini_array I got distracted trying to support thi

Re: crtstuff sentinels

2005-12-05 Thread Paul Brook
> The "-1" sentinal used for CTOR_LIST is not a representable address, > and the code gcc ends up using compares 0x (the -1) with > 0x00ff (what ends up in $a0) and it doesn't match. > > Suggestions? Use ELF .init_array/.fini_array Paul

crtstuff sentinels

2005-12-05 Thread DJ Delorie
The m32c-elf port uses PSImode for pointers, which, for m32c (vs m16c) only have 24 bits of precision in a 32 bit word. The address registers are 24 bit unsigned registers. The "-1" sentinal used for CTOR_LIST is not a representable address, and the code gcc ends up using compares 0x (th