[ipxe-devel] [ipxe/ipxe] [build] Fix asm argument modifiers for aarch64 build (#81)

John Jolly notifications at github.com
Mon Oct 15 02:34:58 UTC 2018

When building bin-arm64-efi/snp.efi using the gcc8 compiler, the following error occurs:

    In file included from core/xferbuf.c:28:
    core/xferbuf.c: In function 'xferbuf_malloc_realloc':
    include/errno.h:261:2: error: invalid 'asm': invalid address mode
      __asm__ ( ".section \".einfo\", \"\", " PROGBITS_OPS "\n\t" \
    include/errno.h:549:16: note: in expansion of macro '__einfo_error'
     #define ENOSPC __einfo_error ( EINFO_ENOSPC )
    core/xferbuf.c:192:11: note: in expansion of macro 'ENOSPC'
       return -ENOSPC;

The 'a' address mode is invalid for aarch64. Simply changing this to
the constant operand type 'c' seems to resolve the issue on aarch64 and
does not appear to affect x86_64 or i586.

Signed-off-by: John L. Jolly <jjolly at suse.com>
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * [build] Fix asm argument modifiers for aarch64 build

-- File Changes --

    M src/include/errno.h (4)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20181014/d3b87f4f/attachment.htm>

More information about the ipxe-devel mailing list