blob: 6113138c6821f49d50e1d82e886b7d51fe4084dd [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001Index: go/src/cmd/link/internal/ld/elf.go
2===================================================================
3--- go.orig/src/cmd/link/internal/ld/elf.go
4+++ go/src/cmd/link/internal/ld/elf.go
5@@ -827,7 +827,13 @@
6 // 32-bit architectures
7 case '5':
8 // we use EABI on both linux/arm and freebsd/arm.
9- if HEADTYPE == obj.Hlinux || HEADTYPE == obj.Hfreebsd {
10+ if HEADTYPE == obj.Hlinux {
11+ if Ctxt.Goarm == 7 {
12+ ehdr.flags = 0x5000402 // has entry point, Version5 EABI, hard float
13+ } else {
14+ ehdr.flags = 0x5000202 // has entry point, Version5 EABI, soft float
15+ }
16+ } else if HEADTYPE == obj.Hfreebsd {
17 // We set a value here that makes no indication of which
18 // float ABI the object uses, because this is information
19 // used by the dynamic linker to compare executables and