The branch main has been updated by br:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=dff2758b5fa7d4987b03f3a04e1b02b367fe9b73

commit dff2758b5fa7d4987b03f3a04e1b02b367fe9b73
Author:     Ruslan Bukin <[email protected]>
AuthorDate: 2026-03-05 08:50:18 +0000
Commit:     Ruslan Bukin <[email protected]>
CommitDate: 2026-03-05 08:50:26 +0000

    static dtb: add BTI note
    
    Add BTI note to fdt_static_dtb.o
    - resolves "Branch Target Exception" panic on FDT systems with static DTB
      due to missing landing pads (bti note has to be in all object files used
      for linkage)
    - also required by bti_report linker feature
    
    Reviewed by:    andrew
    Differential Revision:  https://reviews.freebsd.org/D55636
---
 sys/dev/fdt/fdt_static_dtb.S | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/dev/fdt/fdt_static_dtb.S b/sys/dev/fdt/fdt_static_dtb.S
index 6ff6e312197d..d657236479aa 100644
--- a/sys/dev/fdt/fdt_static_dtb.S
+++ b/sys/dev/fdt/fdt_static_dtb.S
@@ -28,6 +28,13 @@
 
 #include "fdt_static_dtb.h"
 
+#if defined(__aarch64__)
+#include <sys/elf_common.h>
+#include <machine/asm.h>
+
+GNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL)
+#endif
+
 .data
 .ascii "Device Tree Blob STARTS here"
 .global fdt_static_dtb

Reply via email to