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>
This commit is contained in:
H. Peter Anvin 2017-03-07 22:53:48 -08:00
parent 8e1cb8e594
commit b786f66c2e
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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