Author Topic: warning: dword data exceeds bounds  (Read 6084 times)

Offline Ketsuban

  • New Member
  • Posts: 1
warning: dword data exceeds bounds
« 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, 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 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?