- IMPLEMENTS ROLES
- COPYRIGHT AND LICENSE
ELF::Extract::Sections::Scanner::Objdump - An objdump based section scanner.
This module is a model implementation of a Naive and system reliant ELF Section detector. Its currently highly inefficient due to having to run the entire ELF through a disassembly process to determine the section positions and only guesses at section lengths by advertising that it can't compute sizes.
TO use this module, simply initialise ELF::Extract::Sections as so
my $extractor = ELF::Extract::Sections->new( file => "/path/to/file.so" , scanner => "Objdump", );
my $boolean = $scanner->open_file( file => File );
Opens the file and assigns our state to that file.
my $boolean = $scanner->next_section();
Advances our state to the next section.
my $return = $scanner->section_offset(); # Int | Undef
Reports the offset of the currently open section
my $return = $scanner->section_size(); # BANG
Dies, because this module can't compute section sizes.
my $name = $scanner->section_name(); # Str | Undef
Returns the name of the current section
my $bool = $scanner->can_compute_size;
Kent Fredric <email@example.com>
This software is copyright (c) 2015 by Kent Fredric <firstname.lastname@example.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.