On 07/11/2024 9:48 am, Jan Beulich wrote:
> On 07.11.2024 10:40, Roger Pau Monné wrote:
>> On Thu, Nov 07, 2024 at 09:21:26AM +0000, Andrew Cooper wrote:
>>> On 07/11/2024 8:49 am, Roger Pau Monne wrote:
>>>> 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é <[email protected]>
>>> Oops, yes.
>>>
>>> Reviewed-by: Andrew Cooper <[email protected]>
>>>
>>> Fixes tag ?
>> Was borderline on adding one, but wasn't sure since it's strictly
>> livepatch-build-tools that requires the DWARF data, but custom made
>> livepatches (like the examples in tests) do not require such
>> information.

Ok.  I guess it doesn't matter too much.

> At which point: Is "select" really appropriate then? Wouldn't it be more
> logical then to change DEBUG_INFO's default to take LIVEPATCH into account
> (still permitting people to turn debug info off if they know they won't
> need it)?

I am very disinterested in letting people who think they can do
livepatching without debug symbols shoot themselves in the foot like that.

It's only debugging symbols.   If people *really* think they know
better, they can strip them themselves.

~Andrew

Reply via email to