From 378221bd6e73bdc21884fed9e32f53e6672ca0cd Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Tue, 22 Mar 2022 08:49:52 -0400 Subject: debug/pe: add APIs for reading section def aux info Add hooks to support reading of section definition symbol aux data (including COMDAT information) from the aux symbols associated with section definition symbols. The COFF symbol array made available by "pe.File" includes entries for aux symbols, but doesn't expose their structure (since it varies depending on the type of aux symbol). This patch adds a function for returning a specific class of aux symbol ("type 5") that immediately follows a COFF symbol corresponding to a section definition. Updates #35006. Updates #51868. Change-Id: I21fcc057150f7a3c64f01a5961aabca0fa43399e Reviewed-on: https://go-review.googlesource.com/c/go/+/394534 Reviewed-by: Alex Brainman Reviewed-by: Cherry Mui Trust: Alex Brainman Trust: Than McIntosh Run-TryBot: Than McIntosh TryBot-Result: Gopher Robot --- .../pe/testdata/llvm-mingw-20211002-msvcrt-x86_64-crt2 | Bin 0 -> 24046 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/debug/pe/testdata/llvm-mingw-20211002-msvcrt-x86_64-crt2 (limited to 'src/debug/pe/testdata') diff --git a/src/debug/pe/testdata/llvm-mingw-20211002-msvcrt-x86_64-crt2 b/src/debug/pe/testdata/llvm-mingw-20211002-msvcrt-x86_64-crt2 new file mode 100644 index 0000000000..5576c1c49e Binary files /dev/null and b/src/debug/pe/testdata/llvm-mingw-20211002-msvcrt-x86_64-crt2 differ -- cgit v1.3