lib/alloca*: mark ELF stack access flags as nonexecutable
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
This commit is contained in:
		
							parent
							
								
									288831854b
								
							
						
					
					
						commit
						d97a25fbdd
					
				
					 3 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
					@ -40,4 +40,8 @@ p6:
 | 
				
			||||||
    push    %edx
 | 
					    push    %edx
 | 
				
			||||||
    ret
 | 
					    ret
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* mark stack as nonexecutable */
 | 
				
			||||||
 | 
					#if defined __ELF__ && defined __linux__
 | 
				
			||||||
 | 
					    .section    .note.GNU-stack,"",@progbits
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
/* ---------------------------------------------- */
 | 
					/* ---------------------------------------------- */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,4 +28,8 @@ p3:
 | 
				
			||||||
    push    %edx
 | 
					    push    %edx
 | 
				
			||||||
    ret
 | 
					    ret
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* mark stack as nonexecutable */
 | 
				
			||||||
 | 
					#if defined __ELF__ && defined __linux__
 | 
				
			||||||
 | 
					    .section    .note.GNU-stack,"",@progbits
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
/* ---------------------------------------------- */
 | 
					/* ---------------------------------------------- */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,4 +35,8 @@ p3:
 | 
				
			||||||
    push    %rdx
 | 
					    push    %rdx
 | 
				
			||||||
    ret
 | 
					    ret
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* mark stack as nonexecutable */
 | 
				
			||||||
 | 
					#if defined __ELF__ && defined __linux__
 | 
				
			||||||
 | 
					    .section    .note.GNU-stack,"",@progbits
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
/* ---------------------------------------------- */
 | 
					/* ---------------------------------------------- */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue