You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/02/25 16:38:04 UTC

[mynewt-newt] branch master updated: Revert "toolchain: Link all archives with -whole-archive"

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

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


The following commit(s) were added to refs/heads/master by this push:
     new cb901d9  Revert "toolchain: Link all archives with -whole-archive"
cb901d9 is described below

commit cb901d91a15cf315ca1ae8b4ed09f7ef7152303c
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Fri Feb 25 17:37:24 2022 +0100

    Revert "toolchain: Link all archives with -whole-archive"
    
    This reverts commit 807df4f13976cc477bf505f36fd36011c5836c5a.
---
 newt/toolchain/compiler.go | 2 --
 1 file changed, 2 deletions(-)

diff --git a/newt/toolchain/compiler.go b/newt/toolchain/compiler.go
index a0e7517..ad264ac 100644
--- a/newt/toolchain/compiler.go
+++ b/newt/toolchain/compiler.go
@@ -918,7 +918,6 @@ func (c *Compiler) CompileBinaryCmd(dstFile string, options map[string]bool,
 		cmd = append(cmd, "-Wl,--just-symbols="+elfLib)
 	}
 
-	cmd = append(cmd, "-Wl,-whole-archive")
 	if c.ldResolveCircularDeps {
 		cmd = append(cmd, "-Wl,--start-group")
 		cmd = append(cmd, objList...)
@@ -926,7 +925,6 @@ func (c *Compiler) CompileBinaryCmd(dstFile string, options map[string]bool,
 	} else {
 		cmd = append(cmd, objList...)
 	}
-	cmd = append(cmd, "-Wl,-no-whole-archive")
 
 	if keepSymbols != nil {
 		for _, name := range keepSymbols {