]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
authorAnton Blanchard <anton@samba.org>
Wed, 14 Jul 2010 15:47:45 +0000 (16:47 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 14 Jul 2010 15:47:45 +0000 (16:47 +0100)
ET_DYN files.

ChangeLog
loader/powerpc/ieee1275/linux.c

index 99a177f664b2c8f076419b75e6ff686dfb89f6d9..835293aecb60eec00008a35e35ae88179d1b8698 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-14  Anton Blanchard  <anton@samba.org>
+
+       * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
+       ET_DYN files.
+
 2010-07-14  GrĂ©goire Sutre  <gregoire.sutre@gmail.com>
 
        * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
index 930c0cb41ec7621624f79cc520984d4df2b60db5..6b17a47adc500d1e9385ea377515f37f5d6026bf 100644 (file)
@@ -220,7 +220,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
   if (! elf)
     goto out;
 
-  if (elf->ehdr.ehdr32.e_type != ET_EXEC)
+  if (elf->ehdr.ehdr32.e_type != ET_EXEC && elf->ehdr.ehdr32.e_type != ET_DYN)
     {
       grub_error (GRUB_ERR_UNKNOWN_OS,
                  "this ELF file is not of the right type");