Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10886764rwd; Thu, 22 Jun 2023 06:14:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7B25pY2Iz+GX7ybenDipQ/+KxZZKI9nuSHG0L5mcGgHj2phH/foZ6HvKxko7W+gK+7k4Ud X-Received: by 2002:a17:902:8e89:b0:1b5:ccd:af69 with SMTP id bg9-20020a1709028e8900b001b50ccdaf69mr10297558plb.69.1687439683514; Thu, 22 Jun 2023 06:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687439683; cv=none; d=google.com; s=arc-20160816; b=rIgBoZRM+8hTd5hp8V0Bv5tx9BtQvcmvhhABairJ0MPSIe3dM4ZWvfFMMB+rT4BTb1 aBgQ6pcBwRWqe5P/k+OQKcTTqJSAzW1K2qFBfjh/wmJeFpr0g8oaNQc050cQ3KpUruug WBY1bsIdNO59Me1bewev+cZltn8EtT0jt2PBu7UbWMSnOSHLga5cHQB9c4kj/jdROs/k V0YYv39Q69uQAAxt80rj0uUeaUA9kKN3ko4Eg0mqCiuXW7TKcX5cDBpnkQOoUgF8z7oc hR/hyG/a4QL/brFcLyulgTGo9CasviQQnnSMyBYFqkcRpiYPsv9s7vfj5dhftGcPMhkZ 3E6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=VCuQ5gG0TnmWKwG3oiEM5w2mHyN88iriwTagvgLQmcU=; b=qhCWMdXtYDSKsgSpVX4cO8JI1LoE5sWD9dp/ZNW0kI2TmVG78ZqekmrAv6gLrlTB9M /8lzvhgU4l+Jr2E5/ESljRyailoTi/J2x/GmSmaO/KJyY9tnlmKPX7a1VQmK0/xmSZZJ o6L3DhJVyr1H2rZu2VdePdeHAYSflhKKGc+W8eBbsV9E3fI3pIvA4ctCe29bTVPwTEQv xeXFLtwaefEhuiUoWpE5shhN/gDM5cpaf2ViGccnT1VwK9vqAdPPROaxttpeM3tvmYXm eXLQ9phLATHC0LmkIwd2HE6x+qETOPHey0VM1DfchCXybVZBrhIa8xkXR/Ufz5XOqlhi dEvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=c+dtaSjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a170903018600b001a99ace3e76si904426plg.554.2023.06.22.06.14.30; Thu, 22 Jun 2023 06:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=c+dtaSjc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231286AbjFVMzW (ORCPT + 99 others); Thu, 22 Jun 2023 08:55:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbjFVMzV (ORCPT ); Thu, 22 Jun 2023 08:55:21 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5511F10F6; Thu, 22 Jun 2023 05:55:20 -0700 (PDT) Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35MChoZZ013565; Thu, 22 Jun 2023 12:55:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pp1; bh=VCuQ5gG0TnmWKwG3oiEM5w2mHyN88iriwTagvgLQmcU=; b=c+dtaSjcSvGfhD0Q0YpVtpB7jrw6Zh/xvb02vkBBKTlfgSXnWPOkCdocp/X+3CrrXP4L aNBO8RMapv9ZEzNmR6B9Y4qCzNzx+o7dOStao2bwZX5a0D5RJsn4fD0XJEj+ffwdSTkf dbPAD9kMq0PwspVUg1YaxjdqjR+woGgkiZ1BhwW0Q0nUtmNGKyCrU/DTtEUjzncTsn/R CPtvfRBqpWq3gLj3MZxiWHuDhEMajZBgoRagByOxkEF1kH7uDmGUcLGX5lJWvVXXy7jI s1uHjcKdijSRAre8XSaRl2O5G2HvQqc6b7+jvAY6wZhA4mtr8n+YpXU1ObuN3UcMdFcT oA== Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rcpj78a3c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 12:55:16 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35M8G2WO024574; Thu, 22 Jun 2023 12:55:15 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma02fra.de.ibm.com (PPS) with ESMTPS id 3r94f5ammx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 12:55:14 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35MCt9j624576588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Jun 2023 12:55:09 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 79D6B20043; Thu, 22 Jun 2023 12:55:09 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2FEB82004F; Thu, 22 Jun 2023 12:55:09 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 22 Jun 2023 12:55:09 +0000 (GMT) From: Heiko Carstens To: Nathan Chancellor Cc: Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Ulrich Weigand , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] s390/decompresser: fix misaligned symbol build error Date: Thu, 22 Jun 2023 14:55:08 +0200 Message-Id: <20230622125508.1068457-1-hca@linux.ibm.com> X-Mailer: git-send-email 2.39.2 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: asdIpcSa8pPfj8Xz50nagA6-Sp0SJTWT X-Proofpoint-ORIG-GUID: asdIpcSa8pPfj8Xz50nagA6-Sp0SJTWT Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-22_08,2023-06-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 clxscore=1011 adultscore=0 priorityscore=1501 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306220105 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nathan Chancellor reported a kernel build error on Fedora 39: $ clang --version | head -1 clang version 16.0.5 (Fedora 16.0.5-1.fc39) $ s390x-linux-gnu-ld --version | head -1 GNU ld version 2.40-1.fc39 $ make -skj"$(nproc)" ARCH=s390 CC=clang CROSS_COMPILE=s390x-linux-gnu- olddefconfig all s390x-linux-gnu-ld: arch/s390/boot/startup.o(.text+0x5b4): misaligned symbol `_decompressor_end' (0x35b0f) for relocation R_390_PC32DBL make[3]: *** [.../arch/s390/boot/Makefile:78: arch/s390/boot/vmlinux] Error 1 It turned out that the problem with misaligned symbols on s390 was fixed with commit 80ddf5ce1c92 ("s390: always build relocatable kernel") for the kernel image, but did not take into account that the decompressor uses its own set of CFLAGS, which come without -fPIE. Add the -fPIE flag also to the decompresser CFLAGS to fix this. Reported-by: Nathan Chancellor Suggested-by: Ulrich Weigand Link: https://github.com/ClangBuiltLinux/linux/issues/1747 Signed-off-by: Heiko Carstens --- arch/s390/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/Makefile b/arch/s390/Makefile index ed646c583e4f..5ed242897b0d 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile @@ -27,6 +27,7 @@ KBUILD_CFLAGS_DECOMPRESSOR += -fno-delete-null-pointer-checks -msoft-float -mbac KBUILD_CFLAGS_DECOMPRESSOR += -fno-asynchronous-unwind-tables KBUILD_CFLAGS_DECOMPRESSOR += -ffreestanding KBUILD_CFLAGS_DECOMPRESSOR += -fno-stack-protector +KBUILD_CFLAGS_DECOMPRESSOR += -fPIE KBUILD_CFLAGS_DECOMPRESSOR += $(call cc-disable-warning, address-of-packed-member) KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO),-g) KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO_DWARF4), $(call cc-option, -gdwarf-4,)) -- 2.39.2