-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Thumb1] Do not allow Armv6-m XO and PI code
When generating armv6-m (Thumb1) Position Independent (PI) code there are currently some code sequences that are not compatible with eXecute-Only (XO) code. For example, this simple code sequence when compiler for XO & PI: extern int x; int fn() { return x; } is a problem as the address of x is currently loaded by: ldr r0, .L0 : : .L0: .long x which is not XO compiant as this involves reading the value at .L0 which is in the code section. Generating correct code is currently hindered by lack of suitable relocations. Disallow the generation of armv6-m PI code together with XO code until they can be made to work together. Differential Revision: https://reviews.llvm.org/D157620
- Loading branch information
Keith Walker
committed
Aug 22, 2023
1 parent
31a8f84
commit acc5db2
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters