[AIX] Enable stackprotect feature
authorJinsong Ji <jji@us.ibm.com>
Fri, 28 May 2021 02:18:12 +0000 (02:18 +0000)
committerJinsong Ji <jji@us.ibm.com>
Fri, 28 May 2021 02:18:15 +0000 (02:18 +0000)
commitb2581196eb036bd1310afd39f440e348e0e1a580
treecc5225e195869cfb88bb547d0e2188fda256ec64
parentfc1d39849e8d57ec8cb2ce0e1581faa88ae72fbe
[AIX] Enable stackprotect feature

AIX use `__ssp_canary_word` instead of `__stack_chk_guard`.
This patch update the target hook to use correct symbol,
so that the basic stackprotect feature can work.

The traceback will be handled in follow up patch.

Reviewed By: #powerpc, shchenz

Differential Revision: https://reviews.llvm.org/D103100
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Transforms/IPO/Internalize.cpp
llvm/test/CodeGen/PowerPC/stack-guard-oob.ll
llvm/test/CodeGen/PowerPC/stack-protector.ll
llvm/test/Transforms/Internalize/stackguard.ll