Skip to content

Commit

Permalink
Merge pull request #4 from proski/stack-noexec
Browse files Browse the repository at this point in the history
Mark stack non-executable in asm sources
  • Loading branch information
itamarjp committed Oct 27, 2016
2 parents 2a90952 + daba8b3 commit fb80d7d
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amd64/cpuid_amd64.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
%ifidn __OUTPUT_FORMAT__,elf64
SECTION .note.GNU-stack noalloc noexec nowrite progbits
%endif

SECTION .text

Expand Down
3 changes: 3 additions & 0 deletions src/amd64/rfxcodec_encode_diff_rlgr1_amd64_sse2.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
%ifidn __OUTPUT_FORMAT__,elf64
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
const1 times 8 dw 1
Expand Down
3 changes: 3 additions & 0 deletions src/amd64/rfxcodec_encode_diff_rlgr3_amd64_sse2.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
%ifidn __OUTPUT_FORMAT__,elf64
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
const1 times 8 dw 1
Expand Down
4 changes: 4 additions & 0 deletions src/amd64/rfxcodec_encode_dwt_shift_amd64_sse2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
;
;amd64 asm dwt

%ifidn __OUTPUT_FORMAT__,elf64
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
align 16
cw128 times 8 dw 128
Expand Down
4 changes: 4 additions & 0 deletions src/amd64/rfxcodec_encode_dwt_shift_amd64_sse41.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
;
;amd64 asm dwt

%ifidn __OUTPUT_FORMAT__,elf64
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
align 16
cw128 times 8 dw 128
Expand Down
3 changes: 3 additions & 0 deletions src/x86/cpuid_x86.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
%ifidn __OUTPUT_FORMAT__,elf
SECTION .note.GNU-stack noalloc noexec nowrite progbits
%endif

SECTION .text

Expand Down
3 changes: 3 additions & 0 deletions src/x86/rfxcodec_encode_diff_rlgr1_x86_sse2.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
const1 times 8 dw 1
Expand Down
3 changes: 3 additions & 0 deletions src/x86/rfxcodec_encode_diff_rlgr3_x86_sse2.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
const1 times 8 dw 1
Expand Down
4 changes: 4 additions & 0 deletions src/x86/rfxcodec_encode_dwt_shift_x86_sse2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
;
;x86 asm dwt

%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
align 16
cw128 times 8 dw 128
Expand Down
4 changes: 4 additions & 0 deletions src/x86/rfxcodec_encode_dwt_shift_x86_sse41.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
;
;x86 asm dwt

%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

section .data
align 16
cw128 times 8 dw 128
Expand Down

0 comments on commit fb80d7d

Please sign in to comment.