Page MenuHomeFreeBSD

D56457.diff
No OneTemporary

D56457.diff

diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c
--- a/stand/common/load_elf.c
+++ b/stand/common/load_elf.c
@@ -1282,10 +1282,11 @@
int error;
/*
- * The kernel is already relocated, but we still want to apply
- * offset adjustments.
+ * On most platforms, the kernel is already relocated, but we still
+ * want to apply offset adjustments. For PowerPC, the kernel is
+ * ET_DYN rather than ET_EXEC and we still need to relocate here.
*/
- if (ef->kernel)
+ if (ef->kernel && ef->ehdr->e_type != ET_DYN)
return (EOPNOTSUPP);
for (n = 0; n < ef->relsz / sizeof(r); n++) {

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 20, 1:04 PM (6 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31688652
Default Alt Text
D56457.diff (609 B)

Event Timeline