1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:44:50 -07:00

cmd/ld: set alignment for the .rel.plt section on 32-bit architectures

Fixes #9802.

Change-Id: I22c52a37bdb23a14cc4615c9519431bb14ca81ca
Reviewed-on: https://go-review.googlesource.com/4170
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Shenghou Ma 2015-02-07 14:06:02 -05:00 committed by Minux Ma
parent 5f1efe738b
commit 855145d5c0

View File

@ -1363,6 +1363,7 @@ asmbelf(vlong symo)
sh->type = SHT_REL;
sh->flags = SHF_ALLOC;
sh->entsize = ELF32RELSIZE;
sh->addralign = 4;
sh->link = elfshname(".dynsym")->shnum;
shsym(sh, linklookup(ctxt, ".rel.plt", 0));