From patchwork Mon Nov 5 19:43:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 10669085 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 45E0C15A6 for ; Mon, 5 Nov 2018 20:20:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2994029E7B for ; Mon, 5 Nov 2018 20:20:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 133AF29E8D; Mon, 5 Nov 2018 20:20:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BAF7E29E7B for ; Mon, 5 Nov 2018 20:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mCjDsnbwLY/pD2SM+PmipUTqh6BWw++HJWdyVHPDyeQ=; b=F0TxvfCDRHQwk3 mW2wq6cl4iEIJaN6lpBTseHxuALhAHfEecQiC2Q4l6aPY9iSmLMj/Zttx5JlOu8Wpf11UPNHYAUTK WauqPG/lmR+XEPj38/2wZ8YRXUaMuFTIcyXKSv+Ai6NYFKOA5NR9npcwHkf0sNY+AFILu1aLXq/JV 4qpZl1ZgL/BH+r7WBTJZrpRVHzpxlupEzv/ezlM5bg9wH3x5f5Nm1Q4RDnby4GHgH6LwYulqzfjIS W2MtXIhSoR03ohxEOL6N7LvOdyFeRAi2/mFsmwI7oI2GOBnELE16tX3k4drxdvxF3oNOd8WT7bIHD XMRa5unYD3JKZd9MGznQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJlMT-0005lQ-Aq; Mon, 05 Nov 2018 20:20:37 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJkmi-0008OE-M7 for linux-arm-kernel@lists.infradead.org; Mon, 05 Nov 2018 19:44:20 +0000 Received: by mail-wm1-x334.google.com with SMTP id f19-v6so7167084wmb.0 for ; Mon, 05 Nov 2018 11:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RN2jvzIrvBGxU50MJJdcXXT3e5uP2ehShyazxhemggE=; b=iX6nvRPPtaWdyHqbTyhvcXAC9Xjx/2nwQB3Aw78WAt0QOtPpmpElvQJzeiqzjQ/oe8 zF4AJADE2ZkUoZ1CRm3zrVecTLFzPof3gjBDH2nXYe3fxqBr/LN1qLexBJE7kg4ILu0h 9cVc5WKX7NZwdaEyBHurUE6WKe22CGAs25/VE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RN2jvzIrvBGxU50MJJdcXXT3e5uP2ehShyazxhemggE=; b=ns/Ny92ZXpwvULLg2Npn+YnytUjJl/Q/iI34+bqdqUH9z3tGM9TN7EkQinqmRGSD4y yznVxxHtnFMCKJvKFrjSCe2Gczz/WIvte9UIzRz8cRilvVFftpL2Sy8qDUybA323/eMa BfHuDfh85G7z6d/eBBtGQbkxCF4a50b62DhsdywwR/jHHni70rxyrxVXsoibvB7G1mgJ maEUrgjBxNq6JeHIc8zp/O9+LUCJ+8jV2gTV1C1txY33eg5mxcd7FcOF89U513TQy5hf fM8NEdm3BX2IycmKGrwwWpvKlQTDmINkB5MSHxSwlI2DE6sZDk0JT+lUidsTV3kZ+yJJ LS3w== X-Gm-Message-State: AGRZ1gKh2rtbo8/o5Cf1S7qyMc6Gb0Pzpv+9n+LOgC2Sevom3Y90naAm etmK723MyIRjOsgRm3fzkYBM5KzPvC4= X-Google-Smtp-Source: AJdET5fbgrtxHckfEeIMcRK2rlttYFnD20Dtta5984bbyhuSzp5xb1OP7w3j1J8iNocLPb9P4Bd38A== X-Received: by 2002:a1c:d78e:: with SMTP id o136-v6mr7355190wmg.124.1541447004758; Mon, 05 Nov 2018 11:43:24 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:3117:2b29:5ef7:a9e5]) by smtp.gmail.com with ESMTPSA id x197-v6sm45518322wme.15.2018.11.05.11.43.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 11:43:23 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/2] ARM: compressed: reorganize section layout and enable EFI debugging Date: Mon, 5 Nov 2018 20:43:19 +0100 Message-Id: <20181105194321.26657-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181105_114359_682639_EFC50C0D X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nicolas.pitre@linaro.org, linux@armlinux.org.uk, Ard Biesheuvel Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Tweak the output section layout of the decompressor so that the ELF and PE/COFF .text sections start at the same offset in the image. This is a prerequisite for enabling a EFI debug header that is highly useful when debugging the interactions of the EFI stub code with the firmware. v2: - drop changes to the .start and .text sections: those changes were based on a misinterpretation on my part of the documented behavior of ld.bfd when it comes to ordering input sections. Ard Biesheuvel (2): ARM: compressed: put zImage header and EFI header in dedicated section ARM: efi: add PE/COFF debug table to EFI header arch/arm/boot/compressed/Makefile | 4 ++ arch/arm/boot/compressed/efi-header.S | 47 ++++++++++++++++++++ arch/arm/boot/compressed/head.S | 4 +- arch/arm/boot/compressed/vmlinux.lds.S | 5 ++- 4 files changed, 58 insertions(+), 2 deletions(-)