From nobody Fri May 17 11:20:19 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 4Vgkyr0GCqz5L0jB; Fri, 17 May 2024 11:20:20 +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 4Vgkyq6YbHz58Vk; Fri, 17 May 2024 11:20:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715944819; 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=VnI8U2lL+8cjNc0bkLdqhxDSwH2vhPPkavdC+S4aA8I=; b=btOQ7ChwzPyLeV8SsJUu/rDPHZO2hiF6pb+7FLoYn6vRweetNXDjq/xTjDhy2S+hZXU8zr CaVqJDcNBwt7HjkoBwKAu7NCJUbhvu+29HN5gTYGQDAzs1s4VlvC92+0YBelnu/vmrsEPl um3pyWKaK+x2A+tbsIXYLUGLjwa9P9nFnbDvjyhw1XywzETQgk3OjoE43Bz5r4HFZEFytu LrK50/s0+y6arQoXopH8f54s9OoAVdUNKXFGJamoR7j8qbnyqIyXgECoPJogD+CbzaIveS GXm/hMfUbdolpqm25o3FXYSXdZBJI0kcgCHUxtOUFhtTEaBKmxlpPSksbWB6xA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715944819; a=rsa-sha256; cv=none; b=PAFnsE87D2PD5lnPcAnB667KBBPldsjUdXcRAHonctLKY1SS9ZY0Jt421wK/rexH8V684l CE/edYVKJGyIGe4X7CjThZDHnXTfbyMZCRdcvob2Bm63yPdkPfmPAAEs+zZSpi0bheqWSW uQKRP4v2eA1Besoy9mNBc6XjkPne23MPCVSsYuY4dnAHlCISlIXhAe9irWCNhf3rflh3+2 XdqaJaQljBqsRs/Ew0C8Ol3zbftepwuFyUhPEOMuonFW6ooJf+Db7a6jP0FSR2ap/ip/W2 SD9u5NkBOEPF2/II+AgEqO+pYgei6MeEfPBvToPnrIfq4lD12J4rhRZq5g8KzA== 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=1715944819; 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=VnI8U2lL+8cjNc0bkLdqhxDSwH2vhPPkavdC+S4aA8I=; b=sQOA/H/5k0waA2u7ceix5B6rN05HDA+EKPRJJAaMqhjTC1MEiIitfwifAWt2uY4NL2Gv/x AJBXkxxsxQ2GJq4QPkOBBkeA2w5DeneMxm7j8PKuvFd3hCXSDb2ox5McZwj3kr0sz7s3sK VXKfkkzciJDOhzpxMpgkMwoLblWls9+lKpAGwkFGo45FhfnVVTUoPYEewsGHWNZT/I9zen /tSIHx6F3UNVhz/e2Wo8TdvYTx/515zX3Mc9iR0+ADtJtZoJ9RZXO6koJhgWIBj5mho2wh sMkEfzbEk6btjwZV5gscA8kEogX4i7boJLOFGB1mnsqWo9OOT2qfFNSbfHow9g== 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 4Vgkyq62nhzgTS; Fri, 17 May 2024 11:20:19 +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 44HBKJxY069762; Fri, 17 May 2024 11:20:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44HBKJNj069759; Fri, 17 May 2024 11:20:19 GMT (envelope-from git) Date: Fri, 17 May 2024 11:20:19 GMT Message-Id: <202405171120.44HBKJNj069759@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 2228d7c5998b - main - Revert "rtld: Add arm64 variant pcs tests" 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2228d7c5998bc09c5aaf181312dc870d15ad4b18 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=2228d7c5998bc09c5aaf181312dc870d15ad4b18 commit 2228d7c5998bc09c5aaf181312dc870d15ad4b18 Author: Andrew Turner AuthorDate: 2024-05-17 11:19:24 +0000 Commit: Andrew Turner CommitDate: 2024-05-17 11:19:24 +0000 Revert "rtld: Add arm64 variant pcs tests" It's missing an mtree update This reverts commit 9e48c30e25a743a268d17a6215b9c2d859543547. --- libexec/rtld-elf/tests/Makefile | 3 - libexec/rtld-elf/tests/aarch64/Makefile | 16 ---- libexec/rtld-elf/tests/aarch64/Makefile.common | 3 - libexec/rtld-elf/tests/aarch64/Makefile.inc | 3 - libexec/rtld-elf/tests/aarch64/variant_pcs.c | 64 --------------- libexec/rtld-elf/tests/aarch64/variant_pcs_dso.S | 54 ------------- .../tests/aarch64/variant_pcs_dso/Makefile | 13 ---- .../rtld-elf/tests/aarch64/variant_pcs_helper.S | 91 ---------------------- 8 files changed, 247 deletions(-) diff --git a/libexec/rtld-elf/tests/Makefile b/libexec/rtld-elf/tests/Makefile index b8f1e9c49174..e380e9850fc1 100644 --- a/libexec/rtld-elf/tests/Makefile +++ b/libexec/rtld-elf/tests/Makefile @@ -1,9 +1,6 @@ SUBDIR+= libpythagoras libdeep libval libval2 target TESTS_SUBDIRS+= rtld_deepbind -.if exists(${MACHINE_CPUARCH}) -TESTS_SUBDIRS+= ${MACHINE_CPUARCH} -.endif SUBDIR_DEPEND_libdeep= libval2 SUBDIR_DEPEND_rtld_deepbind= libval diff --git a/libexec/rtld-elf/tests/aarch64/Makefile b/libexec/rtld-elf/tests/aarch64/Makefile deleted file mode 100644 index a6f04ae49f26..000000000000 --- a/libexec/rtld-elf/tests/aarch64/Makefile +++ /dev/null @@ -1,16 +0,0 @@ - -.include "Makefile.common" - -SUBDIR= variant_pcs_dso - -ATF_TESTS_C= variant_pcs - -SRCS.variant_pcs= variant_pcs.c variant_pcs_helper.S -DPADD.variant_pcs+= ${.OBJDIR}/dso/libh_variant_pcs.so -LDFLAGS.variant_pcs+= -Wl,-rpath,${TESTSDIR} -L${.OBJDIR}/variant_pcs_dso -LDADD.variant_pcs+= -lh_variant_pcs - -# Ensure the dso is built first -variant_pcs: variant_pcs_dso - -.include diff --git a/libexec/rtld-elf/tests/aarch64/Makefile.common b/libexec/rtld-elf/tests/aarch64/Makefile.common deleted file mode 100644 index 3181b82aef44..000000000000 --- a/libexec/rtld-elf/tests/aarch64/Makefile.common +++ /dev/null @@ -1,3 +0,0 @@ - -TESTSDIR?= ${TESTSBASE}/libexec/rtld-elf/aarch64 -LIBDIR= ${TESTSDIR} diff --git a/libexec/rtld-elf/tests/aarch64/Makefile.inc b/libexec/rtld-elf/tests/aarch64/Makefile.inc deleted file mode 100644 index 3712e208f1fc..000000000000 --- a/libexec/rtld-elf/tests/aarch64/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ - -.include "Makefile.common" -.include "../Makefile.inc" diff --git a/libexec/rtld-elf/tests/aarch64/variant_pcs.c b/libexec/rtld-elf/tests/aarch64/variant_pcs.c deleted file mode 100644 index 5792dfd29723..000000000000 --- a/libexec/rtld-elf/tests/aarch64/variant_pcs.c +++ /dev/null @@ -1,64 +0,0 @@ -/*- - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2024 Arm Ltd - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#include -#include -#include -#include - -extern uint32_t variant_pcs_test_ret[]; -void variant_pcs_helper(void *); - -ATF_TC_WITHOUT_HEAD(variant_gpr); -ATF_TC_BODY(variant_gpr, tc) -{ - uint64_t regs[31]; - - memset(regs, 99, sizeof(regs)); - variant_pcs_helper(regs); - - ATF_REQUIRE(regs[0] == (uintptr_t)®s[0]); - ATF_REQUIRE(regs[30] == (uintptr_t)&variant_pcs_test_ret); - - for (uint64_t i = 1; i < 30; i++) { - /* - * x16 and x17 are ilp0 and ilp1 respectively. They are used - * in the PLT code so are trashed, even with variant PCS. - */ - if (i == 16 || i == 17) - continue; - - ATF_REQUIRE(regs[i] == i); - } -} - -ATF_TP_ADD_TCS(tp) -{ - ATF_TP_ADD_TC(tp, variant_gpr); - - return atf_no_error(); -} diff --git a/libexec/rtld-elf/tests/aarch64/variant_pcs_dso.S b/libexec/rtld-elf/tests/aarch64/variant_pcs_dso.S deleted file mode 100644 index 0e6f05d84e15..000000000000 --- a/libexec/rtld-elf/tests/aarch64/variant_pcs_dso.S +++ /dev/null @@ -1,54 +0,0 @@ -/*- - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2024 Arm Ltd - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#include - -/* - * Mark variant_pcs_test as a variant pcs function so we can check the - * saved register values later. The buffer to store the registers is - * passed in x0. - */ -.variant_pcs variant_pcs_test -ENTRY(variant_pcs_test) - stp x0, x1, [x0, #(0 * 8)] - stp x2, x3, [x0, #(2 * 8)] - stp x4, x5, [x0, #(4 * 8)] - stp x6, x7, [x0, #(6 * 8)] - stp x8, x9, [x0, #(8 * 8)] - stp x10, x11, [x0, #(10 * 8)] - stp x12, x13, [x0, #(12 * 8)] - stp x14, x15, [x0, #(14 * 8)] - stp x16, x17, [x0, #(16 * 8)] - stp x18, x19, [x0, #(18 * 8)] - stp x20, x21, [x0, #(20 * 8)] - stp x22, x23, [x0, #(22 * 8)] - stp x24, x25, [x0, #(24 * 8)] - stp x26, x27, [x0, #(26 * 8)] - stp x28, x29, [x0, #(28 * 8)] - str x30, [x0, #(30 * 8)] - ret -END(variant_pcs_test) diff --git a/libexec/rtld-elf/tests/aarch64/variant_pcs_dso/Makefile b/libexec/rtld-elf/tests/aarch64/variant_pcs_dso/Makefile deleted file mode 100644 index 08f1eec00b06..000000000000 --- a/libexec/rtld-elf/tests/aarch64/variant_pcs_dso/Makefile +++ /dev/null @@ -1,13 +0,0 @@ - -.PATH: ${.CURDIR:H} -SHLIB= h_variant_pcs -SHLIB_NAME= libh_variant_pcs.so -SHLIB_MAJOR= 1 - -WITHOUT_STATIC= -WITHOUT_PROFILE= -WITHOUT_PIC= - -SRCS= variant_pcs_dso.S - -.include diff --git a/libexec/rtld-elf/tests/aarch64/variant_pcs_helper.S b/libexec/rtld-elf/tests/aarch64/variant_pcs_helper.S deleted file mode 100644 index 9480ba629c2e..000000000000 --- a/libexec/rtld-elf/tests/aarch64/variant_pcs_helper.S +++ /dev/null @@ -1,91 +0,0 @@ -/*- - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2024 Arm Ltd - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#include - -.global variant_pcs_test_ret - -/* - * void variant_pcs_helper(void *buffer); - * - * This follows the aapcs64 convention so needs to save and restore - * the callee-saved registers. It puts a known value in each register - * other than x0 and x30 as x0 contains the buffer used to store the - * register data, and x30 is the link register so will be trashed by - * the branch and link to variant_pcs_test. - */ -ENTRY(variant_pcs_helper) - sub sp, sp, #(14 * 8) - stp x29, x30, [sp, #(12 * 8)] - stp x27, x28, [sp, #(10 * 8)] - stp x25, x26, [sp, #( 8 * 8)] - stp x23, x24, [sp, #( 6 * 8)] - stp x22, x23, [sp, #( 4 * 8)] - stp x21, x22, [sp, #( 2 * 8)] - stp x19, x20, [sp, #( 0 * 8)] - add x29, sp, #(12 * 8) - mov x1, #1 - mov x2, #2 - mov x3, #3 - mov x4, #4 - mov x5, #5 - mov x6, #6 - mov x7, #7 - mov x8, #8 - mov x9, #9 - mov x10, #10 - mov x11, #11 - mov x12, #12 - mov x13, #13 - mov x14, #14 - mov x15, #15 - mov x16, #16 - mov x17, #17 - mov x18, #18 - mov x19, #19 - mov x20, #20 - mov x21, #21 - mov x22, #22 - mov x23, #23 - mov x24, #24 - mov x25, #25 - mov x26, #26 - mov x27, #27 - mov x28, #28 - mov x29, #29 - bl variant_pcs_test -variant_pcs_test_ret: - ldp x19, x20, [sp, #( 0 * 8)] - ldp x21, x22, [sp, #( 2 * 8)] - ldp x22, x23, [sp, #( 4 * 8)] - ldp x23, x24, [sp, #( 6 * 8)] - ldp x25, x26, [sp, #( 8 * 8)] - ldp x27, x28, [sp, #(10 * 8)] - ldp x29, x30, [sp, #(12 * 8)] - add sp, sp, #(14 * 8) - ret -END(variant_pcs_helper)