From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02494C0650F for ; Mon, 5 Aug 2019 13:08:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD68B2075B for ; Mon, 5 Aug 2019 13:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010535; bh=H/teyfZI/2ZZtdVHbK7fbPvqO4vsqQMJRFbHUIEizaY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kg1SM8yFsNzGjEkG4iuY6rHRsLtmnr6YGmohyGWuDVGLX29ljoC4mRICDpm0TLAEZ AJJr7mceWYBe+Vxg1Mz0jxgET1D4ekUrE/E/hhj9k6y6u4DbAtfLbXfpIbgUbMOfYT +eXvCscv7EmMdFVRQDtq1GscHUplFMXNf9uR5t4Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729696AbfHENIy (ORCPT ); Mon, 5 Aug 2019 09:08:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:47078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730099AbfHENIv (ORCPT ); Mon, 5 Aug 2019 09:08:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E58A2087B; Mon, 5 Aug 2019 13:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010530; bh=H/teyfZI/2ZZtdVHbK7fbPvqO4vsqQMJRFbHUIEizaY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J3EW0Yymp5xR7rfK0c7gSfF9Qqeewtkl8RGfHzdbKA6GlKopjTa//f5Wi0n07m3xX GZxQ7mRFKCQrm/6BadA4SQZnlfAc30fEFJ0RPUYfqrJO+SVhrehn9CbqJQIJrEWGqn iTgQ48iNOAXm31atehbIu/miAZSLUBI+ua4wHKsk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sven Schnelle , Helge Deller Subject: [PATCH 4.14 41/53] parisc: Fix build of compressed kernel even with debug enabled Date: Mon, 5 Aug 2019 15:03:06 +0200 Message-Id: <20190805124932.593351063@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124927.973499541@linuxfoundation.org> References: <20190805124927.973499541@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Helge Deller commit 3fe6c873af2f2247544debdbe51ec29f690a2ccf upstream. With debug info enabled (CONFIG_DEBUG_INFO=y) the resulting vmlinux may get that huge that we need to increase the start addresss for the decompression text section otherwise one will face a linker error. Reported-by: Sven Schnelle Tested-by: Sven Schnelle Cc: stable@vger.kernel.org # v4.14+ Signed-off-by: Helge Deller Signed-off-by: Greg Kroah-Hartman --- arch/parisc/boot/compressed/vmlinux.lds.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/parisc/boot/compressed/vmlinux.lds.S +++ b/arch/parisc/boot/compressed/vmlinux.lds.S @@ -40,8 +40,8 @@ SECTIONS #endif _startcode_end = .; - /* bootloader code and data starts behind area of extracted kernel */ - . = (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START); + /* bootloader code and data starts at least behind area of extracted kernel */ + . = MAX(ABSOLUTE(.), (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START)); /* align on next page boundary */ . = ALIGN(4096);