Re: [PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-14 Thread Mark Kettenis
> From: Ilias Apalodimas > Date: Fri, 14 Feb 2025 15:46:45 +0200 > > For EFI runtime services, we manage to preserve string literals > by placing the .efi_runtime section just before .data and preserving > it when marking the runtime memory by marking surrounding boottime > code as runtime. This

Re: [PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-14 Thread Ilias Apalodimas
Apologies to both for the noise, I forgot to mark this as v2 and add a changelog On Fri, 14 Feb 2025 at 15:46, Ilias Apalodimas wrote: > > For EFI runtime services, we manage to preserve string literals > by placing the .efi_runtime section just before .data and preserving > it when marking

[PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-14 Thread Ilias Apalodimas
For EFI runtime services, we manage to preserve string literals by placing the .efi_runtime section just before .data and preserving it when marking the runtime memory by marking surrounding boottime code as runtime. This is ok for now but will break if we update any linker scripts and decouple .te

Re: [PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-11 Thread Ilias Apalodimas
On Tue, 11 Feb 2025 at 11:01, Mark Kettenis wrote: > > > From: Ilias Apalodimas > > Date: Tue, 11 Feb 2025 10:50:01 + > > > > Hi Mark, > > > > On Tue, 11 Feb 2025 at 10:17, Mark Kettenis wrote: > > > > > > > From: Ilias Apalodimas > > > > > > > > On EFI runtime services, we manage to preser

Re: [PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-11 Thread Ilias Apalodimas
Hi Mark, On Tue, 11 Feb 2025 at 10:17, Mark Kettenis wrote: > > > From: Ilias Apalodimas > > > > On EFI runtime services, we manage to preserve string literals > > by placing the .efi_runtime section just before .data and preserving > > it when fixing up the runtime memory by marking surrounding

Re: [PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-11 Thread Mark Kettenis
> From: Ilias Apalodimas > Date: Tue, 11 Feb 2025 10:50:01 + > > Hi Mark, > > On Tue, 11 Feb 2025 at 10:17, Mark Kettenis wrote: > > > > > From: Ilias Apalodimas > > > > > > On EFI runtime services, we manage to preserve string literals > > > by placing the .efi_runtime section just before

Re: [PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-11 Thread Heinrich Schuchardt
On 11.02.25 10:49, Ilias Apalodimas wrote: On EFI runtime services, we manage to preserve string literals by placing the .efi_runtime section just before .data and preserving it when fixing up the runtime memory by marking surrounding boottime code as runtime. This is ok for now but will break if

Re: [PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-11 Thread Mark Kettenis
> From: Ilias Apalodimas > > On EFI runtime services, we manage to preserve string literals > by placing the .efi_runtime section just before .data and preserving > it when fixing up the runtime memory by marking surrounding boottime > code as runtime. This is ok for now but will break if we upda

[PATCH] efi_loader: remove comparisons to string literals from runtime

2025-02-11 Thread Ilias Apalodimas
On EFI runtime services, we manage to preserve string literals by placing the .efi_runtime section just before .data and preserving it when fixing up the runtime memory by marking surrounding boottime code as runtime. This is ok for now but will break if we update any linker scripts and decouple .t