diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-11-16 17:57:32 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-12-08 21:32:26 +0000 |
commit | 72f6662662de61ba9a221a3dd59adea115ad4646 (patch) | |
tree | 585b382c10892258a3d0e451b6634ea8cfd8e5cd | |
parent | c37c6f994fca1474a0e73f437056e5ca6a766b49 (diff) | |
download | src-72f6662662de61ba9a221a3dd59adea115ad4646.tar.gz src-72f6662662de61ba9a221a3dd59adea115ad4646.zip |
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
-rw-r--r-- | sys/kern/kern_linker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 1337d2c0b278..b34131604fef 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -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); |