Can't compile OS example
I am following this tutorial:
http://wiki.osdev.org/Bare_bones#Booting_the_kernel But I just can't get it to compile. What do you think is wrong? Code:
$ nasm -f elf -o loader.o loader.s |
Quote:
|
Code:
$ nasm -hf |
Quote:
|
But it says that "elf" is the same as "elf32"!
|
Quote:
I'm asking it again - you stubbornly refuse to see the 64 number ? |
But I don't want to compile it as 64-bit! I want it to be 32-bit!
|
Quote:
Code:
ld: i386 architecture of input file `loader.o' is incompatible with i386:x86-64 output Do you see the item in red ? Would you argue with linker ? Why do you care about the output file format ? I.e. why not doing what the linker wants from you ? |
Code:
$ nasm -f elf32 -o loader.o loader.s |
Quote:
|
Moderator note: Dear Sergei, it is not really necessary to be aggressive. A simple mention of the options that cause problems would be enough.
|
Because ld's output showed "i386", I assumed that that would be valid input.
I looked at the man page and I don't understand this: Code:
-A architecture |
Quote:
Which part of the item in red you do not understand ? As I have already asked you, did you read to the very end output produced by Code:
ld --help | less Did you comprehend and analyze the text ? Did you do analysis WRT relevant and irrelevant to your task items ? |
I read throught it, I believe that the answer might be there, but I just don't understand it.
I read it, but I don't understand it. I try to read documentation, but you always assume I don't. I say that I tried but I don't understand, but you keep falsely blaming me for not even trying. I'm just sick of that! |
Quote:
Quote:
|
All times are GMT -5. The time now is 07:17 PM. |