1
0
mirror of https://github.com/golang/go synced 2024-10-04 23:21:20 -06:00
go/src/debug
Alex Brainman 315e5c99d8 debug/pe: truncate pe sections to their size in memory
Section.Data returns disk section data, but those are rounded up to
some predefined value. Processing these as is confuses dwarf parser
because of garbage at the end. Truncate Section.Data as per memory
section description.

Sometimes dwarf sections have memory section size of 0
(for pe object files). Keep those to their disk size.

Fixes #11608

Change-Id: I8de0a2271201a24aa9ac8dac44f1e9c8a9285183
Reviewed-on: https://go-review.googlesource.com/11950
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-07-10 03:33:38 +00:00
..
dwarf all: fix misprints in comments 2015-06-11 14:18:57 +00:00
elf debug/elf: change R_ARM_REL32 to R_ARM_ABS32 in applyRelocationsARM 2015-06-26 16:17:54 +00:00
gosym debug/gosym: avoid calling the shell in test 2015-06-05 14:06:13 +00:00
macho debug/macho, debug/pe: load DWARF line section and pass to dwarf.New 2015-03-10 02:32:31 +00:00
pe debug/pe: truncate pe sections to their size in memory 2015-07-10 03:33:38 +00:00
plan9obj