You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aarch64 image builds that link with mold now report the BTI/PAC hardening mold drops. mold does not carry over the .note.gnu.property that GNU ld writes (rui314/mold#1725), so a program built with -mbranch-protection and linked by mold runs unprotected, with no build error. mold.bbclass scans the finished rootfs and warns with the number of affected binaries, a few example paths and a full list in ${WORKDIR}/mold-aarch64-marking.txt. A per-recipe QA check would stay silent for every recipe restored from sstate, so the scan runs once per image. mold also drops .ARM.attributes, so the check recognises a lost marking by a bti c or paciasp instruction in code that has no matching property bit. It cannot tell which linker made a file, because packaging strips .comment. Set MOLD_MARKING_CHECK = "error" to fail the image build, or "off" to skip the scan. x86-64 and other architectures are unaffected. The first aarch64 build after upgrading reruns do_rootfs for images.