[lld] Fill .text section gaps with INT3 only on x86 targets.
authorJacek Caban <jacek@codeweavers.com>
Thu, 23 Mar 2023 11:20:37 +0000 (13:20 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 23 Mar 2023 11:43:21 +0000 (13:43 +0200)
commita5988034a44d039f95db3067e4ad0dfeeca155c3
tree44ad2d8c1b7e33dd123a5072afc661bab8c7f4e5
parent4fcbf3842007569880fa916831efefda6b1bd032
[lld] Fill .text section gaps with INT3 only on x86 targets.

It doesn't make sense on ARM and using default 0 fill is compatible
with MSVC.

(It's more noticeable ARM64EC targets, where additional padding mixed
with alignment is used for entry thunk association, so there are more
gaps).

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D145962
lld/COFF/Writer.cpp
lld/test/COFF/arm-thumb-thunks-multipass.s
lld/test/COFF/arm64-import2.test
lld/test/COFF/gaps-fill.test [new file with mode: 0644]