From 9ba76ac834608f76b734674048a7cc4334051e32 Mon Sep 17 00:00:00 2001 From: grischka Date: Sun, 9 Jul 2017 12:34:11 +0200 Subject: refactor sym & attributes tcc.h: * cleanup struct 'Sym' * include some 'Attributes' into 'Sym' * in turn get rid of VT_IM/EXPORT, VT_WEAK * re-number VT_XXX flags * replace some 'long' function args by 'int' tccgen.c: * refactor parse_btype() --- arm64-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arm64-gen.c') diff --git a/arm64-gen.c b/arm64-gen.c index c7a71e6..1ebbd2b 100644 --- a/arm64-gen.c +++ b/arm64-gen.c @@ -428,7 +428,7 @@ static void arm64_sym(int r, Sym *sym, unsigned long addend) // relocation and use only relocations with unlimited range. int avoid_adrp = 1; - if (avoid_adrp || (sym->type.t & VT_WEAK)) { + if (avoid_adrp || sym->a.weak) { // (GCC uses a R_AARCH64_ABS64 in this case.) greloca(cur_text_section, sym, ind, R_AARCH64_MOVW_UABS_G0_NC, addend); o(0xd2800000 | r); // mov x(rt),#0,lsl #0 -- cgit v1.3.1