From 79758c5150a6f03dbf4644c3a4d55dfd55fe036a Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Thu, 5 Dec 2024 12:47:57 +0800 Subject: [PATCH] arm64/lto: Fix link error after opening lto CPP: /mnt/vela/github/NX/nuttx/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld-> /mnt/vela/github/NX/nutLD: nuttx Please update the link script, section ['.kasan.global'] cannot be found `.eh_frame' referenced in section `.text.frame_dummy' of /mnt/vela/github/Toolchains/arm64-gcc-13/bin/../lib/gcc/aarch64-none-elf/13.2.1/crtbegin.o: defined in discarded section `.eh_frame' of /mnt/vela/github/Toolchains/arm64-gcc-13/bin/../lib/gcc/aarch64-none-elf/13.2.1/crtbegin.o `.eh_frame' referenced in section `.text.frame_dummy' of /mnt/vela/github/Toolchains/arm64-gcc-13/bin/../lib/gcc/aarch64-none-elf/13.2.1/crtbegin.o: defined in discarded section `.eh_frame' of /mnt/vela/github/Toolchains/arm64-gcc-13/bin/../lib/gcc/aarch64-none-elf/13.2.1/crtbegin.o Memory region Used Size Region Size %age Used Signed-off-by: wangmingrong1 --- boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld | 1 - 1 file changed, 1 deletion(-) diff --git a/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld b/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld index 361d8125b7..82b1e1d908 100644 --- a/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld +++ b/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld @@ -144,7 +144,6 @@ SECTIONS *(.exit.text) *(.exit.data) *(.exitcall.exit) - *(.eh_frame) } /* Stabs debugging sections. */