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:37:29 UTC
[mynewt-newt] 01/01: 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 revert-455-whole-archive
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit a36e560c33a66eb830448865369d2352cbabd778
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 {