summary refs log tree commit diff
path: root/load.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-09-09 17:54:06 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-10-08 21:48:47 +0200
commit2e38c86af6c91bfb23dfb06b517a00c11fd4c1b3 (patch)
treee92c3e9ca07bcf794db0d44fd3159b132857314b /load.c
parent00a30954aca97004cb6f586bdeeabb488f1e3c3f (diff)
downloadroux-2e38c86af6c91bfb23dfb06b517a00c11fd4c1b3.tar.gz
do not drop relocation kind in alias analysis
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/load.c b/load.c
index cca8400..7146ce8 100644
--- a/load.c
+++ b/load.c
@@ -155,7 +155,7 @@ load(Slice sl, bits msk, Loc *l)
 			c.type = CAddr;
 			c.label = a->label;
 			c.bits.i = a->offset;
-			c.rel = RelDef;
+			c.rel = a->rel;
 			r = newcon(&c, curf);
 			break;
 		}