* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject

ET_DYN files.
This commit is contained in:
Anton Blanchard 2010-07-14 16:47:45 +01:00 committed by Colin Watson
parent 18075f6254
commit 99be513c3b
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View 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");