forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First work on aarch64-pc-windows-gnu
- Loading branch information
1 parent
f7934f6
commit 07e12c9
Showing
10 changed files
with
171 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"abi-return-struct-as-int": true, | ||
"allows-weak-linkage": false, | ||
"arch": "aarch64", | ||
"crt-objects-fallback": "mingw", | ||
"data-layout": "e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128", | ||
"dll-prefix": "", | ||
"dll-suffix": ".dll", | ||
"dynamic-linking": true, | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"env": "gnu", | ||
"exe-suffix": ".exe", | ||
"executables": true, | ||
"is-builtin": false, | ||
"is-like-windows": true, | ||
"late-link-args-dynamic": { | ||
"gcc": [ | ||
"-l:libunwind.dll.a" | ||
], | ||
"ld.lld": [ | ||
"-l:libunwind.dll.a" | ||
] | ||
}, | ||
"late-link-args-static": { | ||
"gcc": [ | ||
"-l:libunwind.a" | ||
], | ||
"ld.lld": [ | ||
"-l:libunwind.a" | ||
] | ||
}, | ||
"linker": "aarch64-w64-mingw32-clang", | ||
"llvm-target": "aarch64-pc-windows-gnu", | ||
"max-atomic-width": 64, | ||
"no-default-libraries": false, | ||
"os": "windows", | ||
"post-link-objects": { | ||
"dynamic-dylib": [ | ||
"rsend.o" | ||
], | ||
"dynamic-nopic-exe": [ | ||
"rsend.o" | ||
], | ||
"dynamic-pic-exe": [ | ||
"rsend.o" | ||
], | ||
"static-dylib": [ | ||
"rsend.o" | ||
], | ||
"static-nopic-exe": [ | ||
"rsend.o" | ||
], | ||
"static-pic-exe": [ | ||
"rsend.o" | ||
] | ||
}, | ||
"post-link-objects-fallback": { | ||
"dynamic-dylib": [ | ||
"rsend.o" | ||
], | ||
"dynamic-nopic-exe": [ | ||
"rsend.o" | ||
], | ||
"dynamic-pic-exe": [ | ||
"rsend.o" | ||
], | ||
"static-dylib": [ | ||
"rsend.o" | ||
], | ||
"static-nopic-exe": [ | ||
"rsend.o" | ||
], | ||
"static-pic-exe": [ | ||
"rsend.o" | ||
] | ||
}, | ||
"pre-link-args": { | ||
"gcc": [ | ||
"-fno-use-linker-plugin", | ||
"-Wl,--dynamicbase", | ||
"-Wl,--disable-auto-image-base" | ||
] | ||
}, | ||
"pre-link-objects": { | ||
"dynamic-dylib": [ | ||
"rsbegin.o" | ||
], | ||
"dynamic-nopic-exe": [ | ||
"rsbegin.o" | ||
], | ||
"dynamic-pic-exe": [ | ||
"rsbegin.o" | ||
], | ||
"static-dylib": [ | ||
"rsbegin.o" | ||
], | ||
"static-nopic-exe": [ | ||
"rsbegin.o" | ||
], | ||
"static-pic-exe": [ | ||
"rsbegin.o" | ||
] | ||
}, | ||
"pre-link-objects-fallback": { | ||
"dynamic-dylib": [ | ||
"dllcrt2.o", | ||
"rsbegin.o" | ||
], | ||
"dynamic-nopic-exe": [ | ||
"crt2.o", | ||
"rsbegin.o" | ||
], | ||
"dynamic-pic-exe": [ | ||
"crt2.o", | ||
"rsbegin.o" | ||
], | ||
"static-dylib": [ | ||
"dllcrt2.o", | ||
"rsbegin.o" | ||
], | ||
"static-nopic-exe": [ | ||
"crt2.o", | ||
"rsbegin.o" | ||
], | ||
"static-pic-exe": [ | ||
"crt2.o", | ||
"rsbegin.o" | ||
] | ||
}, | ||
"requires-uwtable": true, | ||
"target-family": [ | ||
"windows" | ||
], | ||
"target-pointer-width": "64", | ||
"vendor": "pc" | ||
} |
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,18 @@ | ||
use crate::spec::{LinkerFlavor, Target}; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::windows_gnu_base::opts(); | ||
let gcc_pre_link_args = base.pre_link_args.entry(LinkerFlavor::Gcc).or_default(); | ||
gcc_pre_link_args.push("-march=armv8-a".to_string()); | ||
base.max_atomic_width = Some(64); | ||
base.linker = Some("aarch64-w64-mingw32-clang".to_string()); | ||
|
||
Target { | ||
llvm_target: "aarch64-pc-windows-gnu".to_string(), | ||
pointer_width: 64, | ||
data_layout: "e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128" | ||
.to_string(), | ||
arch: "aarch64".to_string(), | ||
options: base, | ||
} | ||
} |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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