From patchwork Wed Jan 25 10:39:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 92426 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2145307qgi; Wed, 25 Jan 2017 02:39:34 -0800 (PST) X-Received: by 10.84.218.77 with SMTP id f13mr2565234plm.141.1485340774069; Wed, 25 Jan 2017 02:39:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si22998214pgd.73.2017.01.25.02.39.33; Wed, 25 Jan 2017 02:39:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751831AbdAYKjd (ORCPT + 2 others); Wed, 25 Jan 2017 05:39:33 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38503 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672AbdAYKjc (ORCPT ); Wed, 25 Jan 2017 05:39:32 -0500 Received: by mail-wm0-f50.google.com with SMTP id r144so23074448wme.1 for ; Wed, 25 Jan 2017 02:39:32 -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; bh=iH+C4vU8qnQPbRSvOXNGULes2hEp2RfaFQ/qOZdzos0=; b=Iccxf+RQ3rUt6bGV2y4TfqbV4nO241PpMKnxysa/ho+9SPSXnm1Yr1rhsazSduac0g JYd8KHBkpHqd0+5T9UxSdvAZS39YiVZuuv8Upx/pJleN4qgLjLoCHtlLI7p96VakpRAK hVRyCqhLxVzbAUMRSEkJn32F5fQkIBL+PMbyo= 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; bh=iH+C4vU8qnQPbRSvOXNGULes2hEp2RfaFQ/qOZdzos0=; b=UhfrI07qkFjYyeROjYwhK75Q/Ay7E+nr8H0fBzxbXL1zdRKXzIiPC0KxVGjYMb+wwT 9/aLQZGUvVc9oIeutdCtukJ5pL6Sql7MkO+vrGMYDMGQiMBvXFuWruVh8391yLm0SD78 okZlCssMK5h2DX/ju7ujiy8VOhCQLqdtKLGYBy0TNICxYJnL+iNMEwwNCyiDtlt0/DdH yE62svARhqPgAxUk6mDsAjJXRsLPGjK2t1tyhlBKdG7lSIBhSCgXthGuaoYa5p7Q1v/X q4hrvPIXBpMa9PZomYYa0Xn1+Lt8vXSwD4FD1FP6F/dipYC3e09OMityxTY2qcdPgj6I KmfQ== X-Gm-Message-State: AIkVDXKtp0pgelBQCZHfJIf25KpOu7Wx5m+pizgQ9CgkgiCNYa5Is4xl1E2OlSsYEvVITsm2 X-Received: by 10.28.103.3 with SMTP id b3mr20661761wmc.99.1485340771339; Wed, 25 Jan 2017 02:39:31 -0800 (PST) Received: from localhost.localdomain ([160.163.215.165]) by smtp.gmail.com with ESMTPSA id o70sm5674153wrc.20.2017.01.25.02.39.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 02:39:30 -0800 (PST) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, catalin.marinas@arm.com, leif.lindholm@linaro.org, mark.rutland@arm.com, matt@codeblueprint.co.uk Cc: Ard Biesheuvel Subject: [PATCH v2 0/2] efi/arm64: add vmlinux link to PE/COFF debug table Date: Wed, 25 Jan 2017 10:39:17 +0000 Message-Id: <1485340759-28975-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org Much like GNU debug links, PE/COFF binaries can carry the path on the build host to the binary containing the debugging symbols. Since the kernel binary is loaded by UEFI at an a priori unknown offset in the 1:1 mapping of physical memory, having this information is useful for the debugger automation to find the file and the offset, and load the symbols automatically. So if we have debugging symbols to begin with (CONFIG_DEBUG_INFO=y), add the absolute path to vmlinux to the PE/COFF debug table. v2: rebase onto v4.10-rc use strip rather than objcopy for first pass (#1) move debug table inside #ifdef CONFIG_EFI region in head.S (#2) Ard Biesheuvel (2): efi: libstub: Preserve .debug sections after absolute relocation check arm64: efi: add vmlinux debug link to the Image binary arch/arm64/kernel/Makefile | 4 +++ arch/arm64/kernel/head.S | 34 +++++++++++++++++++- arch/arm64/kernel/image.h | 3 ++ drivers/firmware/efi/libstub/Makefile | 24 +++++++++----- 4 files changed, 56 insertions(+), 9 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html