dbghelp/dwarf: Correctly compute address of label.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-10-06 10:02:12 +02:00 committed by Alexandre Julliard
parent 94abe0761e
commit 2da1698312
1 changed files with 1 additions and 1 deletions

View File

@ -1988,7 +1988,7 @@ static void dwarf2_parse_subprogram_label(dwarf2_subprogram_t* subpgm,
name.u.string = NULL;
loc.kind = loc_absolute;
loc.offset = subpgm->ctx->module_ctx->load_offset + low_pc.u.uvalue;
loc.offset = subpgm->ctx->module_ctx->load_offset + low_pc.u.uvalue - subpgm->func->address;
symt_add_function_point(subpgm->ctx->module_ctx->module, subpgm->func, SymTagLabel,
&loc, name.u.string);
}