Just popping in
Joined: 2017/1/3 6:03 Last Login
: 2/19 21:09
From Atlanta GA
Group:
Registered Users
|
Hi I am hoping someone might have some insights into some programming issues I am having.
I have been working on porting a PowerPC compiler back- end from 32bit MAC Mach-o to Amiga and have had a pretty easy time making the necessary changes. I have it spitting out assembly and able to Assemble and Link with GCC.
So whats my challenge...
My simple Hello World will work upon clean boot and I can run it multiple times but after running and closing reopening shell it appears that the static variables are not being properly relocated/initialized and the program starts to misbehave or I get a DSI. I load in GDB and run and trace and it looks good. Run again and crash with DSI on access to static variables.
From what I can see by examining the object files/executable the relocation information looks good. Using the verbose option I see "-q" passed to ld so that should indicate to retain link information.
I am protecting the registers as best as I can determine to the ABI.
Anybody have ideas?
Thanks Doug
|