All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/Kconfig: livepatch-build-tools requires debug information
@ 2024-11-07  8:49 Roger Pau Monne
  2024-11-07  9:21 ` Andrew Cooper
  0 siblings, 1 reply; 10+ messages in thread
From: Roger Pau Monne @ 2024-11-07  8:49 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Andrew Cooper, Jan Beulich, Julien Grall,
	Stefano Stabellini

The tools infrastructure used to build livepatches for Xen
(livepatch-build-tools) consumes some DWARF debug information present in
xen-syms to generate a livepatch (see livepatch-build script usage of readelf
-wi).

The current Kconfig defaults however will enable LIVEPATCH without DEBUG_INFO
on release builds, thus providing a default Kconfig selection that's not
suitable for livepatch-build-tools even when LIVEPATCH support is enabled,
because it's missing the DWARF debug section.

Fix by forcing the selection of DEBUG_INFO from LIVEPATCH.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
 xen/common/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 90268d92499a..f3135f85034d 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -420,6 +420,7 @@ config LIVEPATCH
 	default X86
 	depends on "$(XEN_HAS_BUILD_ID)" = "y"
 	select CC_SPLIT_SECTIONS
+	select DEBUG_INFO
 	help
 	  Allows a running Xen hypervisor to be dynamically patched using
 	  binary patches without rebooting. This is primarily used to binarily
-- 
2.46.0



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

end of thread, other threads:[~2024-11-07 13:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-07  8:49 [PATCH] xen/Kconfig: livepatch-build-tools requires debug information Roger Pau Monne
2024-11-07  9:21 ` Andrew Cooper
2024-11-07  9:40   ` Roger Pau Monné
2024-11-07  9:48     ` Jan Beulich
2024-11-07 11:25       ` Roger Pau Monné
2024-11-07 11:42         ` Jan Beulich
2024-11-07 11:30       ` Andrew Cooper
2024-11-07 11:57         ` Jan Beulich
2024-11-07 12:17           ` Andrew Cooper
2024-11-07 13:25             ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.