1
0
mirror of https://github.com/golang/go synced 2024-11-13 20:00:23 -07:00
go/src/cmd/link
Ian Lance Taylor cd5c10f040 cmd/link: set correct alignment of ELF note section
Otherwise the default computation in symalign kicked in, setting the
alignment to be too high. This didn't matter with GNU ld, which put
each loadable note into a separate PT_NOTE segment, but it did matter
with gold which accumulated them all into a single PT_NOTE segment,
respecting the requested alignment. In the single PT_NOTE segment
generated by gold, the incorrect section alignment made the notes
unreadable.

Fixes #21564

Change-Id: I15eb408bb04a2566c9fdfb6828e14188d9ef2280
Reviewed-on: https://go-review.googlesource.com/58290
Reviewed-by: Russ Cox <rsc@golang.org>
2017-08-24 16:54:18 +00:00
..
internal cmd/link: set correct alignment of ELF note section 2017-08-24 16:54:18 +00:00
doc.go cmd/link: don't suggest using nm to find -X name 2017-01-02 17:56:17 +00:00
dwarf_test.go cmd/link: skip TestDWARF when cgo is disabled 2017-03-30 22:32:33 +00:00
link_test.go cmd/link: handle long symbol names 2016-04-13 20:31:43 +00:00
linkbig_test.go cmd/internal/objabi: extract shared functionality from obj 2017-04-19 00:00:09 +00:00
main.go cmd/internal/objabi: extract shared functionality from obj 2017-04-19 00:00:09 +00:00