mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
do not drop relocation kind in alias analysis
This commit is contained in:
parent
00a30954ac
commit
2e38c86af6
1
alias.c
1
alias.c
@ -19,6 +19,7 @@ getalias(Alias *a, Ref r, Fn *fn)
|
|||||||
if (c->type == CAddr) {
|
if (c->type == CAddr) {
|
||||||
a->type = ASym;
|
a->type = ASym;
|
||||||
a->label = c->label;
|
a->label = c->label;
|
||||||
|
a->rel = c->rel;
|
||||||
} else
|
} else
|
||||||
a->type = ACon;
|
a->type = ACon;
|
||||||
a->offset = c->bits.i;
|
a->offset = c->bits.i;
|
||||||
|
|||||||
1
all.h
1
all.h
@ -282,6 +282,7 @@ struct Alias {
|
|||||||
Ref base;
|
Ref base;
|
||||||
uint32_t label;
|
uint32_t label;
|
||||||
int64_t offset;
|
int64_t offset;
|
||||||
|
int rel;
|
||||||
Alias *slot;
|
Alias *slot;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user