This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 909c0599b7c boards/verdin-mx8mp/rpmsg: enable LTO
909c0599b7c is described below

commit 909c0599b7cd16f74e50b394060b942973721619
Author: zhangyuan29 <[email protected]>
AuthorDate: Wed Nov 18 19:34:46 2026 +0800

    boards/verdin-mx8mp/rpmsg: enable LTO
    
    The image runs from the 128 KB ITCM and no longer fits on master.
    Recent changes add about 400 bytes, and the link fails with
    "region `flash' overflowed by 240 bytes".  The configuration has
    already been trimmed several times to stay inside the ITCM.
    
    Enable full LTO, as other small-flash configurations do.  This cuts
    the image from 131312 to 121168 bytes.  The configuration is a flat
    build, and the resource table is kept by the linker script
    (KEEP(*(.resource_table))), so LTO does not drop it.
    
    Signed-off-by: zhangyuan29 <[email protected]>
---
 boards/arm/mx8mp/verdin-mx8mp/configs/rpmsg/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boards/arm/mx8mp/verdin-mx8mp/configs/rpmsg/defconfig 
b/boards/arm/mx8mp/verdin-mx8mp/configs/rpmsg/defconfig
index 9db853b998d..468c43b9564 100644
--- a/boards/arm/mx8mp/verdin-mx8mp/configs/rpmsg/defconfig
+++ b/boards/arm/mx8mp/verdin-mx8mp/configs/rpmsg/defconfig
@@ -38,6 +38,7 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
 CONFIG_INPUT=y
 CONFIG_INTELHEX_BINARY=y
 CONFIG_LINE_MAX=64
+CONFIG_LTO_FULL=y
 CONFIG_MX8MP_I2C4=y
 CONFIG_MX8MP_I2C=y
 CONFIG_MX8MP_RUN_FROM_ITCM=y

Reply via email to