Closed githubaf closed 3 years ago
works here as expected. maybe your libnix gets built without -fomit-frame-pointer
?
Thanks for looking. What I always do is rebuilding libnix with debug-information. So I have a script that does
time CFLAGS_FOR_TARGET=-g make libnix -j2 PREFIX=$PREFIX
The idea was to just add the -g, or does it overwrite your flags?
that overrides the flags. for debugging it's maybe a good idea.
with the last change swapstack.o is always built with -fomit-frame-pointer
Yes, now it works again. You build it with -fomit-frame-pointer even if I specify -g only. Thank you!
I tried to enforce a big stack by defining a global variable __stack and linking with libnix/lib/swapstack.o. The program seems to damage the memory structures of the Amiga somehow. I use the following test program:
The program crashes. If I comment the memset()-line, it displays Stacksize=1004096 as expected. If I set the stack in the shell to the same value the program requires, it displays that value and does not crash, even with the memset-line.
Am I doing something wrong or is swapstack.o broken?