diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-07 22:40:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-10 15:51:55 +0000 |
commit | 760e81678cec80dcdaab12c2a0a0148e3e0ba275 (patch) | |
tree | 6b587a2e9bd13c68788c1ff20df54db7e2f38c53 /meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch | |
parent | 0efe58df2e5389f86dfbd53f90afc8f2970def7d (diff) | |
download | poky-760e81678cec80dcdaab12c2a0a0148e3e0ba275.tar.gz |
go: Add recipes for golang compilers and tools
* This is converging the recipes for go from
meta-virtualization and oe-meta-go
* Add recipes for go 1.7
* go.bbclass is added to ease out writing
recipes for go packages
* go-examples: Add an example, helloworld written in go
This should serve as temlate for writing go recipes
* Disable for musl, at least for now
* Disable for x32/ppc32 which is not supported
(From OE-Core rev: 78615e9260fb5d6569de4883521b049717fa4340)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch')
-rw-r--r-- | meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch b/meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch new file mode 100644 index 0000000000..1e3a16b319 --- /dev/null +++ b/meta/recipes-devtools/go/go-1.6/armhf-elf-header.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Encode arm EABI ( hard/soft ) calling convention in ELF header | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Upstream-Status: Pending | ||
5 | Index: go/src/cmd/link/internal/ld/elf.go | ||
6 | =================================================================== | ||
7 | --- go.orig/src/cmd/link/internal/ld/elf.go | ||
8 | +++ go/src/cmd/link/internal/ld/elf.go | ||
9 | @@ -827,7 +827,13 @@ | ||
10 | // 32-bit architectures | ||
11 | case '5': | ||
12 | // we use EABI on both linux/arm and freebsd/arm. | ||
13 | - if HEADTYPE == obj.Hlinux || HEADTYPE == obj.Hfreebsd { | ||
14 | + if HEADTYPE == obj.Hlinux { | ||
15 | + if Ctxt.Goarm == 7 { | ||
16 | + ehdr.flags = 0x5000402 // has entry point, Version5 EABI, hard float | ||
17 | + } else { | ||
18 | + ehdr.flags = 0x5000202 // has entry point, Version5 EABI, soft float | ||
19 | + } | ||
20 | + } else if HEADTYPE == obj.Hfreebsd { | ||
21 | // We set a value here that makes no indication of which | ||
22 | // float ABI the object uses, because this is information | ||
23 | // used by the dynamic linker to compare executables and | ||