[Picolibc] TLS bug in ARM build

Keith Packard keithp at keithp.com
Sun Mar 8 22:21:13 PDT 2020


Debian just got a new version of gcc for arm-none-eabi and I tried
building picolibc with it -- after fixing the test code,
the fcvtbuf test was hanging. I discovered that __aeabi_read_tp was
smashing registers (r3) that it wasn't supposed to. Oops. I ended up
fixing this by re-writing that function in assembly so that it only
modified r0 and lr.

Things work much better now.

If you were using picolibc with an ARM compiler built with TLS support
(which seems to be unusual), you'll want to get this fix.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://keithp.com/pipermail/picolibc/attachments/20200308/4d1de5f5/attachment.sig>


More information about the Picolibc mailing list