arm: emit .type %function directive in FUNC_START macro
The linker needs to know whether a symbol is STT_FUNCTION when deciding which farcall stub to emit (if needed), this patch adds this to the FUNC_START macro which is used in crt0.
This commit is contained in:
parent
7e3c833592
commit
c2091f706c
|
@ -48,6 +48,7 @@
|
|||
.thumb
|
||||
.macro FUNC_START name
|
||||
.global \name
|
||||
.type \name, %function
|
||||
.thumb_func
|
||||
\name:
|
||||
.endm
|
||||
|
@ -55,6 +56,7 @@
|
|||
.code 32
|
||||
.macro FUNC_START name
|
||||
.global \name
|
||||
.type \name, %function
|
||||
\name:
|
||||
.endm
|
||||
#endif
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#ifdef PREFER_THUMB
|
||||
.macro FUNC_START name
|
||||
.global \name
|
||||
.type \name, %function
|
||||
.thumb_func
|
||||
\name:
|
||||
.endm
|
||||
|
@ -24,6 +25,7 @@
|
|||
#else
|
||||
.macro FUNC_START name
|
||||
.global \name
|
||||
.type \name, %function
|
||||
\name:
|
||||
.endm
|
||||
.code 32
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
.thumb
|
||||
.macro FUNC_START name
|
||||
.global \name
|
||||
.type \name, %function
|
||||
.thumb_func
|
||||
\name:
|
||||
.endm
|
||||
|
@ -55,6 +56,7 @@
|
|||
.code 32
|
||||
.macro FUNC_START name
|
||||
.global \name
|
||||
.type \name, %function
|
||||
\name:
|
||||
.endm
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue