??!!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
rahman

??!!

Post by rahman »

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.
thooot

Re:??!!

Post by thooot »

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.
Post Reply