aboutsummaryrefslogtreecommitdiff
path: root/stand/common
diff options
context:
space:
mode:
Diffstat (limited to 'stand/common')
-rw-r--r--stand/common/bootstrap.h2
-rw-r--r--stand/common/load_elf.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/stand/common/bootstrap.h b/stand/common/bootstrap.h
index 09c4832f5855..ab1e5249fc2a 100644
--- a/stand/common/bootstrap.h
+++ b/stand/common/bootstrap.h
@@ -239,7 +239,7 @@ struct preloaded_file
size_t f_size; /* file size */
struct kernel_module *f_modules; /* list of modules if any */
struct preloaded_file *f_next; /* next file */
-#ifdef __amd64__
+#if defined(__amd64__) || defined(__i386__)
bool f_kernphys_relocatable;
#endif
#if defined(__i386__)
diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c
index 8877e5f8b7e0..eaa6bef6ee86 100644
--- a/stand/common/load_elf.c
+++ b/stand/common/load_elf.c
@@ -217,7 +217,7 @@ static int elf_section_header_convert(const Elf_Ehdr *ehdr, Elf_Shdr *shdr)
}
#endif
-#ifdef __amd64__
+#if defined(__amd64__) || defined(__i386__)
static bool
is_kernphys_relocatable(elf_file_t ef)
{
@@ -491,7 +491,7 @@ __elfN(loadfile_raw)(char *filename, uint64_t dest,
/* Load OK, return module pointer */
*result = (struct preloaded_file *)fp;
err = 0;
-#ifdef __amd64__
+#if defined(__amd64__) || defined(__i386__)
fp->f_kernphys_relocatable = multiboot || is_kernphys_relocatable(&ef);
#endif
#ifdef __i386__