This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] [safestack] Enable for aarch64
ClosedPublic

Authored by zatrazz on Dec 3 2015, 1:41 PM.

Details

Summary

This patch enables the safestack for aarch64. The frontend already have
it enabled on all supported architectures and no adjustment is required
in llvm.

The compiler-rt adjustments are basically add on the cmake configuration
to enable the tests and fix the pagesize debug check by getting its
value at runtime (since aarch64 has multiple pagesize depending of
kernel configuration).

All tests pass on aarch64-linux.

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 41798.Dec 3 2015, 1:41 PM
zatrazz retitled this revision from to [compiler-rt] [safestack] Enable for aarch64.
zatrazz updated this object.
zatrazz added reviewers: rengolin, samsonov, eugenis, pcc, dvyukov.
zatrazz added a subscriber: llvm-commits.
eugenis accepted this revision.Dec 10 2015, 12:02 PM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 10 2015, 12:02 PM
zatrazz closed this revision.Dec 14 2015, 5:36 AM

I also pushed a patch (r255491) to disable the overflow.c check on AArch64 (the buildbot accuses an error which I can't currently reproduce in my environments).