It appears that:
.global test
test:
...
jmp test
doesn't work as one would expect. It looks like the jmp instruciton
dereferences test, treating it like a function pointer rather than a label (in
my case, it became a forward jump rather than a backwards jump). Deleting the
.global pseudo-op (or adding an extra, non-global label at the same spot and
referencing that) works around the issue.
Frank
