[Pkg-golang-commits] [golang] 01/27: - d/patches/armhf-elf-header.patch (see upstream bug https://github.com/golang/go/issues/7094)

Michael Hudson-Doyle mwhudson-guest at moszumanska.debian.org
Tue Mar 1 02:57:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

mwhudson-guest pushed a commit to branch gbp
in repository golang.

commit 224fe14ce964e58e76eeff796060289d26fb0a93
Author: Michael Hudson-Doyle <michael.hudson at canonical.com>
Date:   Fri Feb 12 10:08:12 2016 +1300

        - d/patches/armhf-elf-header.patch (see upstream bug
          https://github.com/golang/go/issues/7094)
---
 debian/patches/armhf-elf-header.patch | 20 ++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/armhf-elf-header.patch b/debian/patches/armhf-elf-header.patch
new file mode 100644
index 0000000..1bb19f7
--- /dev/null
+++ b/debian/patches/armhf-elf-header.patch
@@ -0,0 +1,20 @@
+Description: Use correct ELF header for armhf binaries.
+ Based on Adam Conrad's 016-armhf-elf-header.patch. As Ubuntu only
+ builds for armhf, we don't need the conditionality in that patch. A
+ real fix is more complex and should be attempted for Go 1.6.
+Forwarded: not-needed
+Bug: https://github.com/golang/go/issues/7094
+Author: Michael Hudson-Doyle <michael.hudson at canonical.com>
+Last-Update: 2015-07-24
+
+--- a/src/cmd/link/internal/ld/elf.go
++++ b/src/cmd/link/internal/ld/elf.go
+@@ -781,7 +781,7 @@
+ 	case '5':
+ 		// we use EABI on both linux/arm and freebsd/arm.
+ 		if HEADTYPE == obj.Hlinux || HEADTYPE == obj.Hfreebsd {
+-			ehdr.flags = 0x5000002 // has entry point, Version5 EABI
++			ehdr.flags = 0x5000402 // has entry point, Version5 EABI, hard-float ABI
+ 		}
+ 		fallthrough
+ 
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..129ca03 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+armhf-elf-header.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang.git



More information about the pkg-golang-commits mailing list