os: Fix C++ exception support for relocatable ELF binaries#7186
Open
pcs1265 wants to merge 1 commit intoSamsung:masterfrom
Open
os: Fix C++ exception support for relocatable ELF binaries#7186pcs1265 wants to merge 1 commit intoSamsung:masterfrom
pcs1265 wants to merge 1 commit intoSamsung:masterfrom
Conversation
34ab397 to
31ff739
Compare
This commit fixes linker error while build procedure when CONFIG_ELF is enabled and add exception data section handling for ELF binary loader.
The linker error:
```
LD: tinyara
make[1]: Leaving directory '/root/tizenrt/os/arch/arm/src'
CP: tinyara.bin
Preparing final ../build/output/bin/app1 binary
Verify ../build/output/bin/common
Undefined Symbols in ../build/output/bin/common
U __exidx_end unwind-arm.c:0
U __exidx_start unwind-arm.c:0
w __gnu_Unwind_Find_exidx unwind-arm.c:0
make: *** [post] Error 1
Makefile.unix:542: recipe for target 'post' failed
```
The section required for exception data is relocated in "R_ARM_TARGET2" type, so added that type relocation support to ELF binary loader.
and `ARMV7M_TARGET2_PREL` config is not used correctly, removed it.
NOTE : As described in help message of LIBCXX_EXCEPTION can be used with docker version 2.0.0 or later.
31ff739 to
0f7c42e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit fixes linker error while build procedure when CONFIG_ELF is enabled and add exception data section handling for ELF binary loader.
The linker error:
The section required for exception data is relocated in "R_ARM_TARGET2" type, so added that type relocation support to ELF binary loader.
and
ARMV7M_TARGET2_PRELconfig is not used correctly, removed it.NOTE : As described in help message of LIBCXX_EXCEPTION can be used with docker version 2.0.0 or later.