aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Pierre-doray <etiennep@chromium.org>2018-07-24 15:42:33 +0000
committerCopybara-Service <copybara-worker@google.com>2021-07-25 20:32:32 -0700
commitae27d8ed0116c53fb530b141e96df91e90c3671c (patch)
tree90025181c56268a57f60e97e84d4fd2b59d2792f
parentd758cb7bfc3f9394f8e96a8e14d01af7b0c388b4 (diff)
downloadzucchini-ae27d8ed0116c53fb530b141e96df91e90c3671c.tar.gz
[zucchini]: Rename reloc_utils for reloc_win32.
Elf reloc code will go in reloc_elf. Change-Id: Ibc93aef1cbf03a1df7b29ddf088498a70c4d3722 Reviewed-on: https://chromium-review.googlesource.com/1145688 Reviewed-by: Samuel Huang <huangs@chromium.org> Commit-Queue: Samuel Huang <huangs@chromium.org> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org> Cr-Commit-Position: refs/heads/master@{#577557} NOKEYCHECK=True GitOrigin-RevId: efbbccf72cbd1778419f7e8f7c9acfd16bbb3436
-rw-r--r--BUILD.gn6
-rw-r--r--disassembler_win32.cc2
-rw-r--r--reloc_win32.cc (renamed from reloc_utils.cc)2
-rw-r--r--reloc_win32.h (renamed from reloc_utils.h)6
-rw-r--r--reloc_win32_unittest.cc (renamed from reloc_utils_unittest.cc)2
5 files changed, 9 insertions, 9 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 77dc810..c871d9d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -78,8 +78,8 @@ static_library("zucchini_lib") {
"rel32_finder.h",
"rel32_utils.cc",
"rel32_utils.h",
- "reloc_utils.cc",
- "reloc_utils.h",
+ "reloc_win32.cc",
+ "reloc_win32.h",
"suffix_array.h",
"target_pool.cc",
"target_pool.h",
@@ -169,7 +169,7 @@ test("zucchini_unittests") {
"reference_set_unittest.cc",
"rel32_finder_unittest.cc",
"rel32_utils_unittest.cc",
- "reloc_utils_unittest.cc",
+ "reloc_win32_unittest.cc",
"suffix_array_unittest.cc",
"target_pool_unittest.cc",
"targets_affinity_unittest.cc",
diff --git a/disassembler_win32.cc b/disassembler_win32.cc
index a932bea..7eba0f4 100644
--- a/disassembler_win32.cc
+++ b/disassembler_win32.cc
@@ -15,7 +15,7 @@
#include "components/zucchini/buffer_source.h"
#include "components/zucchini/rel32_finder.h"
#include "components/zucchini/rel32_utils.h"
-#include "components/zucchini/reloc_utils.h"
+#include "components/zucchini/reloc_win32.h"
namespace zucchini {
diff --git a/reloc_utils.cc b/reloc_win32.cc
index d6f69b9..2f993ad 100644
--- a/reloc_utils.cc
+++ b/reloc_win32.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/zucchini/reloc_utils.h"
+#include "components/zucchini/reloc_win32.h"
#include <algorithm>
#include <tuple>
diff --git a/reloc_utils.h b/reloc_win32.h
index aac1efb..207c6e7 100644
--- a/reloc_utils.h
+++ b/reloc_win32.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_ZUCCHINI_RELOC_UTILS_H_
-#define COMPONENTS_ZUCCHINI_RELOC_UTILS_H_
+#ifndef COMPONENTS_ZUCCHINI_RELOC_WIN32_H_
+#define COMPONENTS_ZUCCHINI_RELOC_WIN32_H_
#include <stddef.h>
#include <stdint.h>
@@ -137,4 +137,4 @@ class RelocWriterWin32 : public ReferenceWriter {
} // namespace zucchini
-#endif // COMPONENTS_ZUCCHINI_RELOC_UTILS_H_
+#endif // COMPONENTS_ZUCCHINI_RELOC_WIN32_H_
diff --git a/reloc_utils_unittest.cc b/reloc_win32_unittest.cc
index 65acf5b..ca9bbe6 100644
--- a/reloc_utils_unittest.cc
+++ b/reloc_win32_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/zucchini/reloc_utils.h"
+#include "components/zucchini/reloc_win32.h"
#include <stdint.h>