compiler-rt without red zone
Posted: Tue Oct 12, 2021 4:20 pm
Hello,
I am working on making my OS support Clang. I see no tutorial on how to build compiler-rt with -mno-red-zone, however.
I tried taking matters into my own hands by looking through compiler-rt's build system to figure out how to do this. I theory, this should be easy (just find a place where x86_64 specific C flags can be put and add -mno-red-zone), but compiler-rt's x86 appears to bundle x86_64 and i386, which probably would mess up the build
Any tips on this?
Thanks,
nexos
I am working on making my OS support Clang. I see no tutorial on how to build compiler-rt with -mno-red-zone, however.
I tried taking matters into my own hands by looking through compiler-rt's build system to figure out how to do this. I theory, this should be easy (just find a place where x86_64 specific C flags can be put and add -mno-red-zone), but compiler-rt's x86 appears to bundle x86_64 and i386, which probably would mess up the build
Any tips on this?
Thanks,
nexos