[PATCH master] ARM64: efi-header: declare the code section writable

Sascha Hauer s.hauer at pengutronix.de
Fri Aug 28 07:23:59 PDT 2026


On Tue, 25 Aug 2026 09:52:46 +0200, Ahmad Fatoum wrote:
> CONFIG_PBL_FULLY_PIC was initially introduced to make the enough of the
> early PBL position-independent, so it can execute until barebox is
> relocated to EFI allocated RWX memory.
> This was required because the EDK-II EFI firmware I tested against
> mapped the barebox code section read-only.
> 
> While W^X is desirable, the current setup is broken: We do not check at
> compile-time that there are no relocations, so compiler updates and code
> changes can make this regress. Also the memory barebox allocates for
> itself is RWX as we do not ask for other types of memory via NX_COMPAT.
> 
> [...]

Applied, thanks!

[1/1] ARM64: efi-header: declare the code section writable
      https://git.pengutronix.de/cgit/barebox/commit/?id=42e510a258d7 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list