John Jolly
2018-10-15 02:34:58 UTC
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 <***@suse.com>
You can view, comment on, or merge this pull request online at:
https://github.com/ipxe/ipxe/pull/81
-- Commit Summary --
* [build] Fix asm argument modifiers for aarch64 build
-- File Changes --
M src/include/errno.h (4)
-- Patch Links --
https://github.com/ipxe/ipxe/pull/81.patch
https://github.com/ipxe/ipxe/pull/81.diff
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 <***@suse.com>
You can view, comment on, or merge this pull request online at:
https://github.com/ipxe/ipxe/pull/81
-- Commit Summary --
* [build] Fix asm argument modifiers for aarch64 build
-- File Changes --
M src/include/errno.h (4)
-- Patch Links --
https://github.com/ipxe/ipxe/pull/81.patch
https://github.com/ipxe/ipxe/pull/81.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/81
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/81