aboutsummaryrefslogtreecommitdiff
path: root/alias.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2022-09-09 17:54:06 +0200
committerQuentin Carbonneaux <[email protected]>2022-10-08 21:48:47 +0200
commit2e38c86af6c91bfb23dfb06b517a00c11fd4c1b3 (patch)
treee92c3e9ca07bcf794db0d44fd3159b132857314b /alias.c
parent00a30954aca97004cb6f586bdeeabb488f1e3c3f (diff)
do not drop relocation kind in alias analysis
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/alias.c b/alias.c
index aa3846e..f4d7f91 100644
--- a/alias.c
+++ b/alias.c
@@ -19,6 +19,7 @@ getalias(Alias *a, Ref r, Fn *fn)
if (c->type == CAddr) {
a->type = ASym;
a->label = c->label;
+ a->rel = c->rel;
} else
a->type = ACon;
a->offset = c->bits.i;