mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-09-24 02:00:05 +00:00
implement /INFERASANLIBS
This commit is contained in:
@@ -974,6 +974,15 @@ lnk_include_symbol(LNK_Config *config, String8 name, LNK_Obj *obj)
|
||||
hash_table_push_string_raw(config->arena, config->include_symbol_ht, name, node);
|
||||
}
|
||||
|
||||
internal void
|
||||
lnk_whole_archive(LNK_Config *config, String8 lib_name)
|
||||
{
|
||||
String8Node value = { .string = lib_name };
|
||||
String8List value_strings = {0};
|
||||
str8_list_push_node(&value_strings, &value);
|
||||
lnk_apply_cmd_option_to_config(config, str8_lit("wholearchive"), value_strings, 0);
|
||||
}
|
||||
|
||||
internal void
|
||||
lnk_print_build_info()
|
||||
{
|
||||
@@ -1443,6 +1452,10 @@ lnk_apply_cmd_option_to_config(LNK_Config *config, String8 cmd_name, String8List
|
||||
}
|
||||
} break;
|
||||
|
||||
case LNK_CmdSwitch_InferAsanLibs: {
|
||||
lnk_cmd_switch_parse_flag(obj, cmd_switch, value_strings, &config->infer_asan_libs);
|
||||
} break;
|
||||
|
||||
case LNK_CmdSwitch_LargeAddressAware: {
|
||||
lnk_cmd_switch_set_flag_16(obj, cmd_switch, value_strings, &config->file_characteristics, PE_ImageFileCharacteristic_LARGE_ADDRESS_AWARE);
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user