Message ID | 20210729152050.23635-3-mark.rutland@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=TA8D=MV=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 38521C4338F for <linux-arm-kernel@archiver.kernel.org>; Thu, 29 Jul 2021 15:28:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 046E760F12 for <linux-arm-kernel@archiver.kernel.org>; Thu, 29 Jul 2021 15:28:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 046E760F12 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FaMhTiWRH0bqIP+8CKiVpRrrJ4NZs6xJw161oMoEkPA=; b=OhGCousrK2Wv80 sB+Ka2/oeSemE7hlkTcnS3ARLh4pCw8HVg8jql+rKhhRY1ac4FDc9hhXsMdIGi40LyppXIkSej415 gmaJ5ZE72CVvb8yVqBuAO/ERRPqlQJwffk9/Er/qQ3NN4htZdmyNaBDA3r9YeBIxsn/RtLjFZnUvS /05s25HEREfK/vEgDCwYmAk+0ezHmGPMwcHwDnyRo786cdEOpsdP0omM7PU4T0ASfY4Fntop38BeO Cxk3LI+HyPKppfD4h6rGdAF3P/t0M4Mudqn+OY3dgCIkyG5njafSJ74m7SpFzsI1gtJKAXnw3aEd8 tLUCUgZ8O6IveoA3jDOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m97uo-004hlJ-TC; Thu, 29 Jul 2021 15:25:43 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m97qI-004gZQ-Bh for linux-arm-kernel@lists.infradead.org; Thu, 29 Jul 2021 15:21:08 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F3BA81063; Thu, 29 Jul 2021 08:20:58 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2A6C13F73D; Thu, 29 Jul 2021 08:20:58 -0700 (PDT) From: Mark Rutland <mark.rutland@arm.com> To: linux-arm-kernel@lists.infradead.org Cc: Andre.Przywara@arm.com, Jaxson.Han@arm.com, mark.rutland@arm.com, Wei.Chen@arm.com Subject: [boot-wrapper PATCH 02/12] Output text separately from data Date: Thu, 29 Jul 2021 16:20:40 +0100 Message-Id: <20210729152050.23635-3-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210729152050.23635-1-mark.rutland@arm.com> References: <20210729152050.23635-1-mark.rutland@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210729_082102_525647_5E299AA5 X-CRM114-Status: UNSURE ( 8.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Preparatory fixes and cleanup
|
expand
|
diff --git a/model.lds.S b/model.lds.S index 370ff56..d4e7e13 100644 --- a/model.lds.S +++ b/model.lds.S @@ -65,7 +65,8 @@ SECTIONS .boot PHYS_OFFSET: { *(.init) - *(.text* .data* .rodata* .bss* COMMON) + *(.text*) + *(.data* .rodata* .bss* COMMON) *(.vectors) *(.stack) PROVIDE(etext = .);
Assembly files generally assume that .text is word-aligned, and don't explciitly align the .text section. However, if we mix .text with data sections at link time, we can output .text sections at less than word alignment, resulting in boot-time hangs that are painful to debug. Output all .text sections before .data sections to minimize this risk. Signed-off-by: Mark Rutland <mark.rutland@arm.com> --- model.lds.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)