Bug 2835 - assembler files (e.g., funit-ia32-regs) do not have no-exec bit set
Summary: assembler files (e.g., funit-ia32-regs) do not have no-exec bit set
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2004 2235
  Show dependency treegraph
 
Reported: 2006-06-23 17:54 UTC by Andrew Cagney
Modified: 2006-11-28 16:49 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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