Mail Archives: djgpp-workers/1999/03/23/16:13:55
I keep forgetting to mention how to enable weak symbols and the
improved C++ template support that comes with it. Add this snippet to
gcc/config/i386/go32.h in egcs 1.1.2 or to gcc/config/i386/djgpp.h in the
current egcs snapshot then make the compiler as usual. You will also
need the binaries produced by making the binutils 2.10 snapshot in
order to make use of weak symbol support.
/* This is how we tell the assembler that a symbol is weak. */
#define ASM_WEAKEN_LABEL(FILE,NAME) \
do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
fputc ('\n', FILE); } while (0)
---
Mark Elbrecht, snowball3 AT usa DOT net
http://snowball.digitalspace.net/
- Raw text -