<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/cmd/link/link_test.go, branch json-isValidNumber-before</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber-before</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber-before'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2023-01-25T21:16:32Z</updated>
<entry>
<title>cmd: remove GOEXPERIMENT=nounified knob</title>
<updated>2023-01-25T21:16:32Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2022-12-02T00:14:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4f467f10820e78add23bf5ddeb1de521aa6f8864'/>
<id>urn:sha1:4f467f10820e78add23bf5ddeb1de521aa6f8864</id>
<content type='text'>
This CL removes the GOEXPERIMENT=nounified knob, and any conditional
statements that depend on that knob. Further CLs to remove unreachable
code follow this one.

Updates #57410.

Change-Id: I39c147e1a83601c73f8316a001705778fee64a91
Reviewed-on: https://go-review.googlesource.com/c/go/+/458615
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/link: don't export all symbols for ELF external linking</title>
<updated>2023-01-25T20:45:42Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2022-06-27T21:58:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1f29f39795e736238200840c368c4e0c6edbfbae'/>
<id>urn:sha1:1f29f39795e736238200840c368c4e0c6edbfbae</id>
<content type='text'>
Since this may add a large number of --export-dynamic-symbol options,
use a response file if the command line gets large.

Fixes #53579

Change-Id: Ic226bf372bf1e177a3dae886d1c48f4ce3569c0e
Reviewed-on: https://go-review.googlesource.com/c/go/+/414654
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
Reviewed-by: Joedian Reid &lt;joedian@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/link: use testenv.Command instead of exec.Command in tests</title>
<updated>2022-11-15T20:22:14Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2022-11-15T15:21:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=0b82b670ed0ba6826ce8215e816df9c8016df323'/>
<id>urn:sha1:0b82b670ed0ba6826ce8215e816df9c8016df323</id>
<content type='text'>
testenv.Command sets a default timeout based on the test's deadline
and sends SIGQUIT (where supported) in case of a hang.

Change-Id: I25a67aa5793c6fa977ff6d4dc59ca1533bf58d41
Reviewed-on: https://go-review.googlesource.com/c/go/+/450702
Run-TryBot: Bryan Mills &lt;bcmills@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/go: don't install most GOROOT .a files in pkg</title>
<updated>2022-10-28T23:35:08Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2022-09-21T19:51:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b726b0cadb5102bb718f879bede0e76d1e5f5c34'/>
<id>urn:sha1:b726b0cadb5102bb718f879bede0e76d1e5f5c34</id>
<content type='text'>
Packages in GOROOT that don't use cgo will not be installed in
GOROOT/pkg, and will instead be cached as usual like other Go
packages.

- add a internal/buildinternal package to hold the identities of the
  five packages that use cgo
- update dist's test code to do a go build std cmd before checking
  staleness on builders. Because most of those packages no longer have
  install locations, and have dependencies that don't either, the
  packages need to be cached to not be stale.
