diff options
author | Etienne Pierre-doray <etiennep@chromium.org> | 2018-10-05 20:15:13 +0000 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2021-07-25 20:38:15 -0700 |
commit | e53806a25b988acd67fe57b42eaa611f2ba96a75 (patch) | |
tree | e5782ba2d6d7b9962d783b0740f97d4492865a28 /abs32_utils.cc | |
parent | 6b37e0db57c48727d81069bc6c0346f0ad688ec0 (diff) | |
download | zucchini-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.cc | 3 |
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 (;;) { |