git: platform: Use INT3 instead of NOP for x86 binary padding

Aaron LI aly at crater.dragonflybsd.org
Sun Jun 21 03:01:58 PDT 2026


commit e83617a17c7f476b49b82bad9c10c1d1351e2bf7
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Jun 21 13:50:12 2026 +0800

    platform: Use INT3 instead of NOP for x86 binary padding
    
    We should never end up executing the inter-function padding, so we
    are better off faulting than silently carrying on to whatever function
    happens to be next.
    
    Obtained-from: FreeBSD (https://reviews.freebsd.org/D10047)

Summary of changes:
 sys/platform/pc64/conf/ldscript.x86_64      | 6 +++---
 sys/platform/vkernel64/conf/ldscript.x86_64 | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e83617a17c7f476b49b82bad9c10c1d1351e2bf7


-- 
DragonFly BSD source repository


More information about the Commits mailing list