Add -reloc-mode:<string>

This commit is contained in:
gingerBill
2022-02-20 14:48:12 +00:00
parent 0fa487f468
commit 3e5c60f746
3 changed files with 49 additions and 0 deletions
+9
View File
@@ -189,6 +189,13 @@ enum ErrorPosStyle {
ErrorPosStyle_COUNT
};
enum RelocMode {
RelocMode_Default,
RelocMode_Static,
RelocMode_PIC,
RelocMode_DynamicNoPIC,
};
// This stores the information for the specify architecture of this build
struct BuildContext {
// Constants
@@ -270,6 +277,8 @@ struct BuildContext {
bool copy_file_contents;
RelocMode reloc_mode;
u32 cmd_doc_flags;
Array<String> extra_packages;