In the previous patch (r254003), I made the linker emit PT_GNU_STACK
unconditionally. But sometimes you want to have a control over the
presence of the segment. With this patch, you can omit the segment
by passing -z execstack option.
Details
Details
- Reviewers
joerg
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks, this works for the cases I care about. The refinement of the test case is minor, just trying to make sure both cases are handled consistently.
| test/ELF/gnustack.s | ||
|---|---|---|
| 9 | The intention here is that the notes are dropped, so shouldn't that be checked for the RWX case as well? | |
| test/ELF/gnustack.s | ||
|---|---|---|
| 9 | Good point. Done. | |
The intention here is that the notes are dropped, so shouldn't that be checked for the RWX case as well?