NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/50277: rtld relocation bug with thread local storage



> On Sep 25, 2015, at 7:40 PM, tnn%netbsd.org@localhost wrote:
> 
>> Number:         50277
>> Category:       toolchain
>> Synopsis:       rtld relocation bug with thread local storage
>> Confidential:   no
>> Severity:       non-critical
>> Priority:       medium
>> Responsible:    toolchain-manager
>> State:          open
>> Class:          sw-bug
>> Submitter-Id:   net
>> Arrival-Date:   Sat Sep 26 02:40:00 +0000 2015
>> Originator:     Tobias Nygren
>> Release:        7.99.21
>> Organization:
>> Environment:
> x86_64
>> Description:
> 
> ======= shlib2.c =======
> 
> __thread int mysym __attribute__((tls_model("initial-exec"))) = 0;
> int* func2() { return &mysym; }
> 

I believe initial-exec is only valid for static programs, not one using shared libraries.


Home | Main Index | Thread Index | Old Index