diff options
| author | Seiya Nuta <nuta@seiya.me> | 2019-06-17 02:07:20 +0000 |
|---|---|---|
| committer | Seiya Nuta <nuta@seiya.me> | 2019-06-17 02:07:20 +0000 |
| commit | 4f15732067602c38f5280899971bb24f43612dd4 (patch) | |
| tree | 3c1596f24f2e98caabe4c8c5eb07b3dcbb7cfe4b /lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp | |
| parent | 13de174b4c4847255f1d510dc6dafeb5294753ef (diff) | |
| download | bcm5719-llvm-4f15732067602c38f5280899971bb24f43612dd4.tar.gz bcm5719-llvm-4f15732067602c38f5280899971bb24f43612dd4.zip | |
[yaml2obj][MachO] Don't fill dummy data for virtual sections
Summary:
Currently, MachOWriter::writeSectionData writes dummy data (0xdeadbeef) to fill section data areas in the file even if the section is a virtual one. Since virtual sections don't occupy any space in the file, writing dummy data could results the "OS.tell() - fileStart <= Sec.offset" assertion failure.
This patch fixes the bug by simply not writing any dummy data for virtual sections.
Reviewers: beanz, jhenderson, rupprecht, alexshap
Reviewed By: alexshap
Subscribers: compnerd, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62991
llvm-svn: 363525
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp')
0 files changed, 0 insertions, 0 deletions

