From nobody Mon Apr 22 20:29:16 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 4VNcKm5jSJz5HqgY; Mon, 22 Apr 2024 20:29:16 +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 4VNcKm4ShWz4x3G; Mon, 22 Apr 2024 20:29:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713817756; 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=yLX9P5YtJhWF2AalOPavJgoBXwSQLRxDUER21IquNuI=; b=u7t1UeYv3Tej6rcLSeteQfZqM82HECXYuYDNJnEB5+6rLwIWJrFmRZmIhc9i6BqeDOa+SL DKs9+0VjI4/m0ykFIA4Hk1uW0zhHdkw5B0bS41f+Ijdah/0sKV7Dw2p+z7lYruRYpBa/Gk bgUP9L7nkRYH5HHOcCJa2vGFzC0tSiMFy8SZ1POzV+ce5U7FqH9krOaUZtubp+39GEl5CO aCmcikJhuqy/pRB+oKiX9v7O0x80qGMOnPoQw2n2AfMndRxr2w/Zq9O4WPPX3JT4lA/6Bp 410eHqKIk5lbNdY26aP9nlzqXj8ev3Z+rWPaBR4gVRX9CMS4luf2HCgfbkCRmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713817756; a=rsa-sha256; cv=none; b=hDJUAKFFcQQoRqQbKtMQWppzBAB8IjzklM8p79HSuUU+0yZ+VOo4RyyZ+YSIEUcRG4lsrl bLTePd4wvUM3EzzIrhq9VrrwFlyJoj+Qt6RrRpF8BNUvkrXhMKQev0WXIjlwhskytr6iDT pz37BsSQ7cvUemLVDBehAuV1m13pUvvj08z6MfAhQHg19pwx2sLza94APsinOdhG1LybhV zMrXhSsnNbPvWzRDW7PFJ3KjfAVvk9dbYtbdmhgS0tAhZYEI0Q6H4RFx/42Dda2Iua8PJo 6roxYHxEs/W0oOdXKMtUYKTaP6Jf/AMOaRfpUT3C/50Bff9vdcjcVmsO76lHWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713817756; 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=yLX9P5YtJhWF2AalOPavJgoBXwSQLRxDUER21IquNuI=; b=imMLyg/zaXRNubAx0HJOHHRO76DR3INcwZPoHgX0wFXZSSshUnPRZdCYYedj2u5Dqfd/75 KdYOsz9/HH4um13KFLtDCuULrqO9joq1Cx7ibyssclkMVR+yUw1I40zJ0py2ZoqA/u+ai/ Vb4D0IiXZBlxq9i8jsyQzbSCVKT1rpMH/F3Q8Rk2apO8BF/C6Qw5dPNGuD0SR2PDOikWIh b/n0oJbCwkuiYrs9OXsyYhVL6NMo6otD2axzBIkpyGPKOlFLEgJ5lqNRtAzSFohy1qjYoV VJjU05Jkle0pJJUi4FhE2my5d+Lh0Hb2wl5gq3t1NyJnYAwqPfijEoOiau5YWA== 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 4VNcKm44gwz12nl; Mon, 22 Apr 2024 20:29:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43MKTGXk001112; Mon, 22 Apr 2024 20:29:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43MKTG6T001109; Mon, 22 Apr 2024 20:29:16 GMT (envelope-from git) Date: Mon, 22 Apr 2024 20:29:16 GMT Message-Id: <202404222029.43MKTG6T001109@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 80ffc7398b83 - main - libsys/arm: make vfork less of an outlier 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: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 80ffc7398b8302b2d54d783d8349e54d877a4250 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=80ffc7398b8302b2d54d783d8349e54d877a4250 commit 80ffc7398b8302b2d54d783d8349e54d877a4250 Author: Brooks Davis AuthorDate: 2024-04-22 19:13:35 +0000 Commit: Brooks Davis CommitDate: 2024-04-22 20:28:51 +0000 libsys/arm: make vfork less of an outlier Following the pattern of other architectures, make __sys_vfork the main symbol and _vfork and vfork weak aliases. This avoids the need to special case vfork in the generated list of symbols. Differential Revision: https://reviews.freebsd.org/D44330 --- lib/libsys/arm/vfork.S | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/libsys/arm/vfork.S b/lib/libsys/arm/vfork.S index 2b92f56ad4e4..ef9a426c6de5 100644 --- a/lib/libsys/arm/vfork.S +++ b/lib/libsys/arm/vfork.S @@ -42,13 +42,17 @@ .text .align 0 -ENTRY(vfork) +ENTRY(__sys_vfork) + .weak _C_LABEL(vfork); + .set _C_LABEL(vfork), _C_LABEL(__sys_vfork); + .weak _C_LABEL(_vfork); + .set _C_LABEL(_vfork), _C_LABEL(__sys_vfork); mov r2, r14 _SYSCALL(vfork) bcs PIC_SYM(CERROR, PLT) sub r1, r1, #1 /* r1 == 0xffffffff if parent, 0 if child */ and r0, r0, r1 /* r0 == 0 if child, else unchanged */ mov r15, r2 -END(vfork) +END(__sys_vfork) .section .note.GNU-stack,"",%progbits