summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-03-07 22:53:48 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2017-03-07 22:53:48 -0800
commitb786f66c2eb600f9d1e3e098c005d73226972594 (patch)
tree5fd6aff3dd1a4c15666a8c39172d9d24fd56b346
parent8e1cb8e594d5e9a863e6fe5f5fe0addf55c640a2 (diff)
downloadnasm-b786f66c2eb600f9d1e3e098c005d73226972594.tar.gz
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>
-rw-r--r--output/outelf.mac6
-rw-r--r--output/outmacho.mac2
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