Subject: Re: Self build error
To: None <thorpej@wasabisystems.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-dreamcast
Date: 01/25/2003 07:32:42
In article <20030124215106.GB8538@yeah-baby.shagadelic.org>
thorpej@wasabisystems.com wrote:
> On Sat, Jan 25, 2003 at 05:45:27AM +0900, Izumi Tsutsui wrote:
>
> > > Sounds more like "crt.o doesn't do .init/.fini".
> > > Not a problem with the compiler, but with csu.
> >
> > The following patch seems to fix the problem.
> > (though I don't know gas statements..)
>
> I'm a little confused as to why the globl is needed ... it's supposed
> to be calling a non-global (static) function...
I know all functions used in the macro declared as static, but
without .globl, MD_CALL_STATIC_FUNCTION(.init, __do_global_[cd]tors_aux)
jumps __ctors() (first function?), not __do_global_[cd]tors_aux().
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp