--- Log opened Sat May 05 00:00:12 2018 | ||
shorne | ok, I got it to link the hello world program with -lboard-or1ksim and defining the .fini and .init sections in libgcc | 20:01 |
---|---|---|
shorne | but getting a segfault, it seems stack (r1) is not setup correctly when we get into main | 20:02 |
shorne | wallento: do you remember is newlib sets up the stack? or is that something that gets setup in gcc (in _init?) | 20:02 |
shorne | its probably something wrong with my prolog/epilog implementations | 20:03 |
ZipCPU | shorne: I've always needed to set the stack up in crt0 | 21:09 |
ZipCPU | There should be an open risc version of this module in the glue library section of newlib. | 21:09 |
ZipCPU | Your linker script should also initially send you to the function in crt0 that sets up the stack, and possibly copies any memory from flash to RAM. | 21:10 |
--- Log closed Sun May 06 00:00:14 2018 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!