Modify ↓
Ticket #150 (new enhancement)
Segment alignment etc.
| Reported by: | Agner@… | Owned by: | |
|---|---|---|---|
| Priority: | P1 | Milestone: | |
| Component: | Parser: NASM-compatible | Version: | 0.6.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Is it possible to specify the properties of a segment, such as alignment, writeable, executable, zerofill?
I am considering to add support for YASM syntax in my disassembler, www.agner.org/optimize/objconv.zip but I need these features.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Yes, they're specified as parameters to the section directive. The exact names of the parameters depends on the object format. What object format are you looking at?
E.g. win32 supports discard, cache, page, share, execute, read, write, base flags, as well as alignment. You can turn off the binary flags by prefixing with "no":
If you let me know what object format you're looking at, I can give you details on the flags available for that format.