diff options
| author | Andreas Tobler <andreast@FreeBSD.org> | 2012-09-08 20:00:31 +0000 |
|---|---|---|
| committer | Andreas Tobler <andreast@FreeBSD.org> | 2012-09-08 20:00:31 +0000 |
| commit | 85fdca2d85c3a7316c53798ad30042b7d2b40789 (patch) | |
| tree | fef81ab1c5f331ef7e4e767b5c33602c870da2db /sys/boot | |
| parent | 36f7fbeae8a83fb82b2c3c59a85bd839ba7473fd (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/common/load_elf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c index 019307e4402c..e1e6de74b163 100644 --- a/sys/boot/common/load_elf.c +++ b/sys/boot/common/load_elf.c @@ -588,7 +588,7 @@ fake_modname(const char *name) return fp; } -#if defined(__i386__) && __ELF_WORD_SIZE == 64 +#if (defined(__i386__) || defined(__powerpc__)) && __ELF_WORD_SIZE == 64 struct mod_metadata64 { int md_version; /* structure version MDTV_* */ int md_type; /* type of entry MDT_* */ @@ -601,7 +601,7 @@ int __elfN(parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef) { struct mod_metadata md; -#if defined(__i386__) && __ELF_WORD_SIZE == 64 +#if (defined(__i386__) || defined(__powerpc__)) && __ELF_WORD_SIZE == 64 struct mod_metadata64 md64; #endif struct mod_depend *mdepend; @@ -626,7 +626,7 @@ __elfN(parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef) v += ef->off; else if (error != 0) return (error); -#if defined(__i386__) && __ELF_WORD_SIZE == 64 +#if (defined(__i386__) || defined(__powerpc__)) && __ELF_WORD_SIZE == 64 COPYOUT(v, &md64, sizeof(md64)); error = __elfN(reloc_ptr)(fp, ef, v, &md64, sizeof(md64)); if (error == EOPNOTSUPP) { |
