__CTOR_LIST__ behaviour

Christian Ludlam chris at recoil.org
Mon Apr 12 03:31:15 PDT 2004


On 12 Apr Peter Naulls wrote:

> In message <407A6D6C.60400 at dsvr.net>
>           Nick Burrett <nick at dsvr.net> wrote:
> 
> > Does this occur just in 26-bit mode ?
> > 
> > I wonder if it is caused by a mix of 26-bit and 32-bit object code, 
> > which might be breaking the program counter flags in __do_global_ctors() 
> > e.g. if the constructor is 32-bit and the __do_global_ctors function is 
> > compiled 26-bit.
> 
> No, all the code is compiled 32-bit. It wouldn't really achieve
> anything to be otherwise.  Of course, what isn't 32-bit is the older
> SCL which is being called.

This is probably the problem - StubsG patches the SCL when it initialises it
because various parts of the SCL rely on the flags being preserved across
calls from it.

-- 
Christian Ludlam
chris at recoil.org




More information about the gcc mailing list