Add symver support for FreeBSD >= 14
This commit is contained in:
parent
0ce0533854
commit
ea75d5cf39
2 changed files with 10 additions and 0 deletions
9
tccasm.c
9
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;
|
||||
|
|
1
tcctok.h
1
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
|
||||
|
|
Loading…
Reference in a new issue