Hi, I would like to use SafeStack sanitize option on ARM platform. Since Linux libc does not implement such functionality (in opposite to FreeBSD or Android), I need to use SafeStack compiler RT library. Unfortunately I've noticed that libclang_rt.safestack is not compiled/built for ARM platform. Looking into cmake file: "set(ALL_SAFESTACK_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM64} ${MIPS32}" ARM32 is not there. My question is why? Is it due to some memory consumption reasons? BTW. If I add ARM32 there, libclang_rt.safestack is built for ARM without problems. Then I can compile some application and run it on the ARM platform, also without any issues (at least with simple apps). Regards, Michal -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170201/7669e544/attachment.html>
On 1 February 2017 at 16:17, via llvm-dev <llvm-dev at lists.llvm.org> wrote:> ARM32 is not there. My question is why? Is it due to some memory consumption > reasons?AFAIK there was no interest, until now. :)> BTW. If I add ARM32 there, libclang_rt.safestack is built for ARM without > problems. Then I can compile some application and run it on the ARM > platform, also without any issues (at least with simple apps).It's all still experimental so, If all the tests pass and are stable, I have no problems with it being turned on by default. cheers, --renato
Hi, Thanks for the feedback. Well, I tested it so far with only one application - nginx server and didn't find any issue on ARM platform. Probably not a final prove, but still some evidence that it is working. Regards, Michal -----Original Message----- From: Renato Golin [mailto:renato.golin at linaro.org] Sent: Wednesday, February 01, 2017 5:39 PM To: Kurek, Michal Cc: LLVM Dev Subject: Re: [llvm-dev] SafeStack on ARM platform On 1 February 2017 at 16:17, via llvm-dev <llvm-dev at lists.llvm.org> wrote:> ARM32 is not there. My question is why? Is it due to some memory > consumption reasons?AFAIK there was no interest, until now. :)> BTW. If I add ARM32 there, libclang_rt.safestack is built for ARM > without problems. Then I can compile some application and run it on > the ARM platform, also without any issues (at least with simple apps).It's all still experimental so, If all the tests pass and are stable, I have no problems with it being turned on by default. cheers, --renato