NASM issue on OSX 64-bit [duplicate]

If you’re using nasm 2.11.08, there is a issue documented here to do with relative addressing combined with multiple entries in the data section.

You can do one (or both) of two things to be certain.

First, you can have a look at the generated assembler code to investigate what it’s actually churning out. That’s probably the definitive option since you can then see exactly what the CPU will be running.

Second, you can test your code with an earlier release of nasm to see if the problem goes away. If so, that’s indirect evidence that it’s the bug in 2.11.08 causing your issues.

Leave a Comment