From nobody Wed Dec 08 21:59:27 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0865F18C3A7C; Wed, 8 Dec 2021 21:59:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J8WKW3tktz4RdL; Wed, 8 Dec 2021 21:59:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 58C231AE55; Wed, 8 Dec 2021 21:59:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B8LxRtU064083; Wed, 8 Dec 2021 21:59:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B8LxRaD064082; Wed, 8 Dec 2021 21:59:27 GMT (envelope-from git) Date: Wed, 8 Dec 2021 21:59:27 GMT Message-Id: <202112082159.1B8LxRaD064082@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 72f6662662de - main - linker_debug_symbol_values(): use proper linker interface to get debug values List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 72f6662662de61ba9a221a3dd59adea115ad4646 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639000767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=boN4F7Dj7VBMkK22ygDlOAzCvaCWhAo9K50QXMgdYqw=; b=PNzbJWk73Tlf/CZxHfoTXGScvH6MU0FNmvNGeyPri+x2aQue7c3zIJz1CWq7gYCo9Ni2ai PFbFYVsAMqg3FUDQgGbloX1ilgIDPTL466ZDqKXWxzDXn8LRITvOHCR8lnxC32wsFz7lj0 2FWZIXz1ac+lbTff+mOZrmYJap73b5Bmwc8ATnMD+1OFgxAjlcl5pFAcwg4n9iXVzsWSwc 2nEMAzYppk4aGcvvlaeMRalK/0QnfltP/N4tu1ECjEzhl3pJvlpkP9btu21Mn8b4wiQjxG mryTq80EvW+HHFROvLsiLpBw8phxvsuvoDegdj9+ruUuNEWpgvxFysaWFRmnwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639000767; a=rsa-sha256; cv=none; b=C402YG1O1dh62y93vuxDn5XoepruePM4rxTxxM38qAQl6WtcG2TGarD2f99mVhrMPYL4/H fDPjQ/Hvx6pex0Dk/QxqndsZ4D2pJgvRKxovNY4BjfXPjTsIFawjsTqPuP2k/zrk69Y/Bz wG22PJiUe5lGzgJIFi+VuD+NQvDK0t4ERq3aNVIMZTuwymWWMf2mBmwUy91AfAAEsK9P+w b1266y9Enc48zCl3bQpGUp6nBrjwciapr9+n8fNHGBVQ89yNMQ9hgqGfYqDCXevgwUnm0u 9t6HAnj9BiPP1MK2StM3Aoe/oxontD4sXFupkD50r+fONcQmZnJYDnOVq33nMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=72f6662662de61ba9a221a3dd59adea115ad4646 commit 72f6662662de61ba9a221a3dd59adea115ad4646 Author: Konstantin Belousov AuthorDate: 2021-11-16 17:57:32 +0000 Commit: Konstantin Belousov 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);