From d3bcf91cf9ab3b0d2b47a08f62dbf90511b2328e Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 9 Mar 2024 01:22:31 +0300 Subject: Impl `--split` --- src/common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/common.h') 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; -- cgit v1.2.3