]> git.lizzy.rs Git - rust.git/commitdiff
Fix section of __morestack for aarch64-unknown-linux-gnu
authorAkos Kiss <akiss@inf.u-szeged.hu>
Mon, 13 Jul 2015 18:06:04 +0000 (20:06 +0200)
committerAkos Kiss <akiss@inf.u-szeged.hu>
Mon, 13 Jul 2015 19:13:52 +0000 (21:13 +0200)
When building for AArch64/Linux, __morestack ends up in the .note.GNU-stack section,
which causes missing references for the linker. By using the func/endfunc macros
from macros.S we get __morestack right to .text (and a bit more on the side).

src/rt/arch/aarch64/morestack.S

index c5e412140e44a4dd54e6f504d51dac8c1087003f..8b7366ebed431e0bc16afe6a99f68a34126c2c67 100644 (file)
@@ -24,7 +24,7 @@
 #endif
 
 #if !defined(__APPLE__)
-.type MORESTACK,%function
+func MORESTACK
 #endif
 
 // FIXME(AARCH64): this might not be perfectly right but works for now
@@ -33,3 +33,7 @@ MORESTACK:
        bl STACK_EXHAUSTED
        // the above function ensures that it never returns
        .cfi_endproc
+
+#if !defined(__APPLE__)
+endfunc MORESTACK
+#endif