Skip to content

Conversation

thughes
Copy link
Contributor

@thughes thughes commented Oct 7, 2025

When building Zephyr with CONFIG_CPP_EXCEPTIONS=n and linking against a
libc++ built with support for exceptions, lld complains that the
eh_frame-related symbols are missing:

ld.lld: error: undefined symbol: __eh_frame_start
ld.lld: error: undefined symbol: __eh_frame_end
ld.lld: error: undefined symbol: __eh_frame_hdr_start
ld.lld: error: undefined symbol: __eh_frame_hdr_end

libunwind handles the zero size:

https://github.com/llvm/llvm-project/blob/76e71e05d2687f602695931b2fbf25e4e262dcc4/libunwind/src/AddressSpace.hpp#L520-L526
https://github.com/llvm/llvm-project/blob/76e71e05d2687f602695931b2fbf25e4e262dcc4/libunwind/src/EHHeaderParser.hpp#L61-L64

When building Zephyr with CONFIG_CPP_EXCEPTIONS=n and linking against a
libc++ built with support for exceptions, lld complains that the
eh_frame-related symbols are missing:

ld.lld: error: undefined symbol: __eh_frame_start
ld.lld: error: undefined symbol: __eh_frame_end
ld.lld: error: undefined symbol: __eh_frame_hdr_start
ld.lld: error: undefined symbol: __eh_frame_hdr_end

libunwind handles the zero size:

https://github.com/llvm/llvm-project/blob/76e71e05d2687f602695931b2fbf25e4e262dcc4/libunwind/src/AddressSpace.hpp#L520-L526
https://github.com/llvm/llvm-project/blob/76e71e05d2687f602695931b2fbf25e4e262dcc4/libunwind/src/EHHeaderParser.hpp#L61-L64

Signed-off-by: Tom Hughes <[email protected]>
Copy link

sonarqubecloud bot commented Oct 7, 2025

@thughes thughes marked this pull request as ready for review October 7, 2025 16:28
@zephyrbot zephyrbot requested a review from nashif October 7, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants