[lld] r192930 - Fill gap in .text with NOP.
Reid Kleckner
rnk at google.com
Thu Oct 17 16:04:29 PDT 2013
On Thu, Oct 17, 2013 at 3:54 PM, Chandler Carruth <chandlerc at google.com>wrote:
>
> On Thu, Oct 17, 2013 at 3:45 PM, Rui Ueyama <ruiu at google.com> wrote:
>
>> Author: ruiu
>> Date: Thu Oct 17 17:45:16 2013
>> New Revision: 192930
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=192930&view=rev
>> Log:
>> Fill gap in .text with NOP.
>>
>
> It almost seems like it would be better to fill with UD1 or something that
> won't actually execute if a stray jump lands here?
>
The MSVC toolchain uses int3 to pad things for this reason. I think the
gnu toolchain tries to get clever and write really wide nops, since the CPU
still decodes unexecuted instructions. Not sure if it matters at all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131017/972ac877/attachment.html>
More information about the llvm-commits
mailing list