diff --git a/tccasm.c b/tccasm.c index fcae05eb..bed03199 100644 --- a/tccasm.c +++ b/tccasm.c @@ -918,6 +918,15 @@ static void asm_parse_directive(TCCState *s1, int global) next(); 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 cfdc60dc..8f1315c1 100644 --- a/tcctok.h +++ b/tcctok.h @@ -405,6 +405,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