Fix "[compiler-rt] Allow 3 simultaneous interceptors on Linux"
authorMarco Elver <elver@google.com>
Fri, 9 Jun 2023 10:12:30 +0000 (12:12 +0200)
committerMarco Elver <elver@google.com>
Fri, 9 Jun 2023 10:14:45 +0000 (12:14 +0200)
commit85d3873a45f9977f868723a221ebcb35100cac22
tree444fe00d7f018cbdb0da173acf010240c8f9bf9a
parentb28614c4fce60168d0a37c3c56d4d8aff947d0cf
Fix "[compiler-rt] Allow 3 simultaneous interceptors on Linux"

Fix inline asm trampoline type. Some architectures will complain:

<inline asm>:8:41: error: expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>"
    8 | .type  __interceptor_trampoline_malloc, @function

Just use %function instead, which is what is also used in
sanitizer_asm.h
compiler-rt/lib/interception/interception.h