<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/misc/cgo/testplugin/src/plugin2/plugin2.go, branch main</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2019-02-24T00:36:13Z</updated>
<entry>
<title>misc/cgo/testplugin: convert test.bash to Go and fix in module mode</title>
<updated>2019-02-24T00:36:13Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2019-02-21T22:38:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=eb2d1cdd1bbc1912e316040f8ef9a363511d3747'/>
<id>urn:sha1:eb2d1cdd1bbc1912e316040f8ef9a363511d3747</id>
<content type='text'>
Updates #30228
Updates #28387

Change-Id: Iad7d960b70221f90ccc2372bb1d4d41cec3926e4
Reviewed-on: https://go-review.googlesource.com/c/163214
Run-TryBot: Bryan C. Mills &lt;bcmills@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/go: pass plugin package name to compile -p</title>
<updated>2017-09-01T18:27:59Z</updated>
<author>
<name>David Crawshaw</name>
<email>crawshaw@golang.org</email>
</author>
<published>2017-09-01T15:20:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=605331f43ee228588b61c5793ce0f754d8c54324'/>
<id>urn:sha1:605331f43ee228588b61c5793ce0f754d8c54324</id>
<content type='text'>
When compiling a plugin, package main gets a new name so as not to
conflict with the main package in the host binary, or any other
plugins. It is already defined by cmd/go, and used by cmd/link when
filling out the "" package placeholder in symbols.

With this CL, the plugin-specific name for main is also passed to
cmd/compile's -p flag. This is used to fill out the pkgpath field
of types, and ensures that two types defined in two different plugin
mains with the same name will not be mistaken for one another at
runtime.

Fixes #21386

Change-Id: I8a646d8d7451caff533fe0007343ea8b8e1704ed
Reviewed-on: https://go-review.googlesource.com/60910
Run-TryBot: David Crawshaw &lt;crawshaw@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/link: do not export plugin C symbols</title>
<updated>2016-12-14T19:36:20Z</updated>
<author>
<name>David Crawshaw</name>
<email>crawshaw@golang.org</email>
</author>
<published>2016-12-10T18:30:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=96414ca39f4a63d04ddc5cea6d4c63237f2a5fd4'/>
<id>urn:sha1:96414ca39f4a63d04ddc5cea6d4c63237f2a5fd4</id>
<content type='text'>
Explicitly filter any C-only cgo functions out of pclntable,
which allows them to be duplicated with the host binary.

Updates #18190.

Change-Id: I50d8706777a6133b3e95f696bc0bc586b84faa9e
Reviewed-on: https://go-review.googlesource.com/34199
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/link: support plugins with no exported symbols</title>
<updated>2016-11-01T20:56:30Z</updated>
<author>
<name>David Crawshaw</name>
<email>crawshaw@golang.org</email>
</author>
<published>2016-10-31T03:53:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d0e408334be22158fbf58a4d02789a48f5cb911e'/>
<id>urn:sha1:d0e408334be22158fbf58a4d02789a48f5cb911e</id>
<content type='text'>
A plugin with no exported symbols is still potentially very useful.
Its init functions are called on load, and it so it can have visible
side effects.

Fixes #17681

Change-Id: Icdca31f48e5ab13c99020a2ef724f3de47dcd74b
Reviewed-on: https://go-review.googlesource.com/32437
Run-TryBot: David Crawshaw &lt;crawshaw@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
</feed>
