diff options
Diffstat (limited to 'meta/recipes-devtools/go/go-1.4/0001-cmd-ld-set-alignment-for-the-.rel.plt-section-on-32-.patch')
-rw-r--r-- | meta/recipes-devtools/go/go-1.4/0001-cmd-ld-set-alignment-for-the-.rel.plt-section-on-32-.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-1.4/0001-cmd-ld-set-alignment-for-the-.rel.plt-section-on-32-.patch b/meta/recipes-devtools/go/go-1.4/0001-cmd-ld-set-alignment-for-the-.rel.plt-section-on-32-.patch new file mode 100644 index 0000000000..f2adc200b1 --- /dev/null +++ b/meta/recipes-devtools/go/go-1.4/0001-cmd-ld-set-alignment-for-the-.rel.plt-section-on-32-.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 855145d5c03c4b4faf60736c38d7a299c682af4a Mon Sep 17 00:00:00 2001 | ||
2 | From: Shenghou Ma <minux@golang.org> | ||
3 | Date: Sat, 7 Feb 2015 14:06:02 -0500 | ||
4 | Subject: [PATCH] cmd/ld: set alignment for the .rel.plt section on 32-bit | ||
5 | architectures | ||
6 | |||
7 | Fixes #9802. | ||
8 | |||
9 | Change-Id: I22c52a37bdb23a14cc4615c9519431bb14ca81ca | ||
10 | Reviewed-on: https://go-review.googlesource.com/4170 | ||
11 | Reviewed-by: Ian Lance Taylor <iant@golang.org> | ||
12 | --- | ||
13 | Upstream-Status: Backport | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | |||
16 | src/cmd/ld/elf.c | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/src/cmd/ld/elf.c b/src/cmd/ld/elf.c | ||
20 | index 12ced98..97ed4bd 100644 | ||
21 | --- a/src/cmd/ld/elf.c | ||
22 | +++ b/src/cmd/ld/elf.c | ||
23 | @@ -1363,6 +1363,7 @@ asmbelf(vlong symo) | ||
24 | sh->type = SHT_REL; | ||
25 | sh->flags = SHF_ALLOC; | ||
26 | sh->entsize = ELF32RELSIZE; | ||
27 | + sh->addralign = 4; | ||
28 | sh->link = elfshname(".dynsym")->shnum; | ||
29 | shsym(sh, linklookup(ctxt, ".rel.plt", 0)); | ||
30 | |||
31 | -- | ||
32 | 1.9.1 | ||
33 | |||