[Zucchini]: Fix discrepancy in reference width for Elf reloc and abs32.
Adds kVAWidth to Elf32Traits and use it in
DisassemblerElfIntel::MakeReferenceGroups as the width of
kReloc and kAbs32 reference types.
Bug: 892359
Change-Id: I28930b8978393c16ee29051c48496e4f696a3fcd
Reviewed-on: https://chromium-review.googlesource.com/c/1264816
Commit-Queue: Etienne Pierre-Doray <[email protected]>
Reviewed-by: Samuel Huang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#597264}
diff --git a/components/zucchini/abs32_utils.h b/components/zucchini/abs32_utils.h
index b1d3ae0..a97aa38 100644
--- a/components/zucchini/abs32_utils.h
+++ b/components/zucchini/abs32_utils.h
@@ -127,9 +127,8 @@
};
// Given a sorted list of abs32 |locations|, removes all elements whose body
-// overlaps with the body of a previous element (|bitness| determines length).
-// Returns the number of elements removed.
-size_t RemoveOverlappingAbs32Locations(Bitness bitness,
+// (with |width| given) overlaps with the body of a previous element.
+size_t RemoveOverlappingAbs32Locations(uint32_t width,
std::vector<offset_t>* locations);
} // namespace zucchini