Implemented a minimum length for sections
All checks were successful
/ test (push) Successful in 20s
All checks were successful
/ test (push) Successful in 20s
This commit is contained in:
parent
8886e90e21
commit
186c12145c
1 changed files with 6 additions and 2 deletions
|
@ -19,8 +19,12 @@ func New(headerEnd int, fileAlign int, memoryAlign int, congruent bool, raw ...[
|
||||||
congruent: congruent,
|
congruent: congruent,
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, data := range raw {
|
for i, section := range raw {
|
||||||
exe.Sections[i] = &Section{Bytes: data}
|
if len(section) == 0 {
|
||||||
|
section = []byte{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
exe.Sections[i] = &Section{Bytes: section}
|
||||||
}
|
}
|
||||||
|
|
||||||
exe.Update()
|
exe.Update()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue