diff options
author | Kay Sievers <kay@vrfy.org> | 2015-01-24 21:09:41 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-01-25 06:36:40 +0100 |
commit | d96381e90e5f1952ee6d7bf6e51daa2b344319af (patch) | |
tree | 39b4e934d6e02c398d8496b963c1ece67ab80e40 /src/efi/pefile.c | |
parent | 83c71c06efa3fea9b77c85322957f2ec80805904 (diff) |
stub: execute EFI image with an embedded kernel, initrd, cmdline sections
Locate the following embedded PE sections
.linux - bzImage
.inird - initrd cpio archive
.cmdline - kernel command line
and hand over control to the bzImage.
Diffstat (limited to 'src/efi/pefile.c')
-rw-r--r-- | src/efi/pefile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/efi/pefile.c b/src/efi/pefile.c index 6ac28da..5d750e0 100644 --- a/src/efi/pefile.c +++ b/src/efi/pefile.c @@ -11,8 +11,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * - * Copyright (C) 2012-2013 Kay Sievers <kay@vrfy.org> - * Copyright (C) 2012 Harald Hoyer <harald@redhat.com> + * Copyright (C) 2015 Kay Sievers <kay@vrfy.org> */ #include <efi.h> @@ -154,7 +153,6 @@ EFI_STATUS pefile_locate_sections(EFI_FILE *dir, CHAR16 *path, CHAR8 **sections, err = EFI_LOAD_ERROR; goto out; } - for (j = 0; sections[j]; j++) { if (strcmpa(sections[j], sect.Name) != 0) continue; |