Skip to content

Commit

Permalink
multibinary: move WRT_OPT macro to common header
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaodong Liu <[email protected]>
  • Loading branch information
dong-liuliu authored and gbtucker committed Aug 18, 2017
1 parent 9d243d0 commit 3ab8239
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 42 deletions.
6 changes: 0 additions & 6 deletions crc/crc64_multibinary.asm
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
default rel
[bits 64]

%ifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif

%include "reg_sizes.asm"

extern crc64_ecma_refl_by8
Expand Down
6 changes: 0 additions & 6 deletions crc/crc_multibinary.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
default rel
[bits 64]

%ifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif

%include "reg_sizes.asm"

extern crc32_iscsi_00
Expand Down
6 changes: 0 additions & 6 deletions erasure_code/ec_multibinary.asm
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

%ifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif

%include "reg_sizes.asm"
%include "multibinary.asm"

Expand Down
6 changes: 0 additions & 6 deletions igzip/igzip_inflate_multibinary.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
default rel
[bits 64]

%ifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif

%include "reg_sizes.asm"

extern decode_huffman_code_block_stateless_base
Expand Down
6 changes: 0 additions & 6 deletions igzip/igzip_multibinary.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
default rel
[bits 64]

%ifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif

%include "reg_sizes.asm"

extern isal_deflate_body_base
Expand Down
9 changes: 9 additions & 0 deletions include/reg_sizes.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions raid/raid_multibinary.asm
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

%ifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif

%include "reg_sizes.asm"
%include "multibinary.asm"

Expand Down
6 changes: 0 additions & 6 deletions raid/raid_multibinary_i32.asm
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

%ifidn __OUTPUT_FORMAT__, elf64
%define WRT_OPT wrt ..plt
%else
%define WRT_OPT
%endif

%include "reg_sizes.asm"
%include "multibinary.asm"

Expand Down

0 comments on commit 3ab8239

Please sign in to comment.