I'm kinda having some issues with linking my assembly. I use NASM for assembly and then I link it with ld. One minor problem is that the GLOBAL
directive only works if I define .data
section which I believe has something reasonable to it, but still: how is that important for exporting symbols? (I decided to use coff since that was the most similar format with what came out from g++ with -c option).
The major problem is, that even after I managed to link it, the calls lead to some address and the function is not there.
Thanks for your time reading and if you have some advice or maybe keywords I should google to get something about linking and symbols, that would be totally great.