List the sections available.
Syntax
lscript section [options]
List, add, and edit the sections available in the active domain.
Options
Option | Description |
---|---|
-app
<application-name>
|
Name of application from workspace. |
-name
<section-name>
|
Name of the section to be edited. |
-mem
<memory-region>
|
Name of the memory region to be used for the section. |
-size
<section-size>
|
Size of the section. |
-add
|
Add a new section. |
-type
|
Type of new section to be added. Supported types are CODE, DATA, STACK, HEAP. |
Returns
List of the sections with corresponding memory and size in tabular format, when no options or args are specified. Nothing, if a section sucessfully edited or added. Error, if the section cannot be edited or added.
Examples
lscript section
List of the sections available in the active domain along with the type, size and assigned memory.
lscript section -app <application-name>
List of the sections available for application specified. This command makes the platform and domain of the specified application into the active platform and domain.
lscript section -name <section-name>
-mem <memory-region>
-size <section-size>
Edit the section-name with memory and size.
lscript section -mem <memory-region>
-size <section-size>
Edit all the sections with memory and size.
lscript section -add -name <section-name>
-mem <memory-region>
-size <section-size>
-type <section-type>
Add a new section with section-name, memory, and size.