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;
|
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;
|
||||||
|
|
1
tcctok.h
1
tcctok.h
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue