golang-1.9.git
8 years agomisc/cgo/testcarchive: use -no-pie where needed
Lynn Boger [Wed, 11 Oct 2017 20:02:59 +0000 (16:02 -0400)]
misc/cgo/testcarchive: use -no-pie where needed

Starting in gcc 6, -pie is passed to the linker by default
on some platforms, including ppc64le. If the objects
being linked are not built for -pie then in some cases the
executable could be in error. To avoid that problem, -no-pie
should be used with gcc to override the default -pie option
and generate a correct executable that can be run without error.

Fixes #22126

Change-Id: I4a052bba8b9b3bd6706f5d27ca9a7cebcb504c95
Reviewed-on: https://go-review.googlesource.com/70072
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Gbp-Pq: Name 0006-misc-cgo-testcarchive-use-no-pie-where-needed.patch

8 years agoruntime: use -buildmode=pie in testCgoPprofPIE instead of -extldflags=-pie
Lynn Boger [Fri, 27 Oct 2017 14:06:40 +0000 (10:06 -0400)]
runtime: use -buildmode=pie in testCgoPprofPIE instead of -extldflags=-pie

Errors occur in runtime test testCgoPprofPIE when the test
is built by passing -pie to the external linker with code
that was not built as PIC. This occurs on ppc64le because
non-PIC is the default, and fails only on newer distros
where the address range used for programs is high enough
to cause relocation overflow. This test should be built
with -buildmode=pie since that correctly generates PIC
with -pie.

Related issues are #21954 and #22126.

Updates #22459

Change-Id: Ib641440bc9f94ad2b97efcda14a4b482647be8f7
Reviewed-on: https://go-review.googlesource.com/73970
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Gbp-Pq: Name 0005-runtime-use-buildmode-pie-in-testCgoPprofPIE-instead.patch

8 years agocmd/dist: use -buildmode=pie for pie testing
Lynn Boger [Thu, 28 Sep 2017 14:26:39 +0000 (10:26 -0400)]
cmd/dist: use -buildmode=pie for pie testing

Some tests in misc/cgo/test are run with various options including
'-linkmode=external "-extldflags=-pie"'. On ppc64x passing -pie to
the external linker with code that was not compiled as position
independent is incorrect. This works by luck in many cases but is
not guaranteed to work. I suspect it is an issue on other targets
as well.

This will now run the tests using -buildmode=pie for the platforms
that support that buildmode option.

Fixes #21954

Change-Id: I25fc7573f2d3cb5b0d1c691a0ac91aef7715404f
Reviewed-on: https://go-review.googlesource.com/66870
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Gbp-Pq: Name 0004-cmd-dist-use-buildmode-pie-for-pie-testing.patch

8 years agoDo-not-use-SP-as-index-reg
Go Compiler Team [Mon, 30 Oct 2017 23:16:17 +0000 (23:16 +0000)]
Do-not-use-SP-as-index-reg

Gbp-Pq: Name 0003-Do-not-use-SP-as-index-reg.patch

8 years agoreproducible-BUILD_PATH_PREFIX_MAP
Go Compiler Team [Mon, 30 Oct 2017 23:16:17 +0000 (23:16 +0000)]
reproducible-BUILD_PATH_PREFIX_MAP

Gbp-Pq: Name 0002-reproducible-BUILD_PATH_PREFIX_MAP.patch

8 years agogolang-1.9 (1.9.2-3) unstable; urgency=medium
Michael Hudson-Doyle [Mon, 30 Oct 2017 23:16:17 +0000 (23:16 +0000)]
golang-1.9 (1.9.2-3) unstable; urgency=medium

  * Remove workaround for now fixed debhelper bug #879762
  * Backport three patches from upstream to fix ftbfs on ppc64el with new kernel.

[dgit import unpatched golang-1.9 1.9.2-3]

8 years agoImport golang-1.9_1.9.2-3.debian.tar.xz
Michael Hudson-Doyle [Mon, 30 Oct 2017 23:16:17 +0000 (23:16 +0000)]
Import golang-1.9_1.9.2-3.debian.tar.xz

[dgit import tarball golang-1.9 1.9.2-3 golang-1.9_1.9.2-3.debian.tar.xz]

8 years agoImport golang-1.9_1.9.2.orig.tar.gz
Michael Hudson-Doyle [Thu, 26 Oct 2017 00:46:40 +0000 (01:46 +0100)]
Import golang-1.9_1.9.2.orig.tar.gz

[dgit import orig golang-1.9_1.9.2.orig.tar.gz]