Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: luobodi at hotmail dot com
CC: ian at airs dot com
Target Milestone: ---
Test code (I'm using GCC 11.1 with binutils 2.36):
```cpp
static thread_local int v
https://sourceware.org/bugzilla/show_bug.cgi?id=27897
--- Comment #1 from Luo Bo ---
> Further investigation suggests that gold is somehow confused by
> `_ZL6value1@tlsgd(%rip)` generated by GCC (for accessing `value`).
Oops, sorry, I meant "for accessing `value1`".
--
You are receiving this
https://sourceware.org/bugzilla/show_bug.cgi?id=27897
--- Comment #2 from Luo Bo ---
Besides, if `value1` is exported as a global symbol (e.g., via adding `.globl
_Zl6value1` to assembly produced by GCC), everything works fine.
So my guess is that the issue is somehow related to symbol visibilit