From patchwork Tue Jun 4 11:59:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Hartmayer X-Patchwork-Id: 13685103 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34602145A1D; Tue, 4 Jun 2024 11:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502399; cv=none; b=ikgg0OSWmSMxg4cXCtcs3BJDNJHWjc18YKxPbx6lfDl/9GuRRa1pEo2Cw5muvYdR837ZetL7X22C4KZJSc/LDbPn6bCUnMe8sfXThxu4rmbqdqx6yGw4yAUpcZbsG7UVbbDTYdqcXEwbhISq70TTcnh/HVp8rxlFdHu97rv3eEA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502399; c=relaxed/simple; bh=M6As7ZGhYuZoZd+CPvSeCMVOGvlPd3Hc+JcJjdBwGuw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Yrs8EMQN48wpanxQA1InPzg1jHbw0mJttXcP91f7GkqM9rEg2ktpHWuEUceoIxsU5GBdKy3sYLrEtKzFuy+GXpj0DxfYeGjmBRzMOMH9i6Wi9FH5liAblG588npVvWc+YRnsnXBWPZO1l4OJQ3W4RBzr4TGqFBRp5w8eeSobNWg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=JezbahM5; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="JezbahM5" Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454BknFk004638; Tue, 4 Jun 2024 11:59:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=Ppv8tgE7pPzq4jYz87pmrcwToMp2s1b8v+bexG//mYE=; b=JezbahM5sfdOBgL+p/Sws+5/SYGLhigdBdopqXjGTAwkMM2/2en+B7suqXPIA3BBaHSu WbaibXVzNEIz2ZfIVggboL628jOAIUfEyPayZ69Am1R1aonJqOvxFRMpFH1lczwDHdWR QmbwSYjn+kr/63IfRTuHDtz0coiYNGaysmMdBEwt5AyRAHBq4mDafqeQ6kF1+Fl8bV3w Ia6NttoBNn6+KguDt7EXYzjVc+ioLq/keXLUhECQPmHgwwj/PlpLGhYLbbwraItRxNrB hraBJpQzmR3Ow9qqGEwWws6JBPDbipI6Ch7ki9mhIqrpRfTYHQEkgSehGwNj3yG/P5LP KA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj2bsg1qx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:57 +0000 Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 454Bvj3K023739; Tue, 4 Jun 2024 11:59:56 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj2bsg1qu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:56 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 454APSl9022794; Tue, 4 Jun 2024 11:59:55 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ygg6m5ht4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:55 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 454Bxo8s29229498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Jun 2024 11:59:52 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 26E642004F; Tue, 4 Jun 2024 11:59:50 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A018A2004B; Tue, 4 Jun 2024 11:59:49 +0000 (GMT) Received: from li-1de7cd4c-3205-11b2-a85c-d27f97db1fe1.fritz.box (unknown [9.171.63.147]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 4 Jun 2024 11:59:49 +0000 (GMT) From: Marc Hartmayer To: , Thomas Huth , Nicholas Piggin Cc: , Janosch Frank , Nico Boehr , Steffen Eiden Subject: [kvm-unit-tests PATCH v1 1/3] s390x/Makefile: snippets: Add separate target for the ELF snippets Date: Tue, 4 Jun 2024 13:59:30 +0200 Message-ID: <20240604115932.86596-2-mhartmay@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604115932.86596-1-mhartmay@linux.ibm.com> References: <20240604115932.86596-1-mhartmay@linux.ibm.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: _wkKb6gq94jSzunkaH8z2w70K2kyM_0y X-Proofpoint-GUID: c8Jfcqf5fTEzhSGDfBA3637jlUHD5del X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-04_05,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040097 It's unusual to create multiple files in one target rule, and it's even more unusual to create an ELF file with a `.gbin` file extension first, and then overwrite it in the next step. It might even lead to errors as the input file path is also used as the output file path - but this depends on the objcopy implementation. Therefore, create an extra target for the ELF files and list it as a prerequisite for the *.gbin targets. Signed-off-by: Marc Hartmayer Reviewed-by: Nicholas Piggin Reviewed-by: Janosch Frank --- s390x/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/s390x/Makefile b/s390x/Makefile index 23342bd64f44..784818b2883e 100644 --- a/s390x/Makefile +++ b/s390x/Makefile @@ -153,14 +153,18 @@ $(SNIPPET_DIR)/asm/%.o: $(SNIPPET_DIR)/asm/%.S $(asm-offsets) $(SNIPPET_DIR)/c/%.o: $(SNIPPET_DIR)/c/%.c $(asm-offsets) $(CC) $(CFLAGS) -c -nostdlib -o $@ $< -$(SNIPPET_DIR)/asm/%.gbin: $(SNIPPET_DIR)/asm/%.o $(SNIPPET_DIR)/asm/flat.lds +$(SNIPPET_DIR)/asm/%.elf: $(SNIPPET_DIR)/asm/%.o $(SNIPPET_DIR)/asm/flat.lds $(CC) $(LDFLAGS) -o $@ -T $(SNIPPET_DIR)/asm/flat.lds $< - $(OBJCOPY) -O binary -j ".rodata" -j ".lowcore" -j ".text" -j ".data" -j ".bss" --set-section-flags .bss=alloc,load,contents $@ $@ + +$(SNIPPET_DIR)/asm/%.gbin: $(SNIPPET_DIR)/asm/%.elf + $(OBJCOPY) -O binary -j ".rodata" -j ".lowcore" -j ".text" -j ".data" -j ".bss" --set-section-flags .bss=alloc,load,contents $< $@ truncate -s '%4096' $@ -$(SNIPPET_DIR)/c/%.gbin: $(SNIPPET_DIR)/c/%.o $(snippet_lib) $(FLATLIBS) $(SNIPPET_DIR)/c/flat.lds +$(SNIPPET_DIR)/c/%.elf: $(SNIPPET_DIR)/c/%.o $(snippet_lib) $(FLATLIBS) $(SNIPPET_DIR)/c/flat.lds $(CC) $(LDFLAGS) -o $@ -T $(SNIPPET_DIR)/c/flat.lds $< $(snippet_lib) $(FLATLIBS) - $(OBJCOPY) -O binary -j ".rodata" -j ".lowcore" -j ".text" -j ".data" -j ".bss" --set-section-flags .bss=alloc,load,contents $@ $@ + +$(SNIPPET_DIR)/c/%.gbin: $(SNIPPET_DIR)/c/%.elf + $(OBJCOPY) -O binary -j ".rodata" -j ".lowcore" -j ".text" -j ".data" -j ".bss" --set-section-flags .bss=alloc,load,contents $< $@ truncate -s '%4096' $@ %.hdr: %.gbin $(HOST_KEY_DOCUMENT) From patchwork Tue Jun 4 11:59:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Hartmayer X-Patchwork-Id: 13685104 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1F25145A1E; Tue, 4 Jun 2024 11:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502400; cv=none; b=d4yljcds9avuMxuztszfoHWlvLDhSpMHDuZqqvaTLwlKDbyA/838znd56qedrP2pbRMk6FXtKLIe0uCaIm65fayG45zK4uumwIuNABaw88zPoh5hnjftswDJlFScSf1f/UGOoJGrpPX84zPuzI4L9GUEcv+JNDvlriR1yVTFDBo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502400; c=relaxed/simple; bh=GfX2m8ASdRy0YWeWEMJPLX6EG2NUQlaKFwOgxXPHbYU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=czown0mIFZ3wLuhJdCnQaKWKBtpL8YeGRZ2neCAWHQk/s+1uiTv9ctInBsy8x2ttV9jBuTJJRXmaN/tx/rf2QOU/1XynKFNcy1CCLPVj1/NL82YX0afcq7yj/TYmHWNynSuAqZeVfuB8EvEqIkNZ6CxAidU6tK6eSheBiRE+iXU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=QudvK+LW; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="QudvK+LW" Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454BhQr1017359; Tue, 4 Jun 2024 11:59:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=dND1/5Ad8IpqjKN3cHLjsfzaklArkz4Q/Ih4HFELY8s=; b=QudvK+LWAJb3P/uzZKXo6hwCPhHfJxGC8jADRwUwQ5YhFagNOrkXtnt7AUrFM+xSzE75 lvjthgdleXFLkJxZJcydAB4Cn2WuvGkofhUu8xBL5LFXSsXBKMsfWhMwAZhd1ScWl67I y1Ym4B1LBj5IK3MWUqOS4jebuWTd7uUqD++Qzk0aA+Mq/iPXn10iy8Lnp6xt5Jxbn7MP RCK41SSYmTOsqU0snyLcsKOf5cPZ83sMTcmwqwSF1IHBM//b047BDTZDd/ytALQBVr84 Jetmqw8Cu5hD18Uo/JdRYYEqW7t2CF20alHmbx8WWh3/0XnTjRRVjtgPEjaD173mtL3g Ow== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj29qg2er-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:57 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 454BxvhS012491; Tue, 4 Jun 2024 11:59:57 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj29qg2em-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:57 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4548YBoa008479; Tue, 4 Jun 2024 11:59:56 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ygec0p1qh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:56 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 454BxoiD43843988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Jun 2024 11:59:52 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BC0252005A; Tue, 4 Jun 2024 11:59:50 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 409602004B; Tue, 4 Jun 2024 11:59:50 +0000 (GMT) Received: from li-1de7cd4c-3205-11b2-a85c-d27f97db1fe1.fritz.box (unknown [9.171.63.147]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 4 Jun 2024 11:59:50 +0000 (GMT) From: Marc Hartmayer To: , Thomas Huth , Nicholas Piggin Cc: , Janosch Frank , Nico Boehr , Steffen Eiden Subject: [kvm-unit-tests PATCH v1 2/3] s390x/Makefile: snippets: Avoid creation of .eh_frame and .eh_frame_hdr sections Date: Tue, 4 Jun 2024 13:59:31 +0200 Message-ID: <20240604115932.86596-3-mhartmay@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604115932.86596-1-mhartmay@linux.ibm.com> References: <20240604115932.86596-1-mhartmay@linux.ibm.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: n1-vTNWB3kgjKeITrxvoMnPh-cF9oU2c X-Proofpoint-ORIG-GUID: ukxcMWBes8kqGeklFS9NqhedZG9HwEf_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-04_05,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 phishscore=0 spamscore=0 impostorscore=0 mlxscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040097 Use `-fno-asynchronous-unwind-tables` and `-fno-exceptions` to avoid creating `.eh_frame` and `.eh_frame_hdr` sections. They are not used by the snippets and the creation of the sections may result in the creation of an RWX segment (depending on the toolchain used). Before this change: $ make -j s390x/snippets/c/spec_ex.elf >/dev/null && readelf -l s390x/snippets/c/spec_ex.elf /usr/bin/s390x-linux-gnu-ld: warning: s390x/snippets/c/spec_ex.elf has a LOAD segment with RWX permissions Elf file type is EXEC (Executable file) Entry point 0x4000 There are 4 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align LOAD 0x0000000000001000 0x0000000000000000 0x0000000000000000 0x00000000000001b0 0x00000000000001b0 RW 0x1000 LOAD 0x0000000000002000 0x0000000000004000 0x0000000000004000 0x000000000000104c 0x0000000000001060 RWE 0x1000 GNU_EH_FRAME 0x0000000000003038 0x0000000000005038 0x0000000000005038 0x0000000000000014 0x0000000000000014 R 0x4 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 0x10 Section to Segment mapping: Segment Sections... 00 .lowcore 01 .text .eh_frame .eh_frame_hdr .bss 02 .eh_frame_hdr 03 After this change, there is no warning and no RWX ELF segment: $ make -j s390x/snippets/c/spec_ex.elf >/dev/null && readelf -l s390x/snippets/c/spec_ex.elf Elf file type is EXEC (Executable file) Entry point 0x4000 There are 4 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align LOAD 0x0000000000001000 0x0000000000000000 0x0000000000000000 0x00000000000001b0 0x00000000000001b0 RW 0x1000 LOAD 0x0000000000002000 0x0000000000004000 0x0000000000004000 0x00000000000000a8 0x00000000000000a8 R E 0x1000 LOAD 0x0000000000000000 0x0000000000005000 0x0000000000005000 0x0000000000000000 0x0000000000000010 RW 0x1000 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 0x10 Section to Segment mapping: Segment Sections... 00 .lowcore 01 .text 02 .bss 03 Linker used: $ s390x-linux-gnu-ld -v GNU ld version 2.41-1.fc40 Therefore the commit 9801dbbe9ea4 ("s390x: Specify program headers with flags to avoid linker warnings") can be reverted. --- Note: we have to double check whether__builtin_frame_address() in s390x/stack.c needs the .eh_frame or not. --- Signed-off-by: Marc Hartmayer --- s390x/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s390x/Makefile b/s390x/Makefile index 784818b2883e..f1bbf5e9f457 100644 --- a/s390x/Makefile +++ b/s390x/Makefile @@ -148,10 +148,10 @@ endif # the asm/c snippets %.o have additional generated files as dependencies $(SNIPPET_DIR)/asm/%.o: $(SNIPPET_DIR)/asm/%.S $(asm-offsets) - $(CC) $(CFLAGS) -c -nostdlib -o $@ $< + $(CC) $(CFLAGS) -c -nostdlib -fno-asynchronous-unwind-tables -fno-exceptions -o $@ $< $(SNIPPET_DIR)/c/%.o: $(SNIPPET_DIR)/c/%.c $(asm-offsets) - $(CC) $(CFLAGS) -c -nostdlib -o $@ $< + $(CC) $(CFLAGS) -c -nostdlib -fno-asynchronous-unwind-tables -fno-exceptions -o $@ $< $(SNIPPET_DIR)/asm/%.elf: $(SNIPPET_DIR)/asm/%.o $(SNIPPET_DIR)/asm/flat.lds $(CC) $(LDFLAGS) -o $@ -T $(SNIPPET_DIR)/asm/flat.lds $< From patchwork Tue Jun 4 11:59:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Hartmayer X-Patchwork-Id: 13685105 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DECA145B0C; Tue, 4 Jun 2024 11:59:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502401; cv=none; b=NT8tA8I2JjZvLnHsfXwwnXPfvnmn1PAZqV4K5mFPOZNaFTv7A3sbnfTxliVBQuU4SAYw/UyIyf3L+DvxL+eC57mIG0DLWS1/RL5ahSLaW2K9a01Vu0LM1u65HoGNH11ePLukVHKijWL7yXIhrhFnx7mc1OJTt0OH1RWMJO5N8iY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502401; c=relaxed/simple; bh=V56UO5c9spD1zbcJqXY8CjDPFIMuAXYnBf0opGCHPUo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dxi/KKUl/qT1FgE2uXBAn9OxewXQDKEZN0S/1S4o+6HWy3YD3HY2u2V/o1dX/D+rsy/muafmSMHmMSHdD0eBRZvUDE4vCuNyEcJrK4yIGAS8Sv8oAIw0FgUppl2ROQqkRPupJ8jEDzCLnigzFWc9P8jeeqpxlN1iBT79D1/LtS8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=Y1QZiKCN; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="Y1QZiKCN" Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454BoeoH027703; Tue, 4 Jun 2024 11:59:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=nuyAy6vdil2V/59dkgudJ9K7wx8t47Ko+iwDqlNZfQQ=; b=Y1QZiKCN4vTmjfpQUVqLhFD6594kmnH3cJtsOqgosq2m+XgO5/+cJwdKWWLxDJ4bG43x Mh+bh72Pg/g82ZbirPs3WLCEUzn1fDlYLZ7FSsEAEDaDiv+Tm3ulfBi8MffBaBVQyJi3 HeyExR/2EdDEKX/COKjZtQAYq883CV8x/ZbjAnLXBZFoNF8bzMP7Vf1u12bswhwLn3hx n9YDvF5ZC9xK2yUufHJMY8U/M4xzy0leLG72CB1ByCkV+v03U6LcltGOA7mLUEKABgGc 6ANNkWtjnGeL2wj/xVQJQ1z3LozloVdF6ChKN19OJjr84gi4+jU/rGHbiWGWGMcjdVYQ aA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj29qg2ex-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:58 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 454BxvxZ012503; Tue, 4 Jun 2024 11:59:57 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj29qg2eu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:57 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4549PC1j031114; Tue, 4 Jun 2024 11:59:57 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ygeypduka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 11:59:57 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 454BxpCX20447488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Jun 2024 11:59:53 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 649C22004D; Tue, 4 Jun 2024 11:59:51 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D501A2004B; Tue, 4 Jun 2024 11:59:50 +0000 (GMT) Received: from li-1de7cd4c-3205-11b2-a85c-d27f97db1fe1.fritz.box (unknown [9.171.63.147]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 4 Jun 2024 11:59:50 +0000 (GMT) From: Marc Hartmayer To: , Thomas Huth , Nicholas Piggin Cc: , Janosch Frank , Nico Boehr , Steffen Eiden Subject: [kvm-unit-tests PATCH v1 3/3] Revert "s390x: Specify program headers with flags to avoid linker warnings" Date: Tue, 4 Jun 2024 13:59:32 +0200 Message-ID: <20240604115932.86596-4-mhartmay@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604115932.86596-1-mhartmay@linux.ibm.com> References: <20240604115932.86596-1-mhartmay@linux.ibm.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: q2C10yWq_966gkITX4TpKXGVmPLspRNF X-Proofpoint-ORIG-GUID: wcn6pqZIAVd6tkaYnWNm6SizjaZL5t7A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-04_05,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 phishscore=0 spamscore=0 impostorscore=0 mlxscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040097 From: Super User This reverts commit 9801dbbe9ea4591b2c32a51e5b29cb64502b93fb. Signed-off-by: Marc Hartmayer --- s390x/snippets/c/flat.lds.S | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/s390x/snippets/c/flat.lds.S b/s390x/snippets/c/flat.lds.S index 6b8ceb9e0dca..468b5f1eebe8 100644 --- a/s390x/snippets/c/flat.lds.S +++ b/s390x/snippets/c/flat.lds.S @@ -1,11 +1,5 @@ #include -PHDRS -{ - text PT_LOAD FLAGS(5); - data PT_LOAD FLAGS(6); -} - SECTIONS { .lowcore : { @@ -35,7 +29,7 @@ SECTIONS *(.init) *(.text) *(.text.*) - } :text + } . = ALIGN(4K); etext = .; /* End text */ @@ -43,9 +37,9 @@ SECTIONS .data : { *(.data) *(.data.rel*) - } :data + } . = ALIGN(16); - .rodata : { *(.rodata) *(.rodata.*) } :data + .rodata : { *(.rodata) *(.rodata.*) } . = ALIGN(16); .bss : { *(.bss) } /* End data */