www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/23/16:13:55

Message-Id: <199903231937.TAA23202@out5.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Tue, 23 Mar 1999 14:37:20 -0500
MIME-Version: 1.0
Subject: How to enable weak symbols in egcs
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019