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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 36D11C4361B for ; Tue, 15 Dec 2020 00:03:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 07FB82173E for ; Tue, 15 Dec 2020 00:03:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726618AbgLOAD1 (ORCPT ); Mon, 14 Dec 2020 19:03:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726472AbgLOADT (ORCPT ); Mon, 14 Dec 2020 19:03:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B654C06179C for ; Mon, 14 Dec 2020 16:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=bu4H45hAtfsZq1Tas/LunrKn8O0pX1xkwgMpn9D0ovc=; b=KHaOTBthXQqAX7PHcLzOxgYRg1 h0OTS8lUmLIUe+iBkCsoCtGuDQ52vF4nzYYX2VFhbAdYUnE2yT9G1xxncpNhljcUp6keVug4Th07I mwus84MD+zJ4pxBQfonKe5bnpKLlTtAPLcaczMuXJXoQ1VZVCIplji3qE4sJlxoWGn8pDJu66KP/2 thtDX6ajxK7nS9tBL+gfiZNA2dfcC2wb6mcmTGd7F3F6P6+bZkyumhBARql+Uh9UDomSiWMej2j23 i5AfwaJEjq24ymvnZwHXW9Tvrltq8ADXylQOGgcYMLoeYiKna6uJI8gjm1h1h5kwKp9jL4i1WQg7w Vj5ccHDA==; Received: from [2601:1c0:6280:3f0::1494] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1koxnY-0000UQ-Qx; Tue, 15 Dec 2020 00:02:37 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Subject: [PATCH -next] x86: vmlinux.lds.S: explain link error better when PHYSICAL_START is LARGE Date: Mon, 14 Dec 2020 16:02:32 -0800 Message-Id: <20201215000232.25594-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On i386, when CONFIG_PHYSICAL_START is very large, it causes a confusing or misleading linker error message: ld: kernel image bigger than KERNEL_IMAGE_SIZE so expand this message to include the possibility that the problem could be due to CONFIG_PHYSICAL_START. Signed-off-by: Randy Dunlap Cc: x86@kernel.org Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" --- arch/x86/kernel/vmlinux.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20201214.orig/arch/x86/kernel/vmlinux.lds.S +++ linux-next-20201214/arch/x86/kernel/vmlinux.lds.S @@ -458,7 +458,7 @@ SECTIONS * The ASSERT() sink to . is intentional, for binutils 2.14 compatibility: */ . = ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE), - "kernel image bigger than KERNEL_IMAGE_SIZE"); + "kernel image bigger than KERNEL_IMAGE_SIZE or CONFIG_PHYSICAL_START too large"); #ifdef CONFIG_X86_64 /*