mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
libelf: Parse .ARM.exidx only for ARM architecture
since other arch has the different unwind approach Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Icefa0d4bc31bff967372949216d337770cd7e768
This commit is contained in:
committed by
David Sidrane
parent
9dff16e0e4
commit
fbfd9d62da
@@ -42,7 +42,7 @@ config ELF_DUMPBUFFER
|
|||||||
config ELF_EXIDX_SECTNAME
|
config ELF_EXIDX_SECTNAME
|
||||||
string "ELF Section Name for Exception Index"
|
string "ELF Section Name for Exception Index"
|
||||||
default ".ARM.exidx"
|
default ".ARM.exidx"
|
||||||
depends on CXX_EXCEPTION
|
depends on CXX_EXCEPTION && ARCH_ARM
|
||||||
---help---
|
---help---
|
||||||
Set the name string for the exception index section on the ELF modules to
|
Set the name string for the exception index section on the ELF modules to
|
||||||
be loaded by the ELF binary loader.
|
be loaded by the ELF binary loader.
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CXX_EXCEPTION
|
#ifdef CONFIG_ELF_EXIDX_SECTNAME
|
||||||
exidx = elf_findsection(loadinfo, CONFIG_ELF_EXIDX_SECTNAME);
|
exidx = elf_findsection(loadinfo, CONFIG_ELF_EXIDX_SECTNAME);
|
||||||
if (exidx < 0)
|
if (exidx < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user