multibinary: move WRT_OPT macro to common header

Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>
This commit is contained in:
Xiaodong Liu
2017-07-23 22:06:20 -04:00
committed by Greg Tucker
parent 9d243d0ed7
commit 3ab8239097
8 changed files with 9 additions and 42 deletions

View File

@@ -198,6 +198,15 @@ section .text
section .note.GNU-stack noalloc noexec nowrite progbits
section .text
%endif
%ifdef REL_TEXT
%define WRT_OPT
%elifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif
%ifidn __OUTPUT_FORMAT__, macho64
%define elf64 macho64
%endif