- fix index_test to import packages with the path "." when preparing
  the "want" values to compare the indexed data to. (the module index
  matches the behavior of build.ImportDir, which always passes in "."
  as the path.
- In both the index and go/build Importers, don't set
  PkgObj for GOROOT packages which will no longer have install
  targets. PkgTargetRoot will still be set to compute target paths,
  which will still be needed in buildmode=shared.
- "downgrade" all install actions that don't have a target to build
  actions. (The target should already not be set for packages that
  shouldn't be installed).

For #47257

Change-Id: Ia5aee6b3b20b58e028119cf0352a4c4a2f10f6b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/432535
Run-TryBot: Michael Matloob &lt;matloob@golang.org&gt;
Reviewed-by: Michael Matloob &lt;matloob@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>go,cmd,internal: update to anticipate missing targets and .a files</title>
<updated>2022-10-18T20:41:45Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2022-09-21T19:51:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7ea0520234aafb47d05bb4822cb7af54c6ac7554'/>
<id>urn:sha1:7ea0520234aafb47d05bb4822cb7af54c6ac7554</id>
<content type='text'>
go/build and cmd/go will stop returing Targets for stdlib .a files, and
stop producing the .a files is pkg/GOOS_GOARCH. update tests to
anticipate that and to pass in importcfgs instead of expecting the
compiler can find .a files in their old locations.

Adds code to determine locations of .a files to internal/goroot. Also
adds internal/goroot to dist's bootstrap directories and changes
internal/goroot to build with a bootstrap version of Go.

Change-Id: Ie81e51105bddb3f0e374cbf47e81c23edfb67fa5
Reviewed-on: https://go-review.googlesource.com/c/go/+/442303
Reviewed-by: Michael Matloob &lt;matloob@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Michael Matloob &lt;matloob@golang.org&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/internal/sys: migrate support.go functions to new internal pkg</title>
<updated>2022-10-04T18:08:15Z</updated>
<author>
<name>Than McIntosh</name>
<email>thanm@google.com</email>
</author>
<published>2022-10-04T13:00:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8bd803fd4ea3a549a9124f5a4e18af9596ef35df'/>
<id>urn:sha1:8bd803fd4ea3a549a9124f5a4e18af9596ef35df</id>
<content type='text'>
Separate out the functions from cmd/internal/sys/support.go and
migrate them to a new package internal/platform, so that functions such as
"RaceDetectorSupported" can be called from tests in std as well as in
cmd. This isn't a complete move of everything in cmd/internal/sys;
there are still many functions left.

The original version of this CL (patch set 1) called the new package
"internal/sys", but for packages that needed both "internal/sys" and
"cmd/internal/sys" the import of the former had to be done with a
different name, which was confusing and also required a hack in
cmd/dist.

Updates #56006.

Change-Id: I866d62e75adbf3a640a06e2c7386a6e9e2a18d91
Reviewed-on: https://go-review.googlesource.com/c/go/+/438475
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Run-TryBot: Than McIntosh &lt;thanm@google.com&gt;
</content>
</entry>
<entry>
<title>all: replace package ioutil with os and io in src</title>
<updated>2022-09-20T02:13:02Z</updated>
<author>
<name>Andy Pan</name>
<email>panjf2000@gmail.com</email>
</author>
<published>2022-08-27T19:38:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f8c659b62ff43e8455ebc675e577b9adc67b3f9f'/>
<id>urn:sha1:f8c659b62ff43e8455ebc675e577b9adc67b3f9f</id>
<content type='text'>
For #45557

Change-Id: I56824135d86452603dd4ed4bab0e24c201bb0683
Reviewed-on: https://go-review.googlesource.com/c/go/+/426257
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Andy Pan &lt;panjf2000@gmail.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/link: support linker for linux/loong64</title>
<updated>2022-05-17T17:54:33Z</updated>
<author>
<name>Xiaodong Liu</name>
<email>liuxiaodong@loongson.cn</email>
</author>
<published>2021-08-15T08:25:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=cc4957a5f6eba946f359ed9646ec3e5083a259a9'/>
<id>urn:sha1:cc4957a5f6eba946f359ed9646ec3e5083a259a9</id>
<content type='text'>
The basic arch-specific hooks are implemented, which
are used for internal and external linker.

Contributors to the loong64 port are:
  Weining Lu &lt;luweining@loongson.cn&gt;
  Lei Wang &lt;wanglei@loongson.cn&gt;
  Lingqin Gong &lt;gonglingqin@loongson.cn&gt;
  Xiaolin Zhao &lt;zhaoxiaolin@loongson.cn&gt;
  Meidan Li &lt;limeidan@loongson.cn&gt;
  Xiaojuan Zhai &lt;zhaixiaojuan@loongson.cn&gt;
  Qiyuan Pu &lt;puqiyuan@loongson.cn&gt;
  Guoqi Chen &lt;chenguoqi@loongson.cn&gt;

This port has been updated to Go 1.15.6:
  https://github.com/loongson/go

Updates #46229

Change-Id: I4680eb0635dd0fa3d6ea8348a2488da9c7e33d3b
Reviewed-on: https://go-review.googlesource.com/c/go/+/349514
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/compile: set LocalPkg.Path to -p flag</title>
<updated>2022-05-16T18:19:47Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2022-03-17T20:27:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ab8d7dd75ea4918cde5e71b4482ff5b4f0f69273'/>
<id>urn:sha1:ab8d7dd75ea4918cde5e71b4482ff5b4f0f69273</id>
<content type='text'>
Since CL 391014, cmd/compile now requires the -p flag to be set the
build system. This CL changes it to initialize LocalPkg.Path to the
provided path, rather than relying on writing out `"".` into object
files and expecting cmd/link to substitute them.

However, this actually involved a rather long tail of fixes. Many have
already been submitted, but a few notable ones that have to land
simultaneously with changing LocalPkg:

1. When compiling package runtime, there are really two "runtime"
packages: types.LocalPkg (the source package itself) and
ir.Pkgs.Runtime (the compiler's internal representation, for synthetic
references). Previously, these ended up creating separate link
symbols (`"".xxx` and `runtime.xxx`, respectively), but now they both
end up as `runtime.xxx`, which causes lsym collisions (notably
inittask and funcsyms).

2. test/codegen tests need to be updated to expect symbols to be named
`command-line-arguments.xxx` rather than `"".foo`.

3. The issue20014 test case is sensitive to the sort order of field
tracking symbols. In particular, the local package now sorts to its
natural place in the list, rather than to the front.

Thanks to David Chase for helping track down all of the fixes needed
for this CL.

Updates #51734.

Change-Id: Iba3041cf7ad967d18c6e17922fa06ba11798b565
Reviewed-on: https://go-review.googlesource.com/c/go/+/393715
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Cuong Manh Le &lt;cuong.manhle.vn@gmail.com&gt;
</content>
</entry>
<entry>
<title>cmd/asm: require -p flag</title>
<updated>2022-05-11T22:59:46Z</updated>
<author>
<name>Cherry Mui</name>
<email>cherryyz@google.com</email>
</author>
<published>2022-05-05T21:45:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6e03de7b83426fa2f598c428a19db707a845bf7e'/>
<id>urn:sha1:6e03de7b83426fa2f598c428a19db707a845bf7e</id>
<content type='text'>
CL 391014 requires the compiler to be invoked with the -p flag, to
specify the package path. Later, CL 394217 makes the compiler to
produce an unlinkable object file, so "go tool compile x.go" can
still be used on the command line. This CL does the same for the
assembler, requiring -p, otherwise generating an unlinkable object.

No special case for the main package, as the main package cannot
be only assembly code, and there is no way to tell if it is the
main package from an assembly file.

Now we guarantee that we always have an expanded package path in
the object file. A later CL will delete the name expansion code
in the linker.

Change-Id: I8c10661aaea2ff794614924ead958d80e7e2487d
Reviewed-on: https://go-review.googlesource.com/c/go/+/404298
Run-TryBot: Cherry Mui &lt;cherryyz@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
</content>
</entry>
</feed>
