Rollup merge of #27019 - akiss77:pr-aarch64-morestack-section, r=alexcrichton
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).
This commit is contained in:
commit
b8a9c80166
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue