-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from EdTheBearded/tor-3218
Torizon OS Maintenance Q1 2024
- Loading branch information
Showing
26 changed files
with
76 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,26 +18,26 @@ Signed-off-by: Alexander J Kube <[email protected]> | |
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go | ||
index c073017..e60d39a 100644 | ||
index 03b9f11..e91c92f 100644 | ||
--- a/src/cmd/link/internal/ld/lib.go | ||
+++ b/src/cmd/link/internal/ld/lib.go | ||
@@ -1491,6 +1491,7 @@ func (ctxt *Link) hostlink() { | ||
@@ -1504,6 +1504,7 @@ func (ctxt *Link) hostlink() { | ||
argv = append(argv, "-Wl,-z,relro") | ||
} | ||
argv = append(argv, "-shared") | ||
+ argv = append(argv, fmt.Sprintf("-Wl,-soname,%s", filepath.Base(*flagOutfile))) | ||
if ctxt.HeadType == objabi.Hwindows { | ||
argv = addASLRargs(argv, *flagAslr) | ||
} else { | ||
@@ -1506,6 +1507,7 @@ func (ctxt *Link) hostlink() { | ||
@@ -1519,6 +1520,7 @@ func (ctxt *Link) hostlink() { | ||
argv = append(argv, "-Wl,-z,relro") | ||
} | ||
argv = append(argv, "-shared") | ||
+ argv = append(argv, fmt.Sprintf("-Wl,-soname,%s", filepath.Base(*flagOutfile))) | ||
case BuildModePlugin: | ||
if ctxt.HeadType == objabi.Hdarwin { | ||
argv = append(argv, "-dynamiclib") | ||
@@ -1514,6 +1516,7 @@ func (ctxt *Link) hostlink() { | ||
@@ -1527,6 +1529,7 @@ func (ctxt *Link) hostlink() { | ||
argv = append(argv, "-Wl,-z,relro") | ||
} | ||
argv = append(argv, "-shared") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,10 @@ Signed-off-by: Alexander Kanavin <[email protected]> | |
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go | ||
index d83b31b..a646fbb 100644 | ||
index cde867b..5cb1812 100644 | ||
--- a/src/cmd/go/internal/work/exec.go | ||
+++ b/src/cmd/go/internal/work/exec.go | ||
@@ -1312,7 +1312,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID { | ||
@@ -1331,7 +1331,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID { | ||
} | ||
|
||
// Toolchain-dependent configuration, shared with b.linkSharedActionID. | ||
|
@@ -27,7 +27,7 @@ index d83b31b..a646fbb 100644 | |
|
||
// Input files. | ||
for _, a1 := range a.Deps { | ||
@@ -1607,7 +1607,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID { | ||
@@ -1626,7 +1626,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID { | ||
fmt.Fprintf(h, "goos %s goarch %s\n", cfg.Goos, cfg.Goarch) | ||
|
||
// Toolchain-dependent configuration, shared with b.linkActionID. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,10 @@ Signed-off-by: Richard Purdie <[email protected]> | |
1 file changed, 13 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go | ||
index 56a4e5e..22edbdb 100644 | ||
index f427e29..6d6dc4e 100644 | ||
--- a/src/cmd/go/internal/load/pkg.go | ||
+++ b/src/cmd/go/internal/load/pkg.go | ||
@@ -2266,6 +2266,17 @@ func (p *Package) collectDeps() { | ||
@@ -2270,6 +2270,17 @@ func (p *Package) collectDeps() { | ||
// to their VCS information (vcsStatusError). | ||
var vcsStatusCache par.Cache | ||
|
||
|
@@ -37,7 +37,7 @@ index 56a4e5e..22edbdb 100644 | |
// setBuildInfo gathers build information, formats it as a string to be | ||
// embedded in the binary, then sets p.Internal.BuildInfo to that string. | ||
// setBuildInfo should only be called on a main package with no errors. | ||
@@ -2372,7 +2383,7 @@ func (p *Package) setBuildInfo(autoVCS bool) { | ||
@@ -2376,7 +2387,7 @@ func (p *Package) setBuildInfo(autoVCS bool) { | ||
if gcflags := BuildGcflags.String(); gcflags != "" && cfg.BuildContext.Compiler == "gc" { | ||
appendSetting("-gcflags", gcflags) | ||
} | ||
|
@@ -46,7 +46,7 @@ index 56a4e5e..22edbdb 100644 | |
// https://go.dev/issue/52372: only include ldflags if -trimpath is not set, | ||
// since it can include system paths through various linker flags (notably | ||
// -extar, -extld, and -extldflags). | ||
@@ -2418,7 +2429,7 @@ func (p *Package) setBuildInfo(autoVCS bool) { | ||
@@ -2422,7 +2433,7 @@ func (p *Package) setBuildInfo(autoVCS bool) { | ||
// subset of flags that are known not to be paths? | ||
if cfg.BuildContext.CgoEnabled && !cfg.BuildTrimpath { | ||
for _, name := range []string{"CGO_CFLAGS", "CGO_CPPFLAGS", "CGO_CXXFLAGS", "CGO_LDFLAGS"} { | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.