line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ELF::Writer::Linux_x86; |
2
|
1
|
|
|
1
|
|
387
|
use Moo 2; |
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
4
|
|
3
|
1
|
|
|
1
|
|
170
|
use namespace::clean; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
4
|
|
|
|
|
|
|
extends 'ELF::Writer'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: ELF::Writer with defaults for Linux on x86 |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has '+class' => ( default => sub { 1 } ); |
10
|
|
|
|
|
|
|
has '+data' => ( default => sub { 1 } ); |
11
|
|
|
|
|
|
|
has '+osabi' => ( default => sub { 3 } ); |
12
|
|
|
|
|
|
|
has '+machine' => ( default => sub { 0x3 } ); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _apply_segment_defaults { |
16
|
1
|
|
|
1
|
|
2
|
my ($self, $seg)= @_; |
17
|
1
|
50
|
|
|
|
10
|
$seg->align(4096) unless $seg->align; |
18
|
1
|
|
|
|
|
7
|
$self->SUPER::_apply_segment_defaults($seg); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |