How to create alias for function name

Fangrui Song i@maskray.me
Tue Mar 30 01:25:59 GMT 2021


On 2021-03-28, Jeffrey Walton via Binutils wrote:
>Hi Everyone,
>
>I have a global function:
>
>    .globl _mpih_mul
>
>I need to create an alias to that name called _my_mpih_mul so the
>function can be called through the new name _my_mpih_mul.
>
>The AS manual is at https://sourceware.org/binutils/docs-2.19/as, but
>I don't see how to alias _my_mpih_mul to _mpih_mul.
>
>How do I create the alias name for the function?
>
>If it matters, I am working on Aarch64.
>
>Thanks in advance.

.globl _my_mpih_mul
.set _my_mpih_mul, _mpih_mul

or

.globl _my_mpih_mul
_my_mpih_mul = _mpih_mul


Note, .set / = does not set the binding.


More information about the Binutils mailing list