Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIX][Clang][K] Create
-K
Option for AIX.
`-K` is a linker option on AIX, that is used to align the header, text, data, and loader sections of the output file so that each section begins on a page boundary. This patch creates the `-K` option in clang. On non-AIX targets, the "unsupported option" error is thrown. Differential Revision: https://reviews.llvm.org/D146399
- Loading branch information
1 parent
d15491e
commit 5da7f30
Showing
4 changed files
with
38 additions
and
0 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Check powerpc64-unknown-linux-gnu. -K not supported. | ||
// RUN: %clang %s 2>&1 -### \ | ||
// RUN: --target=powerpc64-unknown-linux-gnu \ | ||
// RUN: --sysroot %S/Inputs/aix_ppc_tree \ | ||
// RUN: --unwindlib=libunwind \ | ||
// RUN: -K \ | ||
// RUN: | FileCheck --check-prefixes=CHECK-K-SUPPORT %s | ||
// CHECK-K-SUPPORT: clang: error: unsupported option '-K' for target 'powerpc64-unknown-linux-gnu' |