From a9fda392a0d03d62f0bef0acd42ec82b29216ab3 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 14 Apr 2014 03:33:50 +0200 Subject: Parse assembler .hidden directive This makes TCCs assembler understand the '.hidden symbol' directive (and emits a STV_HIDDEN ELF symbol then). --- libtcc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index a24ef2d..05abaef 100644 --- a/libtcc.c +++ b/libtcc.c @@ -508,6 +508,9 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section, if (sym->type.t & VT_IMPORT) other |= 4; } +#else + if (! (sym->type.t & VT_STATIC)) + other = (sym->type.t & VT_VIS_MASK) >> VT_VIS_SHIFT; #endif if (tcc_state->leading_underscore && can_add_underscore) { buf1[0] = '_'; -- cgit v1.3.1