Skip to content

Commit 7cddec8

Browse files
committed
Mark global_asm! code with .att_syntax
global_asm! will soon change to use Intel syntax by default.
1 parent 8ab9fd8 commit 7cddec8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/probestack.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
// We only define stack probing for these architectures today.
5050
#![cfg(any(target_arch = "x86_64", target_arch = "x86"))]
5151

52+
// We need to add .att_syntax for bootstraping the new global_asm!
53+
#![allow(unknown_lints, bad_asm_style)]
54+
5255
extern "C" {
5356
pub fn __rust_probestack();
5457
}
@@ -63,6 +66,7 @@ macro_rules! define_rust_probestack {
6366
($body: expr) => {
6467
concat!(
6568
"
69+
.att_syntax
6670
.pushsection .text.__rust_probestack
6771
.globl __rust_probestack
6872
.type __rust_probestack, @function

0 commit comments

Comments
 (0)