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

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git

commit 01ed39468a4098a4d0320213a50a29042f2b9a3f
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Oct 21 02:07:51 2026 +0200

    newt/builder: Sort symbols kept when linking split image loader
    
    Symbols required by split image app are passed to the loader link as
    --undefined options. Those were collected from a map, so their order
    in linker command line changed between builds.
    
    Sort symbols by name.
    
    Assisted-by: Claude:claude-opus-5-5
---
 newt/builder/build.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/newt/builder/build.go b/newt/builder/build.go
index c0bf2b3f..d62f0002 100644
--- a/newt/builder/build.go
+++ b/newt/builder/build.go
@@ -816,6 +816,7 @@ func (b *Builder) KeepLink(linkerScripts []string, keepMap 
*symbol.SymbolMap,
                for _, info := range *keepMap {
                        keepSymbols = append(keepSymbols, info.Name)
                }
+               sort.Strings(keepSymbols)
        }
 
        if err := b.link(b.AppElfPath(), linkerScripts, keepSymbols,

Reply via email to