git: 72f6662662de - main - linker_debug_symbol_values(): use proper linker interface to get debug values

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 08 Dec 2021 21:59:27 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=72f6662662de61ba9a221a3dd59adea115ad4646

commit 72f6662662de61ba9a221a3dd59adea115ad4646
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-16 17:57:32 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-08 21:32:26 +0000

    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
---
 sys/kern/kern_linker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);