Closed
Description
Bugzilla Link | 32227 |
Resolution | FIXED |
Resolved on | Apr 07, 2017 05:27 |
Version | unspecified |
OS | All |
CC | @emaste,@jh7370 |
Extended Description
Currently, LLD leaves padding between executable sections as-is, so they are 0. That is not desirable for a few reasons.
-
Disassemblers would interpret the sequences of 0 bytes at end of each function as machine instructions and print out bogus disassembly.
-
Leaving executable 0 bytes could potentially make some attack easier.
We want to fill gaps with trap instructions. On x86 and x86-64, that is 0xcc, for example.