This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: m68k custom startup - help, I am stuck


> Last six days I've spend over very trivial matter and I am really
> starting to lose my ability to think reasonably. I am writing startup
> code for my gcc compiled program for m68000 on custom made
> board so that I could compile motorola gdb stub.

If i read this correctly, you are putting your stack into bss,
your return address on the stack, and then you clear the bss,
including the return address.  So you return to address 0.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]