瀏覽代碼

[efi] Fix compiler warning in elf2efi.c

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 年之前
父節點
當前提交
8b0305e285
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/util/elf2efi.c

+ 4
- 0
src/util/elf2efi.c 查看文件

@@ -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…
取消
儲存