From patchwork Sun Jun 2 13:06:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 13682835 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1468C10795; Sun, 2 Jun 2024 13:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717333632; cv=none; b=Hjh34ycjDACWRRKCFkmVZ+Ujs45XpXZ/jf2swbUBklDZPmMhzafgAQP+OiKBqAAiVcgo52gj7iCNpWJWtNhGd9vt2/wW4jrCdW4BrLy6yXpwO0B9vUn7jXZL6LXNC2MUhDH3cEUD+BEQ2jld0rtkqEux0tGAWOFVa5ULB7ljWrY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717333632; c=relaxed/simple; bh=FH0kSoTf3GFg61ooCBg0WYMnLgTRSbRWJbNQmv0jzyY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=poU6tGY88vnBBLombEHI+RSFe7S3GZTfrrks3NRBvR3q3pKe6CRjOusVvIgDWZBG0uF6SJFZ6DfvsKlA2ghDdKYzLlmIeQjfGQEXGWt4T/lRNmFQ4WRlUR8kV91wQNtBHb3b8P9/pNP6LdNKUXmnPDniZw5OvFlQNlbJPG7udNg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=E1r0E7pH; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E1r0E7pH" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-70249c5fb36so1615680b3a.2; Sun, 02 Jun 2024 06:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717333630; x=1717938430; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FdJAWFUB+L1UfVj9JilXmEdsovfbSHIZV4hZgFve3rc=; b=E1r0E7pHPN/1Xfky1KWDLW9Xhaa1bWZo+D5Y8kdYBaeydmVFPydJfGKaZYUf0gPd6y DHzg46CasUOyduTB59rO2Zy6XFNzyIqkpq7wAb8HIBpnRwP5gFC06HylT7OX1nC1Qzk9 bycV9FLb4Ju/hLbhBLyZr/h6MOsgBUVlkxzh0y/GIt1DxAqt6Kh8dDAW5uTUwuNJc+jb 8bbVLWl8vmQ0CoD2DWtB/y/n86kseVmHBkBlB95m6+MaZouunxsby1XGX1G6sBG4s2Fd gfcDIbj1hFtCdeOCQo32Kae9PFs1oO3/h2+19iU/KuQntEkZ9YEePuBW8LwbEGwm4eYz 557A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717333630; x=1717938430; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FdJAWFUB+L1UfVj9JilXmEdsovfbSHIZV4hZgFve3rc=; b=GmvMSzqS9qZLkRq9zHgKQy+7mlyP8LpiAeKzB/B+RmgMW31ni9nb+rmnwZo1rXEQZz d1UAvPkJ5rhUWbNIJDYjeDDvTv0H2Ml8VY2X9F6CsqOQQ1G5cVjWnKWjrqbFbaWKU31I PWcnvhW2lF/M5qT9rjFhZ6aou/WIlaMUZimmQgc+nGjOpa9lATYpmfh17twZYq8qrrLf QLiQHdYlo6MrBppnQcrv4MUUCXznxyCWrGgsAg2t48+i4ZfOzALm7FbeZWS4OdCw2EV4 LQbi+W48MrduegbCslU4fdJbo8EfQf+FccDMseYMLxK95KCfmITr4iF+5KJ+DZMIXpWw QHpw== X-Forwarded-Encrypted: i=1; AJvYcCVOP3dnZZJDIkLdoyF/v9EQo/Dp4wMftNdQ90HtKxZGAHK+/DWu7o64yOQB+FoI12hUWyFfI+2KvvuCXM/lMGjSrCfb X-Gm-Message-State: AOJu0Yw//6d8fepcAmhD2LSBSXSd1xPeZ92+yFLI9vr76XpVk9MEy7Bb 6e/EeHG8yuSG2iPoaO+23OJE7bnkLVP72IuRH7Pqdw5az/pcBYm/0gr4Rw== X-Google-Smtp-Source: AGHT+IHvsvuIQ5SOq1qQYCUdhBK/sF25bxnpSIpAMGkwACdBlhLBTmFt1HMDZF+iSDbpLdvnQVGbzw== X-Received: by 2002:a05:6a00:3c83:b0:6f4:59cd:717 with SMTP id d2e1a72fcca58-702478c7cfcmr8219037b3a.28.1717333629615; Sun, 02 Jun 2024 06:07:09 -0700 (PDT) Received: from wheely.local0.net (110-175-65-7.tpgi.com.au. [110.175.65.7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-702423cf27fsm4138655b3a.12.2024.06.02.06.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 06:07:09 -0700 (PDT) From: Nicholas Piggin To: linux-s390@vger.kernel.org Cc: Nicholas Piggin , Janosch Frank , Claudio Imbrenda , =?utf-8?q?Nico_B=C3=B6hr?= , David Hildenbrand , Thomas Huth , kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH 1/2] s390x: Only run genprotimg if necessary Date: Sun, 2 Jun 2024 23:06:55 +1000 Message-ID: <20240602130656.120866-2-npiggin@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240602130656.120866-1-npiggin@gmail.com> References: <20240602130656.120866-1-npiggin@gmail.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 genprotimg is not required if the --host-key-document= configure option is not specified, so avoid running it in that case. This prevents the build message: bash: line 1: genprotimg: command not found Signed-off-by: Nicholas Piggin Reviewed-by: Janosch Frank --- s390x/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/s390x/Makefile b/s390x/Makefile index 19c41a2ec..c6518bbd1 100644 --- a/s390x/Makefile +++ b/s390x/Makefile @@ -213,12 +213,16 @@ $(comm-key): # The genprotimg arguments for the cck changed over time so we need to # figure out which argument to use in order to set the cck +ifneq ($(HOST_KEY_DOCUMENT),) GENPROTIMG_HAS_COMM_KEY = $(shell $(GENPROTIMG) --help | grep -q -- --comm-key && echo yes) ifeq ($(GENPROTIMG_HAS_COMM_KEY),yes) GENPROTIMG_COMM_OPTION := --comm-key else GENPROTIMG_COMM_OPTION := --x-comm-key endif +else +GENPROTIMG_HAS_COMM_KEY = +endif ifeq ($(CONFIG_DUMP),yes) # allow dumping + PCKMO From patchwork Sun Jun 2 13:06:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 13682836 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29D0F10795; Sun, 2 Jun 2024 13:07:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717333636; cv=none; b=DNisjap/gerVIBqvyb5gOesYE2HQurWsW/iX1ItK8MSGEyr0BsZRM0PdgsPLqqMXeqDpci3yM9HzBOyfXWVFXQU0UujdxNkAUhiz7c1NupI0h6Go/I+aew6j/hReGFYO4gKTPtVkm7ilKCts1dtn8Lta2hvaEh2P6vO+77bNgyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717333636; c=relaxed/simple; bh=ZUHICodxKLHcGytgkDk7+KBk2k1vqHUHM7dveNF5/hs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QRA87kodTk/DPulwnOlWWZHw9r/5gTbRXiK643c2pEOu5c5EBVW4dLd8/h7LAial/W6dHJr9b7QEa6CAllxQjyyOZfOwXAK+zCFPz0ENJ/CPN+5Rw/xSNU2JZmmqXotN8eU042mMpdjnm5SRtG++njxxFchK9lcwvXkh7RYl81M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LwrdDJfr; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LwrdDJfr" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-701ae8698d8so2688390b3a.0; Sun, 02 Jun 2024 06:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717333634; x=1717938434; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7kbHiMK1inuLj0pOdGvpJ+rvlSH9E+ImoorzfUp0K1M=; b=LwrdDJfrleFxCokhG5PiFRZLEoMrbPrNQ+vUurxe89KGMxBGcltu/ec6eKXU+qbj+6 xu2vP7kWA5OEhR/AArz2b/xQNW/kfWYkr9soAaE7Th78/6DQobgUh1gas9PNAwcj8UKU 8O0/CAxvONX4FPfmAm2INqZH+rJy6NB+76ihxMhclR9/SnvLlF2f3PH4St6CBYmCV1ea MtY0lpryuP0dfEK+laa8tVx3NzutdWUWlSAKbYXZ0/+CViUE+Pe0xmXIZkpJHHUJWzde pYfD8CiE7taQT/G5zAHtIUMSWUYk5MRufH1B2sxdohXHUN8WnEieJsgMjmjSApiJVdBg hBnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717333634; x=1717938434; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7kbHiMK1inuLj0pOdGvpJ+rvlSH9E+ImoorzfUp0K1M=; b=Nck/05KHyqpa8TmbOHEA4BO0Uj2uRujDIlUPvGy8olWffVh6Hoh/Lp3dVZoAPlUXJA YJrQI70C99WxiCHUhBKWcxs9tObWy+uBwP/uxRaq1Yen3Mo1fASl7HLWjzc3Ug/JwMwb 8LC/7F+JqggOifaFin1789QGJC16yscr5q2vTJdFsDVH8w3L775DZtkn228NsT+fbprx pRfiR+ZrZlPLt9dWfjZbnhjBLaVUC+8WYZxhxDKpCfYiUbBxBxS1aUVGkTR3O0fdTXqT /EAoMFmP/r1LW80UB2Ki558yyN4k2mKw6HQJd+QChqebtTlp8jzNJF9xdminnhzsAj1i fxDg== X-Forwarded-Encrypted: i=1; AJvYcCW63zwPymC3KoSRBMRzS32kAyYoDXOOm0gWgPmz9FV/3J2iclbJ/3WLvZBoQqn0oNHiu41m/4S2rtNwNjNbDnruvzpz X-Gm-Message-State: AOJu0YwbLk2yoZh2vLdOlZPstgYrJEa4LtOx9oRRhbbqy7gA1jQzK4cJ FWhtWMYm55rBkkTSNrwmmh3O8DYu3R5NG8wyr0LI9ht59g9BjeGWxgPscg== X-Google-Smtp-Source: AGHT+IFFnTrpdso0rZP5sjXPVO7GWyTiebsPVzyuVwhUAHKlB9TerM5N7o8fkWpwdDrlhX1+pDIT1w== X-Received: by 2002:aa7:8893:0:b0:6f3:eaa2:53a0 with SMTP id d2e1a72fcca58-7024789ca9dmr8316315b3a.24.1717333633799; Sun, 02 Jun 2024 06:07:13 -0700 (PDT) Received: from wheely.local0.net (110-175-65-7.tpgi.com.au. [110.175.65.7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-702423cf27fsm4138655b3a.12.2024.06.02.06.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 06:07:13 -0700 (PDT) From: Nicholas Piggin To: linux-s390@vger.kernel.org Cc: Nicholas Piggin , Janosch Frank , Claudio Imbrenda , =?utf-8?q?Nico_B=C3=B6hr?= , David Hildenbrand , Thomas Huth , kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH 2/2] s390x: Specify program headers with flags to avoid linker warnings Date: Sun, 2 Jun 2024 23:06:56 +1000 Message-ID: <20240602130656.120866-3-npiggin@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240602130656.120866-1-npiggin@gmail.com> References: <20240602130656.120866-1-npiggin@gmail.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Avoid "LOAD segment with RWX permissions" warnings from new linkers by specifying program headers. See 59a797f451cde and linked commits for similar fixes for other architectures. Signed-off-by: Nicholas Piggin --- s390x/snippets/c/flat.lds.S | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/s390x/snippets/c/flat.lds.S b/s390x/snippets/c/flat.lds.S index 468b5f1ee..6b8ceb9e0 100644 --- a/s390x/snippets/c/flat.lds.S +++ b/s390x/snippets/c/flat.lds.S @@ -1,5 +1,11 @@ #include +PHDRS +{ + text PT_LOAD FLAGS(5); + data PT_LOAD FLAGS(6); +} + SECTIONS { .lowcore : { @@ -29,7 +35,7 @@ SECTIONS *(.init) *(.text) *(.text.*) - } + } :text . = ALIGN(4K); etext = .; /* End text */ @@ -37,9 +43,9 @@ SECTIONS .data : { *(.data) *(.data.rel*) - } + } :data . = ALIGN(16); - .rodata : { *(.rodata) *(.rodata.*) } + .rodata : { *(.rodata) *(.rodata.*) } :data . = ALIGN(16); .bss : { *(.bss) } /* End data */