[PATCH] D74537: [LLD][ELF][AArch64] Fix plt generation for PAC/BTI.
Daniel Kiss via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 13 02:30:49 PST 2020
danielkiss created this revision.
danielkiss added a reviewer: peter.smith.
Herald added subscribers: llvm-commits, MaskRay, kristof.beyls, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Generate PAC protected plt only when "-z pac-plt" is passed to the
linker. GNU toolchain generates when it is explicitly requested[1].
When pac-plt is requested then set the GNU_PROPERTY_AARCH64_FEATURE_1_PAC
note even when not all function compiled with PAC but issue a warning.
Harmonizing the warning style for BTI/PAC/IBT.
Generate BTI protected PLT if case of "-z force-bti".
[1] https://www.sourceware.org/ml/binutils/2019-03/msg00021.html
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74537
Files:
lld/ELF/Arch/AArch64.cpp
lld/ELF/Driver.cpp
lld/ELF/SyntheticSections.cpp
lld/test/ELF/aarch64-feature-bti.s
lld/test/ELF/aarch64-feature-btipac.s
lld/test/ELF/aarch64-feature-pac.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74537.244366.patch
Type: text/x-patch
Size: 14212 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200213/1dfd9567/attachment.bin>
More information about the llvm-commits
mailing list