| gcc -c -m64 -nostdlib -nostartfiles -nodefaultlibs -fomit-frame-pointer -mno-red-zone -o $1.o $1.c |
| gcc -c -m64 -nostdlib -nostartfiles -nodefaultlibs -fomit-frame-pointer -mno-red-zone -o libBareMetal.o libBareMetal.c |
| ld -T app.ld -o $1.app $1.o libBareMetal.o I believe that gcc is messing up BareMetal segment registers or stack ..can you please help me on this.I can not figure out what is wrong and crashes BM (and also QEMU reboots). |