Hello, I'm new to nasm and am trying to port a tool to it that generates asm code (currently generates tasm code). The tool may generate a large number of extern declarations for each asm file. Granted most of these are not actually used in any one asm file (this will be eventually remedied).
Anyway, it seems like for every 256th extern declaration, using the corresponding symbol causes nasm to seg fault. For example, I have something like:
...
extern loc_0
extern loc_1
... ;; 253 other extern declarations
extern loc_255
...
jmp loc_255
With the "jmp loc_255", nasm seg faults. Without it, everything runs fine. If I add an extra extern before the extern for loc_255, then it also works. ie. if I do this:
...
extern loc_254
extern blah
extern loc_255
...
I observed similar results for loc_511, and loc_757. I haven't exhaustively checked the remaining symbols, but it doesn't seem like there's a problem for other symbols.
Is this a known problem?