aboutsummaryrefslogtreecommitdiff
path: root/arm64-gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'arm64-gen.c')
-rw-r--r--arm64-gen.c2
1 files changed, 1 insertions, 1 deletions
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