Add symver support for FreeBSD >= 14

This commit is contained in:
herman ten brugge 2024-12-12 20:59:50 +01:00
parent 0ce0533854
commit ea75d5cf39
2 changed files with 10 additions and 0 deletions

View file

@ -971,6 +971,15 @@ static void asm_parse_directive(TCCState *s1, int global)
} }
break; break;
#endif #endif
/* TODO: Implement symvar support. FreeBSD >= 14 needs this */
case TOK_ASMDIR_symver:
next();
next();
skip(',');
next();
skip('@');
next();
break;
default: default:
tcc_error("unknown assembler directive '.%s'", get_tok_str(tok, NULL)); tcc_error("unknown assembler directive '.%s'", get_tok_str(tok, NULL));
break; break;

View file

@ -412,6 +412,7 @@
DEF_ASMDIR(short) DEF_ASMDIR(short)
DEF_ASMDIR(long) DEF_ASMDIR(long)
DEF_ASMDIR(int) DEF_ASMDIR(int)
DEF_ASMDIR(symver)
DEF_ASMDIR(section) /* must be last directive */ DEF_ASMDIR(section) /* must be last directive */
#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64 #if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64