<p>When building bin-arm64-efi/snp.efi using the gcc8 compiler, the following error occurs:</p>
<pre><code>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;
           ^~~~~~
</code></pre>
<p>The 'a' address mode is invalid for aarch64. Simply changing this to<br>
the constant operand type 'c' seems to resolve the issue on aarch64 and<br>
does not appear to affect x86_64 or i586.</p>
<p>Signed-off-by: John L. Jolly <a href="mailto:jjolly@suse.com">jjolly@suse.com</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/ipxe/ipxe/pull/81'>https://github.com/ipxe/ipxe/pull/81</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>[build] Fix asm argument modifiers for aarch64 build</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/ipxe/ipxe/pull/81/files#diff-0">src/include/errno.h</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/ipxe/ipxe/pull/81.patch'>https://github.com/ipxe/ipxe/pull/81.patch</a></li>
  <li><a href='https://github.com/ipxe/ipxe/pull/81.diff'>https://github.com/ipxe/ipxe/pull/81.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ipxe/ipxe/pull/81">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AArTVDRCxVZt6_PBTBMTvJ31ctqwFfqKks5uk_RSgaJpZM4XbfMX">mute the thread</a>.<img src="https://github.com/notifications/beacon/AArTVNrT8M5TIrIUWOt-pyT7FVHy2EH6ks5uk_RSgaJpZM4XbfMX.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ipxe/ipxe","title":"ipxe/ipxe","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/ipxe/ipxe"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"[build] Fix asm argument modifiers for aarch64 build (#81)"}],"action":{"name":"View Pull Request","url":"https://github.com/ipxe/ipxe/pull/81"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ipxe/ipxe/pull/81",
"url": "https://github.com/ipxe/ipxe/pull/81",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "[build] Fix asm argument modifiers for aarch64 build (#81)",
"sections": [
{
"text": "",
"activityTitle": "**John Jolly**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@jjolly",
"facts": [

]
},
{
"title": "Commit Summary",
"facts": [
{
"name": "0d245e1",
"value": "[build] Fix asm argument modifiers for aarch64 build"
}
]
},
{
"title": "File Changes",
"facts": [
{
"name": "Modified",
"value": "[src/include/errno.h](https://github.com/ipxe/ipxe/pull/81/files#diff-0) (4 changes)"
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"ipxe/ipxe\",\n\"issueId\": 81,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"ipxe/ipxe\",\n\"pullRequestId\": 81\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/ipxe/ipxe/pull/81"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/ipxe/ipxe/pull/81.patch"
}
],
"@type": "OpenUri",
"name": "View patch"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/ipxe/ipxe/pull/81.diff"
}
],
"@type": "OpenUri",
"name": "View diff"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 393081623\n}"
}
],
"themeColor": "26292E"
}
]</script>