mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-05 07:59:24 +02:00
disable array bounds checking for __tls_start
This commit is contained in:
parent
9865dbf921
commit
bf50bfdbbe
@ -433,7 +433,10 @@ void newlibSetup(void)
|
||||
tv->magic = THREADVARS_MAGIC;
|
||||
tv->thread_ptr = NULL;
|
||||
tv->reent = _impure_ptr;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
tv->tls_tp = __tls_start-2*sizeof(void*); // subtract size of Thread Control Block (TCB)
|
||||
#pragma GCC diagnostic pop
|
||||
tv->handle = envGetMainThreadHandle();
|
||||
|
||||
u32 tls_size = __tdata_lma_end - __tdata_lma;
|
||||
|
Loading…
Reference in New Issue
Block a user