This patch enables sparc and mips in compiler-rt CRT, meaning that now every platform supported by compiler-rt builtins (that runs on Linux, i.e. not WebAssembly) will be suported by compiler-rt CRT
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/crt/crtbegin.c | ||
---|---|---|
78 | Apologies, I have removed it. |
Comment Actions
Hey I forgot to mention, can you merge this since I dont have commit access yet? Thanks.
Comment Actions
Have you tested it on mips machines? And how?
compiler-rt/lib/crt/crtbegin.c | ||
---|---|---|
76 | move __mips__ before for a relatively sorted order. |
Comment Actions
I don't have physical MIPS hardware, but I removed the definition of CRT_HAS_INITFINI_ARRAY in CMake (so the assembly version was used) and tested in a QEMU virtual machine. I made sure the __do_init and __do_fini functions were called by putting a puts call in them (cheap, I know)
Comment Actions
Update: I found a MIPS WiFi router (mipsel) cross compiled a binary for it, and I can confirm it works on real hardware.
move __mips__ before for a relatively sorted order.