Commit c3958697 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

Set proper ELF attributes for the ARM assembly functions



Fixes linking related fragility, which could result in crashes
when doing Thumb2->ARM function calls.
Reported-by: default avatarLuc Verhaegen <libv@skynet.be>
Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent acee1797
......@@ -41,6 +41,10 @@
.macro asm_function function_name
.global \function_name
#ifdef __ELF__
.hidden \function_name
.type \function_name, %function
#endif
.func \function_name
\function_name:
.endm
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment