What's wrong with this code?
idt:
dw int_0
dw 20h
db 0
db 8eh
dw 0
idt_end:
idt_descriptor:
size dw idt_end - idt - 1
dd idt
When i compile with nasm 'nasm -f coff', it says COFF do not support 32-bit-relocations. But, the aout format compiles the code.
??!!
Re:??!!
Well, this is just a guess but I would say it has to do either with using int_0 without declaring it anywhere or having:
dd idt
Since idt is the name of a label, it wouldn't have access to the absolute address where it would be loaded and if coff doesn't support relocation this could be a problem.
dd idt
Since idt is the name of a label, it wouldn't have access to the absolute address where it would be loaded and if coff doesn't support relocation this could be a problem.