From: ard.biesheuvel@linaro.org (Ard Biesheuvel)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 0/2] efi/arm64: add vmlinux link to PE/COFF debug table
Date: Wed, 19 Oct 2016 12:40:30 +0100 [thread overview]
Message-ID: <1476877232-24308-1-git-send-email-ard.biesheuvel@linaro.org> (raw)
Much like GNU debug links, PE/COFF binaries can carry the patch 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.
Ard Biesheuvel (2):
efi: libstub: preserve .debug sections after absolute relocation check
efi: arm64: 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 | 19 ++++++++---
4 files changed, 54 insertions(+), 6 deletions(-)
--
2.7.4
next reply other threads:[~2016-10-19 11:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 11:40 Ard Biesheuvel [this message]
2016-10-19 11:40 ` [RFC PATCH 1/2] efi: libstub: preserve .debug sections after absolute relocation check Ard Biesheuvel
2016-10-19 12:55 ` Cohen, Eugene
2016-10-19 11:40 ` [RFC PATCH 2/2] efi: arm64: add vmlinux debug link to the Image binary Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476877232-24308-1-git-send-email-ard.biesheuvel@linaro.org \
--to=ard.biesheuvel@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).