Skip to content

Commit 72bad8f

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 72bad8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/probestack.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
#![cfg(not(feature = "no-asm"))]
4949
// We only define stack probing for these architectures today.
5050
#![cfg(any(target_arch = "x86_64", target_arch = "x86"))]
51+
// We need to add .att_syntax for bootstraping the new global_asm!
52+
#![allow(unknown_lints, bad_asm_style)]
5153

5254
extern "C" {
5355
pub fn __rust_probestack();
@@ -63,6 +65,7 @@ macro_rules! define_rust_probestack {
6365
($body: expr) => {
6466
concat!(
6567
"
68+
.att_syntax
6669
.pushsection .text.__rust_probestack
6770
.globl __rust_probestack
6871
.type __rust_probestack, @function

0 commit comments

Comments
 (0)