diff options
| author | 2025-10-21 13:11:45 +0200 | |
|---|---|---|
| committer | 2025-10-21 13:11:45 +0200 | |
| commit | aa9ba3a897327e7a88fbd1235eb21e2fb8d962d3 (patch) | |
| tree | ada521e0f55d6b2e1d8bddef387f900230594427 /c/c.c | |
| parent | 86d6b9842e04f79787622a410854407d197f8f3e (diff) | |
c: expr2reloc fix &gsym
Diffstat (limited to 'c/c.c')
| -rw-r--r-- | c/c.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1190,7 +1190,7 @@ globsym(union ref *psym, const struct expr *ex) static void expr2reloc(union ref *psym, vlong *paddend, const struct expr *ex) { - if (ex->t == EADDROF && globsym(psym, ex)) { + if (ex->t == EADDROF && globsym(psym, ex->sub)) { *paddend = 0; } else if (ex->t == EADDROF && (ex->sub->t == EGETF && globsym(psym, ex->sub->sub))) { *paddend = ex->sub->fld.off; |