Hybrid bzImage and UEFI binaries (such as wimboot) may include 16-bit
sections such as .bss16 that do not need to consume an entry in the PE
section list. Treat any such sections as hidden.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
}
}
+ /* Treat 16-bit sections as hidden in hybrid binaries */
+ if ( opts->hybrid && ( strlen ( name ) > 2 ) &&
+ ( strcmp ( &name[ strlen ( name ) - 2 ], "16" ) == 0 ) ) {
+ new->hidden = 1;
+ }
+
/* Fill in section characteristics and update RVA limits */
if ( ( shdr->sh_type == SHT_PROGBITS ) &&
( shdr->sh_flags & SHF_WRITE ) ) {