From nobody Thu Nov 14 04:58:22 2024 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 4XpnwZ4ljlz5d5kr; Thu, 14 Nov 2024 04:58:22 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XpnwZ4B5Zz4Rpj; Thu, 14 Nov 2024 04:58:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731560302; 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=q58pdvNg4+P/BF6XGJZogDNeekHy6YjqWCbm0GmIxU0=; b=qWlLGgANT1N6xUpymbdMqIBWzg2ktC7bD5aKBUwv4uG/xmxE0yoLi4e4PAXJ4AnCiyRrj/ 8es6QGDkCmNmVSoBrZWcEqGwXPr8CbbrSTQn5sIzIftdGin04Egqp5lwgsdxJ19HxpG7G5 OdrKm1sF82PNzH5KdfKB5Bx+bQ0EOSG3J4/TfTncBT5i0P29Guqx2dCuW/TE0wcCEUYNyX ZWLp0bmOU2f/XeIACM4IcpyxuWIW+TgGDvf+a7r+YHmeu8EOQAjoGpS+4BESxcd4AyPgw1 NgS17v/yI6GzjK6sbvxmLzWeiEb//PR3RpKBFEvpc348Aaa1JJjFOy9mmtmrnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731560302; 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=q58pdvNg4+P/BF6XGJZogDNeekHy6YjqWCbm0GmIxU0=; b=S7feXZ05N3eSS+4u/cKBm7FSzIz0h23PB5Je/EUZw7Wprh0Nh1Uft+eeOSb8fAQ5CfmrEj CLZjruQo+0Qdv6zXOHBdqhSK9uMBqmBYJUOF+DY9dS4KYdJrA04/4ERabCZnfX3z8rkLtW hYtqJGe432hV6+jnuhqml+yCrc21ATEjimxutZ65GJn9bNxEhGBlzncWcdkEjxVOXJXV8E J0fYIFGdsoNnG5KaRV04rVBNb1GVbqs1wkMSMuCEBbhYkmpAN7bUOvf1He9ZYNsoCv76hg GBmP6AKasM/dy7yrU5ZB53/A767bV3+nQOCc1tZbCxsu4zXA9PHWInppWgieHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731560302; a=rsa-sha256; cv=none; b=Cls4IzaZX2UakPTxtIntoqsg26rg70GX0PY8JR70nADQBup1fhQCFvH5/Gtxik+imiXeDZ 9NxEvOIzROY8k1krS+dbOZvqxJ7BhSUa8Rkui7p7xnyRwT0qY4DcVvnVzl4u4iz/lCQjKL jMA1u1VT7b7v2mOBewG9fAZdajJ4GIw76aK+Nk+HYeljf1R7GYq/j/wkaFqzPYZ0MCThxo l4D3xW/ecMDGyF6wRMMa0X4tcnkA/0u56eyU7yvAsb37g7c79jr8zzHj1LeqKYKjwGrobh 0JdJuRc2LWP4FfBP+3i3mPXWx16UIKDunoJBQCBQdQWsWtHZLPgE/7U2Wxzjtw== 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 4XpnwZ3ggpzQ2Z; Thu, 14 Nov 2024 04:58:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AE4wMvI092534; Thu, 14 Nov 2024 04:58:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AE4wM3O092531; Thu, 14 Nov 2024 04:58:22 GMT (envelope-from git) Date: Thu, 14 Nov 2024 04:58:22 GMT Message-Id: <202411140458.4AE4wM3O092531@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: 209fd89a2810 - main - _dl_iterate_phdr_locked(): fix libc and libdl 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: 209fd89a2810419309944f10d11834321f0ebb25 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=209fd89a2810419309944f10d11834321f0ebb25 commit 209fd89a2810419309944f10d11834321f0ebb25 Author: Konstantin Belousov AuthorDate: 2024-11-14 03:54:24 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-14 04:14:05 +0000 _dl_iterate_phdr_locked(): fix libc and libdl Add prototype. Export from libdl. Fixes: 1426fd6cff0603f0ee275b99f2ba35dc36f3d0c2 Reviewed by: kevans Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D47563 --- lib/libc/gen/dlfcn.c | 2 ++ lib/libdl/Symbol.map | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index b814fdc845c4..bffee3952e0d 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -204,6 +204,8 @@ dl_init_phdr_info(void) #endif #pragma weak _dl_iterate_phdr_locked +int _dl_iterate_phdr_locked(int (*callback)(struct dl_phdr_info *, + size_t, void *), void *data); int _dl_iterate_phdr_locked( int (*callback)(struct dl_phdr_info *, size_t, void *) __unused, diff --git a/lib/libdl/Symbol.map b/lib/libdl/Symbol.map index dd9a8252e4a3..f0e03c4940ce 100644 --- a/lib/libdl/Symbol.map +++ b/lib/libdl/Symbol.map @@ -22,3 +22,7 @@ FBSD_1.8 { rtld_get_var; rtld_set_var; }; + +FBSDprivate_1.0 { + _dl_iterate_phdr_locked; +};