Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153159218
D56457.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
609 B
Referenced Files
None
Subscribers
None
D56457.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D56457: stand/common/load_elf: Do kernel module relocations for PPC
Attached
Detach File
Event Timeline
Log In to Comment