assembling a assembly code contain C preprocessor(#define)
Hi
I try convert assemble code to object file. but i don't know how we can use gcc for this work, please help me. now, I find this file from grub 0.97. name of this file on source code this programm is start1.S. --you can find source code from grub-0.97\stage1\stage1.S-- I want just compiler two file start1.h and start1.S with together and make object file them. thank you. |
Try this:
Code:
cd somepath/grub-0.97/stage1 |
After do these commands , i see this error
saeed@saeed-VirtualBox:~/Desktop/grub-0.97-/stage1$ make stage1.o cc -c -o stage1.o stage1.S stage1.S:21:20: fatal error: stage1.h: No such file or directory compilation terminated. make: *** [stage1.o] Error 1 now what can i do ? |
Now what do you really want? Just compile grub from source? Or you have hacked the source and now it doesn't compile?
|
I want just compiler two file start1.h and start1.S with together and make object file them.
and I don't change source code . |
If you didn't change the source ./configure and make would work. (grub-0.97 is very old though)
|
All times are GMT -5. The time now is 08:40 AM. |