From b786f66c2eb600f9d1e3e098c005d73226972594 Mon Sep 17 00:00:00 2001
From: "H. Peter Anvin" <hpa@linux.intel.com>
Date: Tue, 7 Mar 2017 22:53:48 -0800
Subject: [PATCH] output: output format macros should be case insensitive

Use %imacro instead of %macro for ELF "osabi" and Mach-O
"subsections_by_symbols".

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 output/outelf.mac   | 6 +++---
 output/outmacho.mac | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/output/outelf.mac b/output/outelf.mac
index d32520fa..6994d077 100644
--- a/output/outelf.mac
+++ b/output/outelf.mac
@@ -1,6 +1,6 @@
 ;; --------------------------------------------------------------------------
 ;;   
-;;   Copyright 1996-2009 The NASM Authors - All Rights Reserved
+;;   Copyright 1996-2017 The NASM Authors - All Rights Reserved
 ;;   See the file AUTHORS included with the NASM distribution for
 ;;   the specific copyright holders.
 ;;
@@ -36,6 +36,6 @@ OUT: elf elf32 elf64
 %macro __NASM_CDecl__ 1
 %define $_%1 $%1
 %endmacro
-%macro osabi 1+.nolist
-[osabi %1]
+%imacro osabi 1+.nolist
+[%? %1]
 %endmacro
diff --git a/output/outmacho.mac b/output/outmacho.mac
index 0f56e819..0677e2ee 100644
--- a/output/outmacho.mac
+++ b/output/outmacho.mac
@@ -37,6 +37,6 @@ OUT: macho macho32 macho64
 %endmacro
 
 ; This directive sets the MH_SUBSECTION_VIA_SYMBOLS header flag
-%macro subsection_via_symbols 0
+%imacro subsection_via_symbols 0
 [%?]
 %endmacro