[all-commits] [llvm/llvm-project] 064db2: [Object][COFF] Fix section name parsing error when...
pzhengqc via All-commits
all-commits at lists.llvm.org
Thu Jun 9 12:58:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 064db243113ccac50ab3f8695f8f83a9e71efd3f
https://github.com/llvm/llvm-project/commit/064db243113ccac50ab3f8695f8f83a9e71efd3f
Author: Pengxuan Zheng <pzheng at quicinc.com>
Date: 2022-06-09 (Thu, 09 Jun 2022)
Changed paths:
M llvm/lib/Object/COFFObjectFile.cpp
A llvm/test/tools/llvm-objdump/COFF/Inputs/long-section-name.yaml
A llvm/test/tools/llvm-objdump/COFF/long-section-name.test
Log Message:
-----------
[Object][COFF] Fix section name parsing error when the name field is not null-padded
Some object files produced by Mirosoft tools contain sections whose name field
is not fully null-padded at the end. Microsoft's dumpbin is able to print the
section name correctly, but this causes parsing errors with LLVM tools.
So far, this issue only seems to happen when the section name is longer than 8
bytes. In this case, the section name field contains a slash (/) followed by the
offset into the string table, but the name field is not fully null-padded at the
end.
Reviewed By: mstorsjo
Differential Revision: https://reviews.llvm.org/D127369
More information about the All-commits
mailing list