From nobody Sun Mar 22 01:38:58 2026 X-Original-To: dev-commits-src-main@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 4fdf901vxJz6VB0j for ; Sun, 22 Mar 2026 01:39:00 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fdf8y72PLz3vVp for ; Sun, 22 Mar 2026 01:38:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774143539; 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=DIjqp7/Yb+rN1MhgcwOS4CLFxUgx/d9I0d5J5bwPb2c=; b=L+DlNF0T5qyPuVvXExCDOPOPbbh6EqVJetaO74EGmZmEVI2MjAAnPTHh4PW06FJCxYihfG WLdjAOyGHaJIu+T+ecbsL/8E07h4PeKOFaGrCu8d29Wwrb0nHXQcbAJtER4P8TjPJrwtq9 300z2SGS0Ps0wUOAwwKclhRt7zFX97xI39dlqLiT/BOpqPIwyTv34m5rklOJ1BUj1XqTkI E4El7fP9dNE4j06reUnl2ExvTTb6hmsAfdjCiHneHa5qJcBInznZCfN+ACAsNI48ciui0C 2UlPff5CmL1TmkB0zXN7EekXYgSQU8Gm1nrNCr3bJLS73I+mqdrQvEa3ss9DqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774143539; a=rsa-sha256; cv=none; b=K3kkfFmg4/TZlkoLTDnM3W/PdL3bUBtMoR905oG3v8gJzRb6NilHqMbpUuc8W88Ztou3OP BNaWDKUYCKBcjsJbViZV9lawDpFZLxXb03q/u+Jjb8PjiYPtE3ldzoUi2RELxI2niOM7ii L1V3DaHz+s/wCOqd8mMumzzjU6KPz4XgiOi422MfNdMy1kyH/tsrY58IjaBdGcdbgUXzp3 dfmh5j75Pm1aYJ3mFY+BfO3vM8+L1UqoQ19Uzgo+AJwFTn8wiQ9iVnTK0KmfbCn5O5XU9P U6p4kAu6HjfSJXF3LS6VeVKNj0iit7KCgIlwwtfqsOgZzXZRsbt+aRjmTkprKQ== 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=1774143539; 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=DIjqp7/Yb+rN1MhgcwOS4CLFxUgx/d9I0d5J5bwPb2c=; b=Fn7X703UEbJFUkBz0WSeFyRZGszBAezyfNDi5Vwd8FPPay+lT6awaQlQReQ454v4gkMwNS 3vallet8F2hA9Vb5lV2TA6IvwMZ8y2/AvuQ5laEdpNiizD5DkfWqhdCBO4lkX6qQZdCIof ta9WB9DDSDATjE77GejLQrVuqEtT9FBlxB5QfrSvIG6FXDCb+4eBV7hEboRpJkCVz6k1mI ZkdXZziQryDw3xPejxuOD5HTukigDsKE3ag8dGsn82cXX4pBJ8VIIE7zofsXatp94ykJIA xO6fYGBX2VLXrZdHb8hu9Gthv6SqBQd6GcfYGIC4Dxvs3l8KLNHhV2rvfLCGkw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fdf8y6RNrzfJv for ; Sun, 22 Mar 2026 01:38:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41a59 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 22 Mar 2026 01:38:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: 3797fe720a37 - main - libcrypto: compile all PIC objects with -DOPENSSL_PIC -fPIC List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3797fe720a37ff9fb5b20546494ef1c4a6c01541 Auto-Submitted: auto-generated Date: Sun, 22 Mar 2026 01:38:58 +0000 Message-Id: <69bf4832.41a59.1df6e724@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=3797fe720a37ff9fb5b20546494ef1c4a6c01541 commit 3797fe720a37ff9fb5b20546494ef1c4a6c01541 Author: Enji Cooper AuthorDate: 2026-03-22 00:39:16 +0000 Commit: Enji Cooper CommitDate: 2026-03-22 01:38:49 +0000 libcrypto: compile all PIC objects with -DOPENSSL_PIC -fPIC This change modifies the libcrypto PIC objects to always compile with `-DOPENSSL_PIC -fPIC` to restore parity with the upstream build process. This ensures that the legacy provider is built with parity to the upstream legacy provider. MFC after: 12 days Tested with: `make check` (legacy provider), `make universe` Fixes: 14b9955e Differential Revision: https://reviews.freebsd.org/D44896 --- secure/lib/libcrypto/Makefile | 6 ------ secure/lib/libcrypto/Makefile.inc | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile index 738de3479987..9d484e9d480c 100644 --- a/secure/lib/libcrypto/Makefile +++ b/secure/lib/libcrypto/Makefile @@ -687,12 +687,6 @@ SUBDIR.${MK_TESTS}= tests .include -.if ${MACHINE} == "powerpc" -# Work around "relocation R_PPC_GOT16 out of range" errors -PICFLAG= -fPIC -.endif -PICFLAG+= -DOPENSSL_PIC - .if defined(ASM_${MACHINE_CPUARCH}) .PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH} .if defined(ASM_amd64) diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc index 73c650d590ff..8f22d501e005 100644 --- a/secure/lib/libcrypto/Makefile.inc +++ b/secure/lib/libcrypto/Makefile.inc @@ -12,6 +12,9 @@ CFLAGS+= -I${LCRYPTO_SRC}/providers/common/include CFLAGS+= -I${LCRYPTO_SRC}/providers/fips/include CFLAGS+= -I${LCRYPTO_SRC}/providers/implementations/include +PICFLAG= -fPIC +PICFLAG+= -DOPENSSL_PIC + .SUFFIXES: .pc .PATH.pc: ${LCRYPTO_SRC}/exporters