aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorMeng Zhuo <mzh@golangcn.org>2022-03-18 17:36:52 +0800
committerCherry Mui <cherryyz@google.com>2022-03-21 18:29:06 +0000
commitb9d6cea5016835ca5521469631e55f5c489aa0e7 (patch)
tree303b5549e1bd7765d47f2e4bf2bafc1139a2089f /src/make.bash
parentb810a74da3c4de519433208163ea257ab33b2d24 (diff)
downloadgo-b9d6cea5016835ca5521469631e55f5c489aa0e7.tar.xz
cmd/link: set alignment of compressed section based on arch
The ELF compression header(Chdr) has Addralign field that is set to the alignment of the uncompressed section which makes section able to have a different alignment than the decompressed section. However `file` and other tools require both Chdr.Addralign and Addralign to be equal. Ref https://sourceware.org/bugzilla/show_bug.cgi?id=23919 Related #42136 Fixes #51769 Change-Id: I3cf99dbd2359932576420a3c0d342c7e91b99227 Reviewed-on: https://go-review.googlesource.com/c/go/+/393916 Trust: mzh <mzh@golangcn.org> Reviewed-by: Alessandro Arzilli <alessandro.arzilli@gmail.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'src/make.bash')
0 files changed, 0 insertions, 0 deletions