Browse Source

[efi] Fix compiler warning in elf2efi.c

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
8b0305e285
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/util/elf2efi.c

+ 4
- 0
src/util/elf2efi.c View File

@@ -405,6 +405,10 @@ static struct pe_section * process_section ( bfd *bfd,
405 405
 			  EFI_IMAGE_SCN_MEM_WRITE );
406 406
 		applicable_start = &data_mid;
407 407
 		applicable_end = &data_end;
408
+	} else {
409
+		eprintf ( "Unrecognised characteristics %#lx for section %s\n",
410
+			  flags, section->name );
411
+		exit ( 1 );
408 412
 	}
409 413
 
410 414
 	/* Copy in section contents */

Loading…
Cancel
Save