linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] efi/arm64: add vmlinux link to PE/COFF debug table
@ 2016-10-19 11:40 Ard Biesheuvel
  2016-10-19 11:40 ` [RFC PATCH 1/2] efi: libstub: preserve .debug sections after absolute relocation check Ard Biesheuvel
  2016-10-19 11:40 ` [RFC PATCH 2/2] efi: arm64: add vmlinux debug link to the Image binary Ard Biesheuvel
  0 siblings, 2 replies; 4+ messages in thread
From: Ard Biesheuvel @ 2016-10-19 11:40 UTC (permalink / raw)
  To: linux-efi, linux-arm-kernel
  Cc: mark.rutland, matt, Ard Biesheuvel, leif.lindholm, eugene

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-19 12:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-19 11:40 [RFC PATCH 0/2] efi/arm64: add vmlinux link to PE/COFF debug table Ard Biesheuvel
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

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).