set padding to zero instead of undefined data
This commit is contained in:
parent
121eda3464
commit
2ddf83770c
1 changed files with 2 additions and 0 deletions
|
@ -559,6 +559,8 @@ static void update_offsets(struct linker *linker)
|
||||||
ptr += add;
|
ptr += add;
|
||||||
ent->off = ptr;
|
ent->off = ptr;
|
||||||
ent->padding = add;
|
ent->padding = add;
|
||||||
|
} else {
|
||||||
|
ent->padding = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue