summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-03-09 01:22:31 +0300
committerOxore <oxore@protonmail.com>2024-03-09 01:22:31 +0300
commitd3bcf91cf9ab3b0d2b47a08f62dbf90511b2328e (patch)
tree882dfc9390ae1fe1511c52b0d53302063bfc79bf /src/common.h
parent9a70e2541db3499c5d33ae3b70984b3227d4ce38 (diff)
Impl `--split`
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index f94bb65..d4746d9 100644
--- a/src/common.h
+++ b/src/common.h
@@ -12,6 +12,16 @@ enum class BFDTarget {
kELF,
};
+enum class SplitPointType {
+ kLabel = 0,
+ kFunction,
+};
+
+struct SplitParams {
+ SplitPointType type{};
+ size_t alignment{};
+};
+
struct Settings {
bool raw_data_comment{};
bool labels{};
@@ -30,6 +40,8 @@ struct Settings {
bool symbols{};
BFDTarget bfd{};
const char *indent{"\t"};
+ const char *output_dir_path{};
+ SplitParams split{};
};
using RefKindMask = unsigned;