linker_debug_symbol_values(): use proper linker interface to get debug values

Reported by:	markj
Reviewed by:	emaste, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D32878
This commit is contained in:
Konstantin Belousov 2021-11-16 19:57:32 +02:00
parent c37c6f994f
commit 72f6662662

View File

@ -956,7 +956,7 @@ linker_debug_symbol_values(c_linker_sym_t sym, linker_symval_t *symval)
linker_file_t lf;
TAILQ_FOREACH(lf, &linker_files, link) {
if (LINKER_SYMBOL_VALUES(lf, sym, symval) == 0)
if (LINKER_DEBUG_SYMBOL_VALUES(lf, sym, symval) == 0)
return (0);
}
return (ENOENT);