aboutsummaryrefslogtreecommitdiff
path: root/abs32_utils.cc
diff options
context:
space:
mode:
authorEtienne Pierre-doray <etiennep@chromium.org>2018-10-05 20:15:13 +0000
committerCopybara-Service <copybara-worker@google.com>2021-07-25 20:38:15 -0700
commite53806a25b988acd67fe57b42eaa611f2ba96a75 (patch)
treee5782ba2d6d7b9962d783b0740f97d4492865a28 /abs32_utils.cc
parent6b37e0db57c48727d81069bc6c0346f0ad688ec0 (diff)
downloadzucchini-e53806a25b988acd67fe57b42eaa611f2ba96a75.tar.gz
[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 <etiennep@chromium.org> Reviewed-by: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#597264} NOKEYCHECK=True GitOrigin-RevId: af95efbfe9d3f3ca90c105f7d1c9c13e43fcde8c
Diffstat (limited to 'abs32_utils.cc')
-rw-r--r--abs32_utils.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/abs32_utils.cc b/abs32_utils.cc
index b3fd9f4..bf6526b 100644
--- a/abs32_utils.cc
+++ b/abs32_utils.cc
@@ -167,12 +167,11 @@ void Abs32WriterWin32::PutNext(Reference ref) {
/******** Exported Functions ********/
-size_t RemoveOverlappingAbs32Locations(Bitness bitness,
+size_t RemoveOverlappingAbs32Locations(uint32_t width,
std::vector<offset_t>* locations) {
if (locations->size() <= 1)
return 0;
- uint32_t width = WidthOf(bitness);
auto slow = locations->begin();
auto fast = locations->begin() + 1;
for (;;) {