Set correct .type directive for asm functions.

This is required per binutil manual.
https://sourceware.org/binutils/docs/as/Type.html#Type

Otherwise, runtime SEGV_MAPERR if linked by GNU bfd linker.

BUG=b/20218337
R=wzhong@chromium.org

Review URL: https://webrtc-codereview.appspot.com/47059004

Patch from Wei Zhong <wzhong@chromium.org>.

Cr-Commit-Position: refs/heads/master@{#9106}
This commit is contained in:
Wei Zhong
2015-04-28 13:51:53 -07:00
committed by Andrew MacDonald
parent faa6d076b7
commit 80154f6b28

View File

@ -38,6 +38,9 @@ bl _\name
.hidden \name .hidden \name
.endm .endm
.macro DEFINE_FUNCTION name .macro DEFINE_FUNCTION name
#if defined(__linux__) && defined(__ELF__)
.type \name,%function
#endif
\name: \name:
.endm .endm
.macro CALL_FUNCTION name .macro CALL_FUNCTION name