aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2020-01-02 15:38:17 +0000
committerIan Lepore <ian@FreeBSD.org>2020-01-02 15:38:17 +0000
commite0f07fadf643faa4751ba92b2160e532bcda92fa (patch)
treec53b3ff12fa5baf53306899f66b1227da1723265 /sys/arm
parent0eeb0d180e666cfd638824e73cc5c41eab53037c (diff)
Notes
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/elf_machdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arm/arm/elf_machdep.c b/sys/arm/arm/elf_machdep.c
index bc79724c4229..e7c1f3f5641c 100644
--- a/sys/arm/arm/elf_machdep.c
+++ b/sys/arm/arm/elf_machdep.c
@@ -52,6 +52,10 @@ __FBSDID("$FreeBSD$");
#include <machine/vfp.h>
#endif
+#include "opt_ddb.h" /* for OPT_DDB */
+#include "opt_global.h" /* for OPT_KDTRACE_HOOKS */
+#include "opt_stack.h" /* for OPT_STACK */
+
static boolean_t elf32_arm_abi_supported(struct image_params *);
u_long elf_hwcap;
@@ -311,11 +315,13 @@ elf_cpu_load_file(linker_file_t lf)
cpu_icache_sync_range((vm_offset_t)lf->address, (vm_size_t)lf->size);
#endif
+#if defined(DDB) || defined(KDTRACE_HOOKS) || defined(STACK)
/*
* Inform the stack(9) code of the new module, so it can acquire its
* per-module unwind data.
*/
unwind_module_loaded(lf);
+#endif
return (0);
}