ARCMWDT: Remove workaround with stripping DWARF info
Remove obsolete workaround with conditional turning off "-g" flag when Thread Local Storage used. Recent versions of MetaWare have no issue with linking files with TSL-related data. Moreover, pointed workaround breaks userspace for recently added ARC-V platforms, as they use both TLS and DWARF info while compilation process. Fixes https://github.com/zephyrproject-rtos/zephyr/issues/29920 Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
This commit is contained in:
parent
4a4d506510
commit
2d75d7b2d3
1 changed files with 2 additions and 8 deletions
|
@ -152,14 +152,8 @@ set_property(TARGET compiler-cpp PROPERTY no_rtti "-fno-rtti")
|
|||
# do not link in supplied run-time startup files
|
||||
set_compiler_property(PROPERTY freestanding -Hnocrt)
|
||||
|
||||
# Flag to enable debugging
|
||||
if(CONFIG_THREAD_LOCAL_STORAGE)
|
||||
# FIXME: Temporary workaround for ARC MWDT toolchain issue - LLDAC linker produce errors on
|
||||
# debugging information (if -g option specified) of thread-local variables.
|
||||
set_compiler_property(PROPERTY debug)
|
||||
else()
|
||||
set_compiler_property(PROPERTY debug -g)
|
||||
endif()
|
||||
# Flag to keep DWARF information (enable debug info)
|
||||
set_compiler_property(PROPERTY debug -g)
|
||||
|
||||
# compile common globals like normal definitions
|
||||
set_compiler_property(PROPERTY no_common -fno-common)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue