diff --git a/tccasm.c b/tccasm.c index 2255e06c..5dea167b 100644 --- a/tccasm.c +++ b/tccasm.c @@ -971,6 +971,15 @@ static void asm_parse_directive(TCCState *s1, int global) } break; #endif + /* TODO: Implement symvar support. FreeBSD >= 14 needs this */ + case TOK_ASMDIR_symver: + next(); + next(); + skip(','); + next(); + skip('@'); + next(); + break; default: tcc_error("unknown assembler directive '.%s'", get_tok_str(tok, NULL)); break; diff --git a/tcctok.h b/tcctok.h index f2ebd815..bcd67f19 100644 --- a/tcctok.h +++ b/tcctok.h @@ -412,6 +412,7 @@ DEF_ASMDIR(short) DEF_ASMDIR(long) DEF_ASMDIR(int) + DEF_ASMDIR(symver) DEF_ASMDIR(section) /* must be last directive */ #if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64