Questions tagged [common-symbol]

2 questions
1
vote
1 answer

Does OpenWatcom support an equivalent to ELF weak symbols?

I have two C source files: /* w1.c */ #include __attribute__((weak)) void fw(void) { printf("FW1\n"); } int main(int argc, char **argv) { (void)argc; (void)argv; fw(); return 0; } /* w2.c */ #include void fw(void) {…
pts
  • 80,836
  • 20
  • 110
  • 183
0
votes
2 answers

Support for common symbols in OpenWatcom C compiler

TL;DR How to use common (communal) symbols from C source code compiled with the OpenWatcom C compiler? FYI Some introductions on common symbols (mostly GCC, so it doesn't answer my question about OpenWatcom): .bss vs COMMON: what goes…
pts
  • 80,836
  • 20
  • 110
  • 183