problem with cygwin
Posted: Sat Jul 05, 2008 11:41 pm
i have problem with cygwin when i go to make elf file
it send some error msg
kernel file is created but grub cann't boot from it
i don't know why that do with me make file
link file
pleas help i cant resume in tutorail
*********************************
i'm so sorry for my english beacuse english is my 3 language
it send some error msg
kernel file is created but grub cann't boot from it
i don't know why that do with me make file
Code: Select all
CPPFLAGS = -c -fno-builtin -fno-rtti -fno-exceptions
.PHONY: clean
OBJS = boot.o main.o system.o video.o
all: kernel.elf
kernel.elf: $(OBJS) link.ld
ld -T link.ld $(OBJS) -o kernel.tmp
objcopy -O elf32-i386 kernel.tmp a:/kernel.exe
objdump -D kernel.tmp > debug.o
f:/cygwin/mboot a:/kernel.bin
$(RM) kernel.tmp
$(RM) $(OBJS)
clean:
$(RM) $(OBJS)
%.o: ../src/%.cpp
g++ $(CPPFLAGS) $< -o $@
%.o: ../src/%.asm
nasm -f elf $< -o $@
Code: Select all
ENTRY(start)
SECTIONS
{
.text 0x100000 :
{
code = .; _code = .; __code = .;
*(.text)
. = ALIGN(4096);
}
.data :
{
data = .; _data = .; __data = .;
*(.data)
*(.rodata)
. = ALIGN(4096);
}
.bss :
{
bss = .; _bss = .; __bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .; _end = .; __end = .;
}
*********************************
i'm so sorry for my english beacuse english is my 3 language