Add -ftls-model=local-exec to embedded builds #3149
No reviewers
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk!3149
Loading…
Reference in a new issue
No description provided.
Delete branch "local-exec"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fixes #3112
@ -0,0 +1,29 @@/**Trying to parse the LLM babble: this seems to insinuate you still get a GOT indirection for TLS in a different TU. I thought the whole point of forcing this TLS model was to not do that, and always emit
tp-relative accesses.@ -56,2 +56,4 @@)# :tls_local_exec configure local-exec tls model during compilation, so it doesn't use GOT indirectioncc_args(It looks like this has been inserted in the wrong place? Line 58 (before this insertion) describes the
:no_canonical_system_headersand:no_canonical_prefixessettings, and line 72 (after this insertion) is adding theno_canonical_system_headerssetting and line 78 is adding theno_canonical_prefixessetting.What does "embedded builds" mean in this context?
@ -0,0 +1,29 @@/**it did mention the fact that this only happens with the old tls-model ... but it is something worth testing works anyway - i have modified the comment
@ -56,2 +56,4 @@)# :tls_local_exec configure local-exec tls model during compilation, so it doesn't use GOT indirectioncc_args(yup i have moved it up
I would guess non-
hostbuilds, akaPICO_ON_DEVICE=1@ -0,0 +1,29 @@/**Thanks, the one you wrote is much better.
@ -26,2 +28,4 @@for (int i=0;i<COUNT;i++) {counter += delta;// the same thing again, but on a thread local this TU only has a declaration forextern_bump(delta);Was this supposed to be
(Or if not, should
extern_bumpbe declared as returningvoidinstead ofint?)@ -26,2 +28,4 @@for (int i=0;i<COUNT;i++) {counter += delta;// the same thing again, but on a thread local this TU only has a declaration forextern_bump(delta);the test is fine - could return void but i don't care enough ;-)