From nobody Fri Nov 10 22:27:30 2023 X-Original-To: pkg@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 4SRtjv1L12z50lJJ for ; Fri, 10 Nov 2023 22:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@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 4SRtjt5D9rz3SW2 for ; Fri, 10 Nov 2023 22:27:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699655250; 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: in-reply-to:in-reply-to:references:references; bh=1LlVIKNtw0IpT2Po4uuX8df7V0jETQUn6VdjywxADew=; b=YabwVpee8G381NRrWUpOeaYjFMzscMFs9nwpyQZCbGpAUAgtqTotvkOe7NNIQQdipEJ0XL O319DlAOwQI6Kp9jANfwHYqtu0KP6QvRazVWl3PajDvzYJp0MvO3v4uzXiKAXlpbTBlrhL jM4sYuf0cN7D8wFhrqg1weCmcdOKJ5+sDnjCiXL9aEvlmBv3zA7jeKfHnsjppf3KRbtIHj XNN5ZDpFaoMX18H/+2bD1RMg/Q5Nli23bRyaY5SoeF8ZgSip+PGKEL5Q5MTbU8UQ+iOySk FjsztKfHJ+lFlGhYIUhS1lgD3uHkXb+/6M98+AzzKE/7QNo3s8cHBBNiWDxt5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699655250; a=rsa-sha256; cv=none; b=N1GBi9raPDB4wpLTwJTN9GTf1Hl7FbolMqYqrnE4o4Z/TUKYP5rj2015mmLrq2ngWVyn83 wXGrn3Bei36au62y7CXWAN8qbI9/IEjw1mmvW44fa3bRny5y0nkfnNyXCtyvXQIYVjZtVK U4/n2J0iZnmv4xWWCfI7aXWtgVnFoxVA9ioMDP2jHhTRQTvwv0hpYyk/9CE7l2K6J82Rnh ysZRmxOa6CqXbPR128HwflpKeXTaxTi74JiZG7Mpor6w7VAX26FScJdH+45upoUGYJgpR3 LAlhLC64msOBeYvVysA/u2yaNtr+WKRuWPIKS+X+OU4r3IpT5t07kPmX6J80iw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4SRtjt4Cxczy6 for ; Fri, 10 Nov 2023 22:27:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3AAMRU2c058246 for ; Fri, 10 Nov 2023 22:27:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AAMRUGI058245 for pkg@FreeBSD.org; Fri, 10 Nov 2023 22:27:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 275018] ports-mgmt/pkg: building with PIE and RELRO is broken when CFLAGS are set Date: Fri, 10 Nov 2023 22:27:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shawn.webb@hardenedbsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275018 Shawn Webb changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shawn.webb@hardenedbsd.org --- Comment #1 from Shawn Webb --- The pkg project needs to sprinkle PIC/PIE-related flags in different points= in the code. HardenedBSD has a (somewhat ugly) hack that does just that: https://git.hardenedbsd.org/hardenedbsd/pkg/-/commit/ede6ad08b28a193e88154f= ab0081c70233d167f6 Otherwise, the PIC/PIE flags get passed to the linking stage for linking pkg-static. FreeBSD does not currently support static PIEs. --=20 You are receiving this mail because: You are the assignee for the bug.=