Skip to content

Commit ecf271c

Browse files
committed
Use pushsection/popsection
1 parent 9facf0b commit ecf271c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/asm/x86_64/issue-96797.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ fn my_func() {}
1414
global_asm!("
1515
.globl call_foobar
1616
.type call_foobar,@function
17-
.section .text.call_foobar,\"ax\",@progbits
17+
.pushsection .text.call_foobar,\"ax\",@progbits
1818
call_foobar: jmp {}
1919
.size call_foobar, .-call_foobar
20-
.text
20+
.popsection
2121
", sym foobar);
2222

2323
fn foobar() {}

0 commit comments

Comments
 (0)