-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARC MetaWare TLS support #29920
Comments
Hi @evgeniy-paltsev, This issue, marked as an Enhancement, was opened a while ago and did not get any traction. Please confirm the issue is correctly assigned and re-assign it otherwise. Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason. Thanks! |
Remove obsolete wrokaround with conditional turning off "-g" flag when Thread Local Starage 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 compilaton process. Fixes zephyrproject-rtos#29920 Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
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 zephyrproject-rtos#29920 Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
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 zephyrproject-rtos#29920 Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
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 #29920 Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
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 zephyrproject-rtos/zephyr#29920 (cherry picked from commit 2d75d7b) Original-Signed-off-by: Nikolay Agishev <agishev@synopsys.com> GitOrigin-RevId: 2d75d7b Change-Id: If21f7e6cca7cc0a6dbd698f1da6769245bbae5c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5648171 Commit-Queue: Dawid Niedźwiecki <dawidn@google.com> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Reviewed-by: Dawid Niedźwiecki <dawidn@google.com>
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 zephyrproject-rtos#29920 Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
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 zephyrproject-rtos#29920 Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
Is your enhancement proposal related to a problem? Please describe.
Support for Thread Local Storage (TLS, __thread) has been recently added for the Zephyr toolchain. A quick test reveals that enabling it for MetaWare leads to build errors.
Describe the solution you'd like
TLS support for MetaWare, like for Zephyr ARC GNU toolchain.
Additional context
Enabling "TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE" gives for tests/kernel/threads/tls:
lldac: error: errno.c:(.debug_info+0x16795): has non-ABS relocation R_ARC_SECTOFF against symbol 'z_errno_var'
lldac: error: main.c:(.debug_info+0x585): has non-ABS relocation R_ARC_SECTOFF against symbol 'thread_data01'
The text was updated successfully, but these errors were encountered: