Skip to content

Conversation

@crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Aug 13, 2025

Fixes the following edk2 warning:

Loading driver at 0x0007CAD0000 EntryPoint=0x0007CAEE700 system76_firmware_setup-a61b9ece34b9c996.efi
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 7F62CC18
ProtectUefiImageCommon - 0x7F628AC0
  - 0x000000007CAD0000 - 0x0000000000085DA0
!!!!!!!!  Image Section Alignment(0x20) does not match Required Alignment (0x1000)  !!!!!!!!
ProtectUefiImage failed to create image properties record

@crawfxrd crawfxrd requested a review from jackpot51 August 13, 2025 04:00
@crawfxrd
Copy link
Member Author

It's probably better to just remove these and use the default.

$ objdump -p target/x86_64-unknown-uefi/release/system76_firmware_setup.efi | grep -i align
SectionAlignment	00001000
FileAlignment		00000200

Use default file (0x200) and section (0x1000) alignment.

Fixes the following edk2 warning:

    !!!!!!!!  Image Section Alignment(0x20) does not match Required Alignment (0x1000)  !!!!!!!!

Signed-off-by: Tim Crawford <tcrawford@system76.com>
@crawfxrd crawfxrd changed the title Use 4096 alignment Use default alignment Aug 13, 2025
@jackpot51 jackpot51 merged commit 8fe4605 into master Aug 13, 2025
1 check passed
@jackpot51 jackpot51 deleted the align branch August 13, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants