|
@@ -717,7 +717,7 @@ int dso__load_sym(struct dso *dso, struct map *map, const char *name, int fd,
|
|
goto new_symbol;
|
|
goto new_symbol;
|
|
}
|
|
}
|
|
|
|
|
|
- if (curr_dso->adjust_symbols) {
|
|
|
|
|
|
+ if (curr_dso->adjust_symbols && sym.st_value) {
|
|
pr_debug4("%s: adjusting symbol: st_value: %#" PRIx64 " "
|
|
pr_debug4("%s: adjusting symbol: st_value: %#" PRIx64 " "
|
|
"sh_addr: %#" PRIx64 " sh_offset: %#" PRIx64 "\n", __func__,
|
|
"sh_addr: %#" PRIx64 " sh_offset: %#" PRIx64 "\n", __func__,
|
|
(u64)sym.st_value, (u64)shdr.sh_addr,
|
|
(u64)sym.st_value, (u64)shdr.sh_addr,
|