forked from OSchip/llvm-project
Add -no-{export-dynamic,fatal-warnings}.
llvm-svn: 292048
This commit is contained in:
parent
284ac3c932
commit
ea3f6c3a7e
|
@ -484,8 +484,10 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) {
|
|||
Config->DisableVerify = Args.hasArg(OPT_disable_verify);
|
||||
Config->EhFrameHdr = Args.hasArg(OPT_eh_frame_hdr);
|
||||
Config->EnableNewDtags = !Args.hasArg(OPT_disable_new_dtags);
|
||||
Config->ExportDynamic = Args.hasArg(OPT_export_dynamic);
|
||||
Config->FatalWarnings = Args.hasArg(OPT_fatal_warnings);
|
||||
Config->ExportDynamic =
|
||||
getArg(Args, OPT_export_dynamic, OPT_no_export_dynamic, false);
|
||||
Config->FatalWarnings =
|
||||
getArg(Args, OPT_fatal_warnings, OPT_no_fatal_warnings, false);
|
||||
Config->GcSections = getArg(Args, OPT_gc_sections, OPT_no_gc_sections, false);
|
||||
Config->GdbIndex = Args.hasArg(OPT_gdb_index);
|
||||
Config->ICF = Args.hasArg(OPT_icf);
|
||||
|
|
|
@ -135,6 +135,9 @@ def no_color_diagnostics: F<"no-color-diagnostics">,
|
|||
def no_demangle: F<"no-demangle">,
|
||||
HelpText<"Do not demangle symbol names">;
|
||||
|
||||
def no_export_dynamic: F<"no-export-dynamic">;
|
||||
def no_fatal_warnings: F<"no-fatal-warnings">;
|
||||
|
||||
def no_gc_sections: F<"no-gc-sections">,
|
||||
HelpText<"Disable garbage collection of unused sections">;
|
||||
|
||||
|
@ -336,7 +339,6 @@ def no_allow_shlib_undefined: F<"no-allow-shlib-undefined">;
|
|||
def no_copy_dt_needed_entries: F<"no-copy-dt-needed-entries">,
|
||||
Alias<no_add_needed>;
|
||||
def no_dynamic_linker: F<"no-dynamic-linker">;
|
||||
def no_fatal_warnings: F<"no-fatal-warnings">;
|
||||
def no_mmap_output_file: F<"no-mmap-output-file">;
|
||||
def no_warn_common: F<"no-warn-common">;
|
||||
def no_warn_mismatch: F<"no-warn-mismatch">;
|
||||
|
|
Loading…
Reference in New Issue