From nobody Sat Nov 15 16:07:52 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=posteo.net ARC-Seal: i=1; a=rsa-sha256; t=1749585119; cv=none; d=zohomail.com; s=zohoarc; b=AcXR12NI+QYjSGpfOUIeXhdkdVjOCan5HwGWankUS3YjLYo+SS2lFQ9/IvEdB7FagsvzNf0eV7Flpj12J4puq2sw8rct08nPlZ3WJNUdcd3OQ8s9KYXkU5nu+mQNM8T21aTAXCFQo5uR7sLCxWMEbeins8xZrYKgA3aAo8hWOkg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1749585119; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=virSmyg9yBkjNHV+QKHPqLne67mu64M5jcNafW8sykU=; b=Ny7bFMtIGJnBCdY96kWPntaa4krQXX9V63c1dPtDS0lyJjZWV4NJV4zgOS7SscWau+BvOb31VrPvy9jnQOCKV1VLw6Tur4so/2nECDW2qk2SyKNFgxn12Bfepta7qIbrnHAz3Wgft7fE/8g3e4O592WDVhfR7+cFHk39bvwzkWY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1749585119564588.6547937874974; Tue, 10 Jun 2025 12:51:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uP502-0002Vy-9i; Tue, 10 Jun 2025 15:51:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uP3Eh-0002kN-Um for qemu-devel@nongnu.org; Tue, 10 Jun 2025 13:58:12 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uP3Eg-0001dc-2N for qemu-devel@nongnu.org; Tue, 10 Jun 2025 13:58:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D0E99240027 for ; Tue, 10 Jun 2025 19:58:06 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4bGxNG2KHPz6twY; Tue, 10 Jun 2025 19:58:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=1984.ea087b; t=1749578286; bh=virSmyg9yBkjNHV+QKHPqLne67mu64M5jcNafW8sykU=; h=Mime-Version:Content-Transfer-Encoding:Content-Type:Date: Message-Id:Subject:From:To:From; b=JJXT371idrz7HaChX72/o56X8ucwnwkh0ze7dVLSeBVwGcItNOnvyUwJYKJDw94VO QU1B5x0RgFse7xGp5tAMn9dI/clpCqsAEm7aHlfv96fyY+S5tabYCX6TMhGU7gZusq 8lUWHSq6GRGicILZ3WX83zuEOO90S23a8EulP9MvhRkOzsOh7J66rSCI4H7/E/HVII g3WvIBxugycd//7nTR+cAO6sKFiTFmfjCHLwD41Rg1Z99/Ic6BuceEAqTNRIaaIbf4 5XYFaZlHR/d8pdeSjMnAjOALxFJ/kGrmzdWbvEl8WdFhnJ2fnjhUIzdG9mr55eawLm laySWe6jnnwkiMxaJ3kgXbJjdggCwMavkDMnUV6z1knGOd5j3mWZMd5AgLJr4asIRW L1nbGESPYE61uB5MbbHI6fmJnNiiDAeTW15EKfUmt54MXzL+nYp9iYLJqo2Z2MR+By aZ7wZhIZ5eiLlu6CESB7xzYqppJniAcz654w6vDvzIBog4Y988m Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Date: Tue, 10 Jun 2025 17:58:06 +0000 Message-Id: Subject: [PATCH] pc-bios/s390-ccw: link statically From: "Sertonix" To: , "Thomas Huth" Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=185.67.36.65; envelope-from=sertonix@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 10 Jun 2025 15:51:04 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @posteo.net) X-ZM-MESSAGEID: 1749585121100116600 Content-Type: text/plain; charset="utf-8" Adding -pie to LDFLAGS caused s390-ccw.img to become dynamically linked. By using -static-pie it will be linked statically like other bios. This ensures that the build output doesn't change depending on the default dynamic loader path of the toolchain. Ref d884c86dcd3b s390/bios: Make the s390-ccw.img relocatable Signed-off-by: Sertonix --- pc-bios/s390-ccw/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile index dc69dd484f..a0f24c94a8 100644 --- a/pc-bios/s390-ccw/Makefile +++ b/pc-bios/s390-ccw/Makefile @@ -47,7 +47,7 @@ EXTRA_CFLAGS +=3D -fwrapv -fno-strict-aliasing -fno-async= hronous-unwind-tables EXTRA_CFLAGS +=3D -msoft-float EXTRA_CFLAGS +=3D -std=3Dgnu99 EXTRA_CFLAGS +=3D $(LIBC_INC) $(LIBNET_INC) -EXTRA_LDFLAGS +=3D -Wl,-pie -nostdlib -z noexecstack -z text +EXTRA_LDFLAGS +=3D -static-pie -nostdlib -z noexecstack -z text =20 cc-test =3D $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/d= ev/null cc-option =3D if $(call cc-test, $1); then \ --=20 2.49.0