[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] Stack pointer loaded on main entry?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] Stack pointer loaded on main entry? |
Date: |
Fri, 7 Mar 2003 13:46:18 +0100 |
User-agent: |
Mutt/1.2.5i |
As Harald Kipp wrote:
> Finally I got it done with
>
> #define main task_main
>
> But an additional dummy has to be declared
>
> #undef main
> int main(void)
> {
> return 0;
> }
That's because .init 9 has a jump to main.
I guess that
-Wl,--defsym=main=0
would do the trick, too. You still waste the jump in .init9, but that's
probably bearable.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
Re: [avr-libc-dev] Stack pointer loaded on main entry?, Marek Michalkiewicz, 2003/03/07