From a3ebdd0aeb834e3e7a644925ebb363d7b8064a52 Mon Sep 17 00:00:00 2001 From: grischka Date: Sun, 13 Feb 2011 17:41:05 +0100 Subject: tccpe: support leading underscore for symbols To make this the default, enable this line in libtcc.c:tcc_new: #if defined(TCC_TARGET_PE) && 0 s->leading_underscore = 1; and then recompile tcc and also libtcc1.a --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 613374e..3ce378d 100644 --- a/libtcc.c +++ b/libtcc.c @@ -991,8 +991,8 @@ LIBTCCAPI TCCState *tcc_new(void) #ifdef CHAR_IS_UNSIGNED s->char_is_unsigned = 1; #endif + /* enable this if you want symbols with leading underscore on windows: */ #if defined(TCC_TARGET_PE) && 0 - /* XXX: currently the PE linker is not ready to support that */ s->leading_underscore = 1; #endif if (s->section_align == 0) -- cgit v1.3.1