From patchwork Fri May 28 06:59:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Sionneau X-Patchwork-Id: 1485030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=sionneau.net header.i=@sionneau.net header.a=rsa-sha1 header.s=selectormx3 header.b=hK6l6n/i; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FrwYr4nxJz9sSn for ; Fri, 28 May 2021 17:00:29 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 2D356100CA; Fri, 28 May 2021 09:00:21 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from mx3.sionneau.net (mx3.sionneau.net [163.172.183.177]) by helium.openadk.org (Postfix) with ESMTPS id 069F1100CA for ; Fri, 28 May 2021 09:00:11 +0200 (CEST) Received: from mx3.sionneau.net (localhost [127.0.0.1]) by mx3.sionneau.net. (OpenSMTPD) with ESMTP id 4e406c82 for ; Fri, 28 May 2021 07:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=sionneau.net; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=selectormx3; bh=O3bvIgjNy6Et9IUyoA5iWAFUQug=; b=hK6l6n/iSt3yT xSW4xUsIzBv66RaWDoR2PXQIFiD0+gk1mkSzXTAZQdEjIfhT+T60EEOu1bOmYMF2 9B819xF3o8W0r1r9OOrvhM0SOP7BjBN3sbVp0ylpdhIibD+KzBcEHFK+9efTKZBP WJmJP40ZXtHFhD5DBa9XdEdzTolKdY= DomainKey-Signature: a=rsa-sha1; c=simple; d=sionneau.net; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; q=dns; s=selectormx3; b=iyjK8LBJFmXEgnl7KtcJmf17H1bl9y2U3m0YARV uznrKF1ERGepn4pARhYQOGnok2iWZeBlrC+oTFYRJt0ihvkgH8Ej0KzN1h8S31zx hIN6yqwnuFuMRpWrsRFwl0jOxPB0jGbDgM2gA0OBucjfubIbWYupW0j9TCAJm1GC u+JM= Received: by mx3.sionneau.net (OpenSMTPD) with ESMTPSA id 04eb7f5f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 28 May 2021 07:00:11 +0000 (UTC) From: Yann Sionneau To: devel@uclibc-ng.org Date: Fri, 28 May 2021 08:59:57 +0200 Message-Id: <20210528065958.3965167-1-yann@sionneau.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [uclibc-ng-devel] [PATCH 0/1] V3 fix powerpc PIE/PIC + secure-plt builds X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" This is the 3rd iteration of the patch, here are the changes with regard to previous one: * more precise description of the problem. * only set r30 in PIC+secureplt case as it seems indeed to be the only case which causes problem. Secureplt without PIC does not need r30. * don't rely on uclibc being already built: now we check for secure-plt by doing $(CC) --verbose and searching for the ./configure parameters of GCC for "--enable-secureplt". Yann Sionneau (1): powerpc: fix PIE/PIC builds with newer gcc/binutils which use secureplt by default Rules.mak | 3 ++- ldso/ldso/powerpc/dl-startup.h | 3 +++ libc/sysdeps/linux/powerpc/crt1.S | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-)