Bug 2835

Summary: assembler files (e.g., funit-ia32-regs) do not have no-exec bit set
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2004, 2235    

Description Andrew Cagney 2006-06-23 17:54:56 UTC
The asembler files were not built with no-exec.
Comment 1 Andrew Cagney 2006-06-23 17:57:58 UTC
from notes from jakub:

assembly is by default conservatively assumed to need executable stack
you need either:
1) .section        .note.GNU-stack,"",@progbits somewhere in the assembly
or
2) assemble with -Wa,--noexecstack or 3) link with -Wl,-z,noexecstack
or
3) if it is already linked, you can use the execstack(8) utility