How to create alias for function name

Jeffrey Walton noloader@gmail.com
Tue Mar 30 01:36:38 GMT 2021


On Mon, Mar 29, 2021 at 9:26 PM Fangrui Song <i@maskray.me> wrote:
>
> 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

Thanks Fangrui.

Microsoft is a little more intuitive (and easier to find):

  ALIAS <_my_mpih_mul> = <_mpih_mul>

Jeff


More information about the Binutils mailing list