[lld] Add cet-report and bti-report flags
authorDaniel Kiss <daniel.kiss@arm.com>
Thu, 16 Dec 2021 15:18:08 +0000 (16:18 +0100)
committerDaniel Kiss <daniel.kiss@arm.com>
Thu, 16 Dec 2021 15:26:26 +0000 (16:26 +0100)
commit2b4e6052b3bfff7177d81a747e9f48b44da9eb1c
tree4413a7374bfc23d6ccc11b7a63b418653b0241d4
parentdd073e08aeb56b53c148f27226ce6564943bc86e
[lld] Add cet-report and bti-report flags

Implement cet-report as supported in binutils.
bti-report has the same behaviour for AArch64-BTI.

Fixes https://github.com/llvm/llvm-project/issues/44828

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D113901
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/docs/ld.lld.1
lld/test/ELF/aarch64-bti-pac-cli-error.s
lld/test/ELF/aarch64-feature-bti.s
lld/test/ELF/i386-feature-cet.s
lld/test/ELF/x86-64-feature-cet.s