summaryrefslogtreecommitdiffstats
path: root/src/include/errno.h
diff options
context:
space:
mode:
authorMichael Brown2016-03-13 12:09:01 +0100
committerMichael Brown2016-03-13 12:20:53 +0100
commit1f65ed53da16e383416ae034b585fd52682f5ea7 (patch)
tree3503be882258c7f371875fbb9dde567f72649fff /src/include/errno.h
parent[efi] Centralise architecture-independent EFI Makefile and linker script (diff)
downloadipxe-1f65ed53da16e383416ae034b585fd52682f5ea7.tar.gz
ipxe-1f65ed53da16e383416ae034b585fd52682f5ea7.tar.xz
ipxe-1f65ed53da16e383416ae034b585fd52682f5ea7.zip
[build] Allow assembler section type character to vary by architecture
On some architectures (such as ARM) the "@" character is used as a comment delimiter. A section type argument such as "@progbits" therefore becomes "%progbits". This is further complicated by the fact that the "%" character has special meaning for inline assembly when input or output operands are used, in which cases "@progbits" becomes "%%progbits". Allow the section type character(s) to be defined via Makefile variables. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/errno.h')
-rw-r--r--src/include/errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/errno.h b/src/include/errno.h
index 036479af..342384fa 100644
--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -258,7 +258,7 @@ static inline void eplatform_discard ( int dummy __unused, ... ) {}
* @ret error Error
*/
#define __einfo_error( einfo ) ( { \
- __asm__ ( ".section \".einfo\", \"\", @progbits\n\t" \
+ __asm__ ( ".section \".einfo\", \"\", " PROGBITS_OPS "\n\t" \
".align 8\n\t" \
"\n1:\n\t" \
".long ( 4f - 1b )\n\t" \