Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103822677
D36577.id110651.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
697 B
Referenced Files
None
Subscribers
None
D36577.id110651.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
@@ -98,6 +98,7 @@
uint64_t __elfN(relocation_offset) = 0;
+#ifdef __powerpc__
extern void elf_wrong_field_size(void);
#define CONVERT_FIELD(b, f, e) \
switch (sizeof((b)->f)) { \
@@ -203,7 +204,22 @@
}
#undef CONVERT_SWITCH
#undef CONVERT_FIELD
+#else
+static int elf_header_convert(Elf_Ehdr *ehdr)
+{
+ return (0);
+}
+
+static int elf_program_header_convert(const Elf_Ehdr *ehdr, Elf_Phdr *phdr)
+{
+ return (0);
+}
+static int elf_section_header_convert(const Elf_Ehdr *ehdr, Elf_Shdr *shdr)
+{
+ return (0);
+}
+#endif
#ifdef __amd64__
static bool
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 9:41 PM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14948489
Default Alt Text
D36577.id110651.diff (697 B)
Attached To
Mode
D36577: stand/elf: Only support swapping headers on powerpc.
Attached
Detach File
Event Timeline
Log In to Comment