This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

使用arm-linux-gnueabihf-as出现Error: bad instruction `endfunc'

我看了asm.S (ffmpeg中的文件),有如下代码:

.macro  function name, export=0, align=2

        .set            .Lpic_idx, 0

        .set            .Lpic_gp, 0

    .macro endfunc

      .if .Lpic_idx

        .align          2

        .altmacro

        put_pic         %(.Lpic_idx - 1)

        .noaltmacro

      .endif

ELF     .size   \name, . - \name

FUNC    .endfunc

        .purgem endfunc

    .endm

        .text

        .align          \align

    .if \export

        .global EXTERN_ASM\name

ELF     .type   EXTERN_ASM\name, %function

FUNC    .func   EXTERN_ASM\name

EXTERN_ASM\name:

    .else

ELF     .type   \name, %function

FUNC    .func   \name

\name:

    .endif

.endm

和原来的帖子  调用x264中arm汇编文件arm.S文件,编译报错   ,  没有真正的解决问题,请帮助我看看如何设置好?

Parents Reply Children
No data