www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - android arm32 link error with thread local storage

reply test123 <test123 gmail.com> writes:
when use thread local storage for arm32 android with ubyte type.  
get this error:


```d
static ubyte TLS = ubyte.max;
```

```sh
incompatible section flags for .tdata
test.o:(.tdata._D4testTLSh): 0x3
output section .tdata: 0x403
```

this work for aarch64 or x86.
Sep 15 2022
parent test123 <test123 gmail.com> writes:
On Thursday, 15 September 2022 at 10:03:08 UTC, test123 wrote:
 when use thread local storage for arm32 android with ubyte 
 type.  get this error:


 ```d
 static ubyte TLS = ubyte.max;
 ```

 ```sh
 incompatible section flags for .tdata
 test.o:(.tdata._D4testTLSh): 0x3
 output section .tdata: 0x403
 ```

 this work for aarch64 or x86.
not sure why I can not duplicate this error anymore.
Sep 15 2022