NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: Ketsuban on April 10, 2016, 02:51:40 PM

Title: warning: dword data exceeds bounds
Post by: Ketsuban on April 10, 2016, 02:51:40 PM
I'm using nasm to assembly the bootstrap code for a 64-bit higher-half kernel, and am getting this warning on these two lines (full source here (https://gist.github.com/Ketsuban/93897f321101eec9af5638575f13205a), assembled with nasm -felf64 boot.asm).

Code: [Select]
lgdt [gdt64.pointer_low - KERNEL_BASE]
Code: [Select]
mov [pd_table - KERNEL_BASE + ecx * 8], eax
I found this thread (http://forum.nasm.us/index.php?topic=1180.0) on the same warning when searching which suggests it's spurious, but the suggested workaround doesn't work here because `&' operator may only be applied to scalar values. What can I do to convince nasm I know what I'm doing?