mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
Use pushsection/popsection
This commit is contained in:
parent
9facf0bf72
commit
ecf271cfb6
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user