From nobody Sat Aug 05 00:22:20 2023 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 4RHjvd2BvFz4mJZX; Sat, 5 Aug 2023 00:22:21 +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 4RHjvd17kXz3S0Y; Sat, 5 Aug 2023 00:22:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691194941; 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=hrzGtVT63xpYgncOWVtIQZworWry0Drqe8Tt8swYZkA=; b=XrvvUCxwS+stYcbPBi+Z2wBLJ0Nym6N+T+sCI+CZ1alKp4pMNYschrMPsp/E54QMclOsLI IiFfMXNPmNRoS9CU6cvF3R7TE1VgjyB/EpQeDT1aiK3w2fwPMtjj0373RQsd9c6yQiqt6x mV/6IMiMw1KUZXJJfvJ4TUD2vvpCDX9gDbVmjrYl3H/ZDd0H+Gr/q76zVxppJd87ARSl9t C2b2yeyZJuZGUNeixEEV/VUAPu6TFofsTkfT+XWmd5U6fHSvwig71KwMyKqIND1cSEDF9W LzqYvJYa4XJP166sy+v/6y4MlwXquN5bDTvQIj3fzSnLgF+SSFPE/neRCD7qbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691194941; 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=hrzGtVT63xpYgncOWVtIQZworWry0Drqe8Tt8swYZkA=; b=AUImTPlwtDSprmbJky8dQYd5Eju220d1ODtG9j51p5cdWSwN6L/4LBeWMnyaPq7qk4cxTa OY2J4PTNTwkjIkZmWETN7JIVIV7sULKkQkKz6CONjAQVIRErphwwq83uxNLqZbQ+220vbo n/V8oZhWPemmEb0doGLTIq6DE/mJRkCJfBJr2UzgrTgcEYRUgSdiHW3LGdQG9RMRqgh8zb H+pwFg0mT49IVUyJXXV2GYgFqEegHvJbh+Ligty+LH72NPPYWJ9I3idG5MlOEERZOndHzW 6XP9pTMeqAyMloPPyGVvKXUCqtNZpsc/J5JS9QCxhEu+c46hBI2J4K3ZvGbgNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691194941; a=rsa-sha256; cv=none; b=lv4uUQM+AhMuZ3dokOjyEJqEbWVu33TERaQ1a3vnxQCban+BVkul82pZ2YipSAioNX7y/K TDLBgsjbOkFskbFiWTXnotUc9OrnfrqXtAPJzzj5XHXexUoI234kHPX8k0PSZGHI9sCirP 1X5xnAViU+MyAq+GmWUFMfy7Uw1/+OhNcWXj6Ncwu2paBXK3CdFaveGSsNoqkQxD2TojYe Wp8c2rnJ8KYiqTCveCGP9dEsYv5nDQWTMmQAIaLWubeN36Ra78O1BSXt59lRcTpMHtmLSp 6sON/DE0RGMrkWhFWFV8bjoN3pdijkLf0tanmvZJ37vtK10NImme8WGvLy3moA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RHjvd0Cc1z1N8K; Sat, 5 Aug 2023 00:22:21 +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 3750MKX8025419; Sat, 5 Aug 2023 00:22:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3750MKem025418; Sat, 5 Aug 2023 00:22:20 GMT (envelope-from git) Date: Sat, 5 Aug 2023 00:22:20 GMT Message-Id: <202308050022.3750MKem025418@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: 106c9ff5aca4 - main - stand: Export _start on arm like other architectures 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: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 106c9ff5aca46b3bf9c82c1a56b432134a7cf36b Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=106c9ff5aca46b3bf9c82c1a56b432134a7cf36b commit 106c9ff5aca46b3bf9c82c1a56b432134a7cf36b Author: Jessica Clarke AuthorDate: 2023-08-05 00:14:16 +0000 Commit: Jessica Clarke CommitDate: 2023-08-05 00:14:16 +0000 stand: Export _start on arm like other architectures By not exporting _start, we get various warnings of the form: ld: warning: cannot find entry symbol _start Note that in practice these don't matter because we manually construct our PE header and use objcopy -O binary, so the entry point is set to whatever we put explicitly in the PE header, but we should still do the right thing and silence these warnings. This was found in CheriBSD, where bsd.prog.mk has similar logic to bsd.lib.mk and sets -Wl,--(no-)fatal-warnings based on LD_FATAL_WARNINGS (unlike FreeBSD which only does so in the latter). --- stand/efi/loader/arch/arm/start.S | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/efi/loader/arch/arm/start.S b/stand/efi/loader/arch/arm/start.S index 5b6182d67d0a..bd8f425ca9e0 100644 --- a/stand/efi/loader/arch/arm/start.S +++ b/stand/efi/loader/arch/arm/start.S @@ -140,6 +140,7 @@ section_table: _end_header: .text + .globl _start _start: /* Save the boot params to the stack */ push {r0, r1}