Skip to content

Commit 8b0305e

Browse files
committed
[efi] Fix compiler warning in elf2efi.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent d3d87a2 commit 8b0305e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/util/elf2efi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ static struct pe_section * process_section ( bfd *bfd,
405405
EFI_IMAGE_SCN_MEM_WRITE );
406406
applicable_start = &data_mid;
407407
applicable_end = &data_end;
408+
} else {
409+
eprintf ( "Unrecognised characteristics %#lx for section %s\n",
410+
flags, section->name );
411+
exit ( 1 );
408412
}
409413

410414
/* Copy in section contents */

0 commit comments

Comments
 (0)