mirror of https://github.com/yasm/yasm.git
these cases seems to be a bug. If you get a linker error about ADDR32, it means you aren't using RIP-relative instructions. Note this means to access an array you need to do: lea rax, [var wrt rip] ; generates RIP-relative insn and REL32 reloc mov rcx, [rax+rbx] ; rbx is index and not: mov rcx, [var+rbx] ; generates ADDR32 reloc At least when trying to build a DLL (the ADDR32 reloc fails the DLL link). When building statically, ADDR32 should work okay and thus the latter form can be used. svn path=/trunk/yasm/; revision=12570.5.0rc2
parent
fc6e94054e
commit
a43f40ebf3
4 changed files with 21 additions and 42 deletions
Loading…
Reference in new issue