09 Mar 2017 17:37:52 UTC
- Distribution: ELF-Writer
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Testers (542 / 0 / 0)
- KwaliteeBus factor: 1
- 51.10% Coverage
- License: perl_5
- Activity24 month
- Download (19.92KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- ATTRIBUTES (header fields)
- ATTRIBUTES (user)
- COPYRIGHT AND LICENSE
ELF::Writer::Section - Object representing the fields of one section in an ELF file.
The following are elf section header fields:
Pointer to name of this section within the Strings table. (.shstrtab)
TODO: auto-generate the string table if this is set to anything other than a number.
Type of this section. A 32-bit number, or one of:
32-bit flags. Use the attributes below to access known flag bits.
Read/write accessor for write bit of flags
Read/write accesor for alloc bit of flags
Read/write accessor for execinstr bit of flags
The address in the process's memory where this section gets loaded, or zero if it doesn't.
Location within the ELF file where this section is located.
Size (in bytes) of the section within the ELF file. If the type of the section is 'nobits' then this field is ignored and the section does not occupy bytes of the ELF file.
Reference to another section, as an index into the section table. Meaning depends on section type.
Extra info, depending on section type.
Required alignment for the "addr" field. Addr must be a multiple of this value. Values 0 and 1 both mean no alignment is required.
If the section holds a table of fixed-size entries, this is the size of each entry. Set to 0 otherwise.
The data bytes of this section
Use this attribute to introduce padding between the start of the section and the offset where your 'data' should be written. This is mainly of use for segments, but provided on sections for symmetry.
standard Moo constructor. Pass any attributes, *including* the flag aliases.
$thingif it is an instance of
$class, or passes $thing to the constructor otherwise.
Clone this instance.
Michael Conrad <firstname.lastname@example.org>
This software is copyright (c) 2017 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.