[all-commits] [llvm/llvm-project] 7a64e6: [dsymutil][DWARFv5] fix DW_FORM_addrx attribute of...
avl-llvm via All-commits
all-commits at lists.llvm.org
Fri Aug 26 05:27:14 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7a64e636af376b2201bc01badc67d57b6f7e2c0f
https://github.com/llvm/llvm-project/commit/7a64e636af376b2201bc01badc67d57b6f7e2c0f
Author: Alexey Lapshin <a.v.lapshin at mail.ru>
Date: 2022-08-26 (Fri, 26 Aug 2022)
Changed paths:
M llvm/lib/DWARFLinker/DWARFLinker.cpp
A llvm/test/tools/dsymutil/Inputs/private/tmp/dwarf5/dwarf5-addrx.o
A llvm/test/tools/dsymutil/Inputs/private/tmp/dwarf5/dwarf5-addrx.out
R llvm/test/tools/dsymutil/Inputs/private/tmp/dwarf5/dwarf5.o
R llvm/test/tools/dsymutil/Inputs/private/tmp/dwarf5/dwarf5.out
A llvm/test/tools/dsymutil/X86/dwarf5-addrx.test
R llvm/test/tools/dsymutil/X86/dwarf5.test
Log Message:
-----------
[dsymutil][DWARFv5] fix DW_FORM_addrx attribute offset calculation.
DWARFLinker::DIECloner::cloneAddressAttribute() contains call to
relocateIndexedAddr(StartOffset, EndOffset). StartOffset is
incorrectly calculated. Val.getRawUValue() is an index into the
.debug_addr table, so it should be multiplied
by Unit.getOrigUnit().getAddressByteSize().
Differential Revision: https://reviews.llvm.org/D132644
More information about the All-commits
mailing list