[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix for relocatable PowerPC kernels
From: |
Anton Blanchard |
Subject: |
[PATCH] Fix for relocatable PowerPC kernels |
Date: |
Tue, 13 Jul 2010 15:45:23 +1000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
PowerPC Linux kernels can now be built relocatable so we need to check
for that in the loader.
Anton
--
2010-07-13 Anton Blanchard <address@hidden>
* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
ET_DYN files.
Index: grub/loader/powerpc/ieee1275/linux.c
===================================================================
--- grub.orig/loader/powerpc/ieee1275/linux.c 2010-07-11 12:05:16.443242734
+1000
+++ grub/loader/powerpc/ieee1275/linux.c 2010-07-12 14:56:20.301991065
+1000
@@ -220,7 +220,7 @@ grub_cmd_linux (grub_command_t cmd __att
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");
- [PATCH] Fix for relocatable PowerPC kernels,
Anton Blanchard <=