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