YASM error: 'coff: invalid relocation size'
Posted: Sat May 24, 2008 9:55 pm
Hello i have this annoying error in my code
start.asm(443) : error: coff: invalid relocation size
this error only occurs when I assemble the code using the win64 format
but this is required as i am using a windows 64bit Linker
the code in question is
_res is declared in my c++ code as
and _portid is declared as (the value varies)
line 443 is in the above asm code
thanks for any help
start.asm(443) : error: coff: invalid relocation size
this error only occurs when I assemble the code using the win64 format
but this is required as i am using a windows 64bit Linker
the code in question is
Code: Select all
extern _portid
extern _res
global _aoutportb
_aoutportb:
mov dx, _portid
in ax, dx
mov [_res], al
Code: Select all
unsigned char res=0;
and _portid is declared as
Code: Select all
unsigned short portid
line 443 is in the above asm code
Code: Select all
mov dx, _portid