mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-08 21:13:55 +00:00
Use pushsection/popsection
This commit is contained in:
parent
9facf0bf72
commit
ecf271cfb6
@ -14,10 +14,10 @@ fn my_func() {}
|
|||||||
global_asm!("
|
global_asm!("
|
||||||
.globl call_foobar
|
.globl call_foobar
|
||||||
.type call_foobar,@function
|
.type call_foobar,@function
|
||||||
.section .text.call_foobar,\"ax\",@progbits
|
.pushsection .text.call_foobar,\"ax\",@progbits
|
||||||
call_foobar: jmp {}
|
call_foobar: jmp {}
|
||||||
.size call_foobar, .-call_foobar
|
.size call_foobar, .-call_foobar
|
||||||
.text
|
.popsection
|
||||||
", sym foobar);
|
", sym foobar);
|
||||||
|
|
||||||
fn foobar() {}
|
fn foobar() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user