> For me it looks like a bug in compiler and/or linker. > But that said I'd be happy to be proved wrong. Multiple definitions of a global variable are undefined behavior in C. I'm surprised that you don't get link errors. I do in macOS.