diff --git a/binfmt/libelf/libelf_load.c b/binfmt/libelf/libelf_load.c index 0b73aa5114..b9b51377ea 100644 --- a/binfmt/libelf/libelf_load.c +++ b/binfmt/libelf/libelf_load.c @@ -248,7 +248,7 @@ static inline int elf_loadfile(FAR struct elf_loadinfo_s *loadinfo) int elf_load(FAR struct elf_loadinfo_s *loadinfo) { size_t heapsize; -#ifdef CONFIG_CXX_EXCEPTION +#ifdef CONFIG_ELF_EXIDX_SECTNAME int exidx; #endif int ret;