Skip to content

Commit

Permalink
Use pushsection/popsection
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 6, 2023
1 parent 9facf0b commit ecf271c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ui/asm/x86_64/issue-96797.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ fn my_func() {}
global_asm!("
.globl call_foobar
.type call_foobar,@function
.section .text.call_foobar,\"ax\",@progbits
.pushsection .text.call_foobar,\"ax\",@progbits
call_foobar: jmp {}
.size call_foobar, .-call_foobar
.text
.popsection
", sym foobar);

fn foobar() {}
Expand Down

0 comments on commit ecf271c

Please sign in to comment.