Skip to content

Commit 8381cba

Browse files
committed
Add target_mcount option
1 parent 261a915 commit 8381cba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+127
-39
lines changed

src/librustc_target/spec/aarch64_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub fn target() -> TargetResult {
1717
linker_flavor: LinkerFlavor::Gcc,
1818
options: TargetOptions {
1919
abi_blacklist: super::arm_base::abi_blacklist(),
20+
target_mcount: "\01_mcount".to_string(),
2021
.. base
2122
},
2223
})

src/librustc_target/spec/aarch64_unknown_linux_musl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub fn target() -> TargetResult {
1717
linker_flavor: LinkerFlavor::Gcc,
1818
options: TargetOptions {
1919
abi_blacklist: super::arm_base::abi_blacklist(),
20+
target_mcount: "\01_mcount".to_string(),
2021
.. base
2122
},
2223
})

src/librustc_target/spec/aarch64_unknown_netbsd.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::spec::{LinkerFlavor, Target, TargetResult};
1+
use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
22

33
pub fn target() -> TargetResult {
44
let mut base = super::netbsd_base::opts();
@@ -16,6 +16,9 @@ pub fn target() -> TargetResult {
1616
target_env: String::new(),
1717
target_vendor: "unknown".to_string(),
1818
linker_flavor: LinkerFlavor::Gcc,
19-
options: base,
19+
options: TargetOptions {
20+
target_mcount: "__mcount".to_string(),
21+
.. base
22+
},
2023
})
2124
}

src/librustc_target/spec/arm_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> TargetResult {
1818
options: TargetOptions {
1919
features: "+strict-align,+v6".to_string(),
2020
abi_blacklist: super::arm_base::abi_blacklist(),
21+
target_mcount: "\01__gnu_mcount_nc".to_string(),
2122
.. base
2223
},
2324
})

src/librustc_target/spec/arm_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> TargetResult {
1818
options: TargetOptions {
1919
features: "+strict-align,+v6,+vfp2".to_string(),
2020
abi_blacklist: super::arm_base::abi_blacklist(),
21+
target_mcount: "\01__gnu_mcount_nc".to_string(),
2122
.. base
2223
}
2324
})

src/librustc_target/spec/arm_unknown_linux_musleabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn target() -> TargetResult {
2323
linker_flavor: LinkerFlavor::Gcc,
2424
options: TargetOptions {
2525
abi_blacklist: super::arm_base::abi_blacklist(),
26+
target_mcount: "\01mcount".to_string(),
2627
.. base
2728
},
2829
})

src/librustc_target/spec/arm_unknown_linux_musleabihf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn target() -> TargetResult {
2323
linker_flavor: LinkerFlavor::Gcc,
2424
options: TargetOptions {
2525
abi_blacklist: super::arm_base::abi_blacklist(),
26+
target_mcount: "\01mcount".to_string(),
2627
.. base
2728
},
2829
})

src/librustc_target/spec/armv4t_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> TargetResult {
1919
// Atomic operations provided by compiler-builtins
2020
max_atomic_width: Some(32),
2121
abi_blacklist: super::arm_base::abi_blacklist(),
22+
target_mcount: "\01__gnu_mcount_nc".to_string(),
2223
.. base
2324
}
2425
})

src/librustc_target/spec/armv5te_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> TargetResult {
1919
// Atomic operations provided by compiler-builtins
2020
max_atomic_width: Some(32),
2121
abi_blacklist: super::arm_base::abi_blacklist(),
22+
target_mcount: "\01__gnu_mcount_nc".to_string(),
2223
.. base
2324
}
2425
})

src/librustc_target/spec/armv5te_unknown_linux_musleabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub fn target() -> TargetResult {
2222
// Atomic operations provided by compiler-builtins
2323
max_atomic_width: Some(32),
2424
abi_blacklist: super::arm_base::abi_blacklist(),
25+
target_mcount: "\01mcount".to_string(),
2526
.. base
2627
}
2728
})

0 commit comments

Comments
 (0)