<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">That fixed it. Thanks!<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 31, 2018, at 4:20 PM, Rui Ueyama <<a href="mailto:ruiu@google.com" class="">ruiu@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">That might have been caused by a bug that was fixed in <a href="https://reviews.llvm.org/rL333686" class="">https://reviews.llvm.org/rL333686</a>. Could you try again?</div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, May 31, 2018 at 12:54 PM David Zarzycki <<a href="mailto:dave@znu.io" class="">dave@znu.io</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">I’m fairly confident about this. This is a “stage 2” failure if I’m using LLVM terminology correctly. After this change, LLVM+clang+lld cannot build *itself* with -DBUILD_SHARED_LIBS=TRUE because of this change.<div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On May 31, 2018, at 3:45 PM, Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank" class="">ruiu@google.com</a>> wrote:</div><br class="m_1320281591547701165Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">This is the error message, which doesn't seems like related to this patch. Are you sure that this patch broke your build?</div><div class=""><br class=""></div><div class="">/usr/local/bin/ld.lld: error: cannot open /tmp/temp_lc/t/lib: Is a directory</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, May 31, 2018 at 12:30 PM David Zarzycki <<a href="mailto:dave@znu.io" target="_blank" class="">dave@znu.io</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rui,<br class="">
<br class="">
FYI – This broke building LLVM with `-DBUILD_SHARED_LIBS=TRUE`. Here is the build output:<br class="">
<br class="">
FAILED: lib/libLLVMMCJIT.so.7svn <br class="">
: && /usr/local/bin/clang++ -fPIC -Werror=switch -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O2  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,-O3 -Wl,--gc-sections -shared -Wl,-soname,libLLVMMCJIT.so.7 -o lib/libLLVMMCJIT.so.7svn lib/ExecutionEngine/MCJIT/CMakeFiles/LLVMMCJIT.dir/MCJIT.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMExecutionEngine.so.7svn lib/libLLVMObject.so.7svn lib/libLLVMRuntimeDyld.so.7svn lib/libLLVMSupport.so.7svn lib/libLLVMTarget.so.7svn lib/libLLVMCore.so.7svn -Wl,-rpath-link,/tmp/temp_lc/t/lib && :<br class="">
/usr/local/bin/ld.lld: error: cannot open /tmp/temp_lc/t/lib: Is a directory<br class="">
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)<br class="">
[95+1389] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o<br class="">
FAILED: lib/libLLVMOrcJIT.so.7svn <br class="">
: && /usr/local/bin/clang++ -fPIC -Werror=switch -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O2  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,-O3 -Wl,--gc-sections -shared -Wl,-soname,libLLVMOrcJIT.so.7 -o lib/libLLVMOrcJIT.so.7svn lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Core.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ExecutionUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IndirectionUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IRCompileLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IRTransformLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Legacy.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Layer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/NullResolver.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ObjectTransformLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/OrcABISupport.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/OrcCBindings.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/OrcError.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/OrcMCJITReplacement.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/RPCUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/RTDyldObjectLinkingLayer.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMExecutionEngine.so.7svn lib/libLLVMObject.so.7svn lib/libLLVMRuntimeDyld.so.7svn lib/libLLVMSupport.so.7svn lib/libLLVMTransformUtils.so.7svn lib/libLLVMCore.so.7svn -Wl,-rpath-link,/tmp/temp_lc/t/lib && :<br class="">
/usr/local/bin/ld.lld: error: cannot open /tmp/temp_lc/t/lib: Is a directory<br class="">
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)<br class="">
[95+1372] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o<br class="">
FAILED: lib/libLLVMInterpreter.so.7svn <br class="">
: && /usr/local/bin/clang++ -fPIC -Werror=switch -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O2  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,-O3 -Wl,--gc-sections -shared -Wl,-soname,libLLVMInterpreter.so.7 -o lib/libLLVMInterpreter.so.7svn lib/ExecutionEngine/Interpreter/CMakeFiles/LLVMInterpreter.dir/Execution.cpp.o lib/ExecutionEngine/Interpreter/CMakeFiles/LLVMInterpreter.dir/ExternalFunctions.cpp.o lib/ExecutionEngine/Interpreter/CMakeFiles/LLVMInterpreter.dir/Interpreter.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMCodeGen.so.7svn lib/libLLVMExecutionEngine.so.7svn lib/libLLVMSupport.so.7svn lib/libLLVMCore.so.7svn lib/libLLVMRuntimeDyld.so.7svn -Wl,-rpath-link,/tmp/temp_lc/t/lib && :<br class="">
/usr/local/bin/ld.lld: error: cannot open /tmp/temp_lc/t/lib: Is a directory<br class="">
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)<br class="">
[28+28] Linking CXX executable bin/llvm-ar<br class="">
FAILED: bin/llvm-rtdyld <br class="">
: && /usr/local/bin/clang++  -Werror=switch -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O2  -ljemalloc -stdlib=libc++ -fuse-ld=lld -Wl,--color-diagnostics -Wl,-allow-shlib-undefined     -Wl,-O3 -Wl,--gc-sections tools/llvm-rtdyld/CMakeFiles/llvm-rtdyld.dir/llvm-rtdyld.cpp.o  -o bin/llvm-rtdyld  -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMX86CodeGen.so.7svn lib/libLLVMX86AsmParser.so.7svn lib/libLLVMX86AsmPrinter.so.7svn lib/libLLVMX86Desc.so.7svn lib/libLLVMX86Disassembler.so.7svn lib/libLLVMX86Info.so.7svn lib/libLLVMX86Utils.so.7svn lib/libLLVMAArch64CodeGen.so.7svn lib/libLLVMAArch64AsmParser.so.7svn lib/libLLVMAArch64AsmPrinter.so.7svn lib/libLLVMAArch64Desc.so.7svn lib/libLLVMAArch64Disassembler.so.7svn lib/libLLVMAArch64Info.so.7svn lib/libLLVMAArch64Utils.so.7svn lib/libLLVMPowerPCCodeGen.so.7svn lib/libLLVMPowerPCAsmParser.so.7svn lib/libLLVMPowerPCAsmPrinter.so.7svn lib/libLLVMPowerPCDesc.so.7svn lib/libLLVMPowerPCDisassembler.so.7svn lib/libLLVMPowerPCInfo.so.7svn lib/libLLVMDebugInfoDWARF.so.7svn lib/libLLVMExecutionEngine.so.7svn lib/libLLVMMC.so.7svn lib/libLLVMObject.so.7svn lib/libLLVMRuntimeDyld.so.7svn lib/libLLVMSupport.so.7svn -lpthread -Wl,-rpath-link,/tmp/temp_lc/t/lib && :<br class="">
/usr/local/bin/ld.lld: error: cannot open /tmp/temp_lc/t/lib: Is a directory<br class="">
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)<br class="">
[1+12] Linking CXX shared module lib/BugpointPasses.so<br class="">
ninja: build stopped: cannot make progress due to previous errors.<br class="">
<br class="">
<br class="">
> On May 30, 2018, at 5:25 PM, Rui Ueyama via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="">llvm-commits@lists.llvm.org</a>> wrote:<br class="">
> <br class="">
> Author: ruiu<br class="">
> Date: Wed May 30 14:25:53 2018<br class="">
> New Revision: 333596<br class="">
> <br class="">
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=333596&view=rev" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project?rev=333596&view=rev</a><br class="">
> Log:<br class="">
> Simplify `ld.lld --help` message.<br class="">
> <br class="">
> Previously, we printed out two lines of help messages for `--foo bar`<br class="">
> and `--foo=bar` like this:<br class="">
> <br class="">
>  --soname=<value>        Set DT_SONAME<br class="">
>  --soname <value>        Set DT_SONAME<br class="">
>  --sort-section=<value>  Specifies sections sorting rule when linkerscript is used<br class="">
>  --sort-section <value>  Specifies sections sorting rule when linkerscript is used<br class="">
> <br class="">
> This change eliminates duplicate lines that doesn't contain `=` for such<br class="">
> options like this.<br class="">
> <br class="">
>  --soname=<value>        Set DT_SONAME<br class="">
>  --sort-section=<value>  Specifies sections sorting rule when linkerscript is used<br class="">
> <br class="">
> Differential Revision: <a href="https://reviews.llvm.org/D47558" rel="noreferrer" target="_blank" class="">https://reviews.llvm.org/D47558</a><br class="">
> <br class="">
> Modified:<br class="">
>    lld/trunk/ELF/Options.td<br class="">
> <br class="">
> Modified: lld/trunk/ELF/Options.td<br class="">
> URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=333596&r1=333595&r2=333596&view=diff" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=333596&r1=333595&r2=333596&view=diff</a><br class="">
> ==============================================================================<br class="">
> --- lld/trunk/ELF/Options.td (original)<br class="">
> +++ lld/trunk/ELF/Options.td Wed May 30 14:25:53 2018<br class="">
> @@ -5,9 +5,10 @@ include "llvm/Option/OptParser.td"<br class="">
> class F<string name>: Flag<["--", "-"], name>;<br class="">
> class J<string name>: Joined<["--", "-"], name>;<br class="">
> <br class="">
> -multiclass Eq<string name> {<br class="">
> +multiclass Eq<string name, string help> {<br class="">
>   def NAME: Separate<["--", "-"], name>;<br class="">
> -  def NAME # _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>;<br class="">
> +  def NAME # _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>,<br class="">
> +    HelpText<help>;<br class="">
> }<br class="">
> <br class="">
> multiclass B<string name, string help1, string help2> {<br class="">
> @@ -15,8 +16,7 @@ multiclass B<string name, string help1,<br class="">
>   def no_ # NAME: Flag<["--", "-"], "no-" # name>, HelpText<help2>;<br class="">
> }<br class="">
> <br class="">
> -defm auxiliary: Eq<"auxiliary">,<br class="">
> -  HelpText<"Set DT_AUXILIARY field to the specified name">;<br class="">
> +defm auxiliary: Eq<"auxiliary", "Set DT_AUXILIARY field to the specified name">;<br class="">
> <br class="">
> def Bsymbolic: F<"Bsymbolic">, HelpText<"Bind defined symbols locally">;<br class="">
> <br class="">
> @@ -35,24 +35,21 @@ defm check_sections : B<"check-sections"<br class="">
>     "Check section addresses for overlaps",<br class="">
>     "Do not check section addresses for overlaps">;<br class="">
> <br class="">
> -defm compress_debug_sections : Eq<"compress-debug-sections">,<br class="">
> -  HelpText<"Compress DWARF debug sections">;<br class="">
> +defm compress_debug_sections:<br class="">
> +  Eq<"compress-debug-sections", "Compress DWARF debug sections">;<br class="">
> <br class="">
> -defm defsym: Eq<"defsym">, HelpText<"Define a symbol alias">;<br class="">
> +defm defsym: Eq<"defsym", "Define a symbol alias">;<br class="">
> <br class="">
> -defm library_path: Eq<"library-path">,<br class="">
> -  HelpText<"Add a directory to the library search path">, MetaVarName<"<dir>">;<br class="">
> +defm library_path:<br class="">
> +  Eq<"library-path", "Add a directory to the library search path">, MetaVarName<"<dir>">;<br class="">
> <br class="">
> def O: JoinedOrSeparate<["-"], "O">, HelpText<"Optimize output file size">;<br class="">
> <br class="">
> -defm Tbss: Eq<"Tbss">,<br class="">
> -  HelpText<"Same as --section-start with .bss as the sectionname">;<br class="">
> +defm Tbss: Eq<"Tbss", "Same as --section-start with .bss as the sectionname">;<br class="">
> <br class="">
> -defm Tdata: Eq<"Tdata">,<br class="">
> -  HelpText<"Same as --section-start with .data as the sectionname">;<br class="">
> +defm Tdata: Eq<"Tdata", "Same as --section-start with .data as the sectionname">;<br class="">
> <br class="">
> -defm Ttext: Eq<"Ttext">,<br class="">
> -  HelpText<"Same as --section-start with .text as the sectionname">;<br class="">
> +defm Ttext: Eq<"Ttext", "Same as --section-start with .text as the sectionname">;<br class="">
> <br class="">
> defm allow_multiple_definition: B<"allow-multiple-definition",<br class="">
>     "Allow multiple definitions",<br class="">
> @@ -66,11 +63,11 @@ defm as_needed: B<"as-needed",<br class="">
>     "Only set DT_NEEDED for shared libraries if used",<br class="">
>     "Always set DT_NEEDED for shared libraries">;<br class="">
> <br class="">
> -defm call_graph_ordering_file: Eq<"call-graph-ordering-file">,<br class="">
> -  HelpText<"Layout sections to optimize the given callgraph">;<br class="">
> +defm call_graph_ordering_file:<br class="">
> +  Eq<"call-graph-ordering-file", "Layout sections to optimize the given callgraph">;<br class="">
> <br class="">
> // -chroot doesn't have a help text because it is an internal option.<br class="">
> -defm chroot: Eq<"chroot">;<br class="">
> +def chroot: Separate<["--", "-"], "chroot">;<br class="">
> <br class="">
> def color_diagnostics: F<"color-diagnostics">,<br class="">
>   HelpText<"Use colors in diagnostics">;<br class="">
> @@ -101,11 +98,9 @@ def discard_locals: F<"discard-locals">,<br class="">
> def discard_none: F<"discard-none">,<br class="">
>   HelpText<"Keep all symbols in the symbol table">;<br class="">
> <br class="">
> -defm dynamic_linker: Eq<"dynamic-linker">,<br class="">
> -  HelpText<"Which dynamic linker to use">;<br class="">
> +defm dynamic_linker: Eq<"dynamic-linker", "Which dynamic linker to use">;<br class="">
> <br class="">
> -defm dynamic_list: Eq<"dynamic-list">,<br class="">
> -  HelpText<"Read a list of dynamic symbols">;<br class="">
> +defm dynamic_list: Eq<"dynamic-list", "Read a list of dynamic symbols">;<br class="">
> <br class="">
> defm eh_frame_hdr: B<"eh-frame-hdr",<br class="">
>     "Request creation of .eh_frame_hdr section and PT_GNU_EH_FRAME segment header",<br class="">
> @@ -122,40 +117,36 @@ def end_group: F<"end-group">,<br class="">
> def end_lib: F<"end-lib">,<br class="">
>   HelpText<"End a grouping of objects that should be treated as if they were together in an archive">;<br class="">
> <br class="">
> -defm entry: Eq<"entry">, HelpText<"Name of entry point symbol">,<br class="">
> +defm entry: Eq<"entry", "Name of entry point symbol">,<br class="">
>   MetaVarName<"<entry>">;<br class="">
> <br class="">
> -defm error_limit: Eq<"error-limit">,<br class="">
> -  HelpText<"Maximum number of errors to emit before stopping (0 = no limit)">;<br class="">
> +defm error_limit:<br class="">
> +  Eq<"error-limit", "Maximum number of errors to emit before stopping (0 = no limit)">;<br class="">
> <br class="">
> def error_unresolved_symbols: F<"error-unresolved-symbols">,<br class="">
>   HelpText<"Report unresolved symbols as errors">;<br class="">
> <br class="">
> -defm exclude_libs: Eq<"exclude-libs">,<br class="">
> -  HelpText<"Exclude static libraries from automatic export">;<br class="">
> +defm exclude_libs: Eq<"exclude-libs", "Exclude static libraries from automatic export">;<br class="">
> <br class="">
> defm export_dynamic: B<"export-dynamic",<br class="">
>     "Put symbols in the dynamic symbol table",<br class="">
>     "Do not put symbols in the dynamic symbol table">;<br class="">
> <br class="">
> -defm export_dynamic_symbol: Eq<"export-dynamic-symbol">,<br class="">
> -  HelpText<"Put a symbol in the dynamic symbol table">;<br class="">
> +defm export_dynamic_symbol:<br class="">
> +  Eq<"export-dynamic-symbol", "Put a symbol in the dynamic symbol table">;<br class="">
> <br class="">
> defm fatal_warnings: B<"fatal-warnings",<br class="">
>     "Treat warnings as errors",<br class="">
>     "Do not treat warnings as errors">;<br class="">
> <br class="">
> -defm filter: Eq<"filter">,<br class="">
> -  HelpText<"Set DT_FILTER field to the specified name">;<br class="">
> +defm filter: Eq<"filter", "Set DT_FILTER field to the specified name">;<br class="">
> <br class="">
> -defm fini: Eq<"fini">,<br class="">
> -  HelpText<"Specify a finalizer function">, MetaVarName<"<symbol>">;<br class="">
> +defm fini: Eq<"fini", "Specify a finalizer function">, MetaVarName<"<symbol>">;<br class="">
> <br class="">
> def fix_cortex_a53_843419: F<"fix-cortex-a53-843419">,<br class="">
>   HelpText<"Apply fixes for AArch64 Cortex-A53 erratum 843419">;<br class="">
> <br class="">
> -defm format: Eq<"format">,<br class="">
> -  HelpText<"Change the input format of the inputs following this option">,<br class="">
> +defm format: Eq<"format", "Change the input format of the inputs following this option">,<br class="">
>   MetaVarName<"<input-format>">;<br class="">
> <br class="">
> defm gc_sections: B<"gc-sections",<br class="">
> @@ -170,8 +161,7 @@ defm gnu_unique: B<"gnu-unique",<br class="">
>   "Enable STB_GNU_UNIQUE symbol binding",<br class="">
>   "Disable STB_GNU_UNIQUE symbol binding">;<br class="">
> <br class="">
> -defm hash_style: Eq<"hash-style">,<br class="">
> -  HelpText<"Specify hash style (sysv, gnu or both)">;<br class="">
> +defm hash_style: Eq<"hash-style", "Specify hash style (sysv, gnu or both)">;<br class="">
> <br class="">
> def help: F<"help">, HelpText<"Print option help">;<br class="">
> <br class="">
> @@ -185,21 +175,21 @@ def ignore_function_address_equality: F<<br class="">
> def ignore_data_address_equality: F<"ignore-data-address-equality">,<br class="">
>   HelpText<"lld can break the address equality of data">;<br class="">
> <br class="">
> -defm image_base : Eq<"image-base">, HelpText<"Set the base address">;<br class="">
> +defm image_base: Eq<"image-base", "Set the base address">;<br class="">
> <br class="">
> -defm init: Eq<"init">, HelpText<"Specify an initializer function">,<br class="">
> +defm init: Eq<"init", "Specify an initializer function">,<br class="">
>   MetaVarName<"<symbol>">;<br class="">
> <br class="">
> -defm just_symbols: Eq<"just-symbols">, HelpText<"Just link symbols">;<br class="">
> +defm just_symbols: Eq<"just-symbols", "Just link symbols">;<br class="">
> <br class="">
> -defm keep_unique: Eq<"keep-unique">, HelpText<"Do not fold this symbol during ICF">;<br class="">
> +defm keep_unique: Eq<"keep-unique", "Do not fold this symbol during ICF">;<br class="">
> <br class="">
> -defm library: Eq<"library">, HelpText<"Root name of library to use">,<br class="">
> +defm library: Eq<"library", "Root name of library to use">,<br class="">
>   MetaVarName<"<libName>">;<br class="">
> <br class="">
> def m: JoinedOrSeparate<["-"], "m">, HelpText<"Set target emulation">;<br class="">
> <br class="">
> -defm Map: Eq<"Map">, HelpText<"Print a link map to the specified file">;<br class="">
> +defm Map: Eq<"Map", "Print a link map to the specified file">;<br class="">
> <br class="">
> defm merge_exidx_entries: B<"merge-exidx-entries",<br class="">
>     "Enable merging .ARM.exidx entries",<br class="">
> @@ -235,11 +225,12 @@ def oformat: Separate<["--"], "oformat"><br class="">
> def omagic: Flag<["--"], "omagic">, MetaVarName<"<magic>">,<br class="">
>   HelpText<"Set the text and data sections to be readable and writable">;<br class="">
> <br class="">
> -defm orphan_handling: Eq<"orphan-handling">,<br class="">
> -  HelpText<"Control how orphan sections are handled when linker script used">;<br class="">
> +defm orphan_handling:<br class="">
> +  Eq<"orphan-handling", "Control how orphan sections are handled when linker script used">;<br class="">
> <br class="">
> -defm pack_dyn_relocs: Eq<"pack-dyn-relocs">, MetaVarName<"<format>">,<br class="">
> -  HelpText<"Pack dynamic relocations in the given format (none or android)">;<br class="">
> +defm pack_dyn_relocs:<br class="">
> +  Eq<"pack-dyn-relocs", "Pack dynamic relocations in the given format (none or android)">,<br class="">
> +  MetaVarName<"<format>">;<br class="">
> <br class="">
> defm pie: B<"pie",<br class="">
>     "Create a position independent executable",<br class="">
> @@ -256,28 +247,27 @@ defm print_icf_sections: B<"print-icf-se<br class="">
> def print_map: F<"print-map">,<br class="">
>   HelpText<"Print a link map to the standard output">;<br class="">
> <br class="">
> -defm reproduce: Eq<"reproduce">,<br class="">
> -  HelpText<"Dump linker invocation and input files for debugging">;<br class="">
> +defm reproduce: Eq<"reproduce", "Dump linker invocation and input files for debugging">;<br class="">
> <br class="">
> -defm rpath: Eq<"rpath">, HelpText<"Add a DT_RUNPATH to the output">;<br class="">
> +defm rpath: Eq<"rpath", "Add a DT_RUNPATH to the output">;<br class="">
> <br class="">
> def relocatable: F<"relocatable">, HelpText<"Create relocatable object file">;<br class="">
> <br class="">
> -defm retain_symbols_file: Eq<"retain-symbols-file">,<br class="">
> -  HelpText<"Retain only the symbols listed in the file">,<br class="">
> +defm retain_symbols_file:<br class="">
> +  Eq<"retain-symbols-file", "Retain only the symbols listed in the file">,<br class="">
>   MetaVarName<"<file>">;<br class="">
> <br class="">
> -defm script: Eq<"script">, HelpText<"Read linker script">;<br class="">
> +defm script: Eq<"script", "Read linker script">;<br class="">
> <br class="">
> -defm section_start: Eq<"section-start">, MetaVarName<"<address>">,<br class="">
> -  HelpText<"Set address of section">;<br class="">
> +defm section_start: Eq<"section-start", "Set address of section">,<br class="">
> +  MetaVarName<"<address>">;<br class="">
> <br class="">
> def shared: F<"shared">, HelpText<"Build a shared object">;<br class="">
> <br class="">
> -defm soname: Eq<"soname">, HelpText<"Set DT_SONAME">;<br class="">
> +defm soname: Eq<"soname", "Set DT_SONAME">;<br class="">
> <br class="">
> -defm sort_section: Eq<"sort-section">,<br class="">
> -  HelpText<"Specifies sections sorting rule when linkerscript is used">;<br class="">
> +defm sort_section:<br class="">
> +  Eq<"sort-section", "Specifies sections sorting rule when linkerscript is used">;<br class="">
> <br class="">
> def start_group: F<"start-group">,<br class="">
>   HelpText<"Ignored for compatibility with GNU unless you pass --warn-backrefs">;<br class="">
> @@ -289,17 +279,17 @@ def strip_all: F<"strip-all">, HelpText<<br class="">
> <br class="">
> def strip_debug: F<"strip-debug">, HelpText<"Strip debugging information">;<br class="">
> <br class="">
> -defm symbol_ordering_file: Eq<"symbol-ordering-file">,<br class="">
> -  HelpText<"Layout sections to place symbols in the order specified by symbol ordering file">;<br class="">
> +defm symbol_ordering_file:<br class="">
> +  Eq<"symbol-ordering-file", "Layout sections to place symbols in the order specified by symbol ordering file">;<br class="">
> <br class="">
> -defm sysroot: Eq<"sysroot">, HelpText<"Set the system root">;<br class="">
> +defm sysroot: Eq<"sysroot", "Set the system root">;<br class="">
> <br class="">
> def target1_rel: F<"target1-rel">, HelpText<"Interpret R_ARM_TARGET1 as R_ARM_REL32">;<br class="">
> <br class="">
> def target1_abs: F<"target1-abs">, HelpText<"Interpret R_ARM_TARGET1 as R_ARM_ABS32">;<br class="">
> <br class="">
> -defm target2: Eq<"target2">,<br class="">
> -  HelpText<"Interpret R_ARM_TARGET2 as <type>, where <type> is one of rel, abs, or got-rel">,<br class="">
> +defm target2:<br class="">
> +  Eq<"target2", "Interpret R_ARM_TARGET2 as <type>, where <type> is one of rel, abs, or got-rel">,<br class="">
>   MetaVarName<"<type>">;<br class="">
> <br class="">
> defm threads: B<"threads",<br class="">
> @@ -308,20 +298,19 @@ defm threads: B<"threads",<br class="">
> <br class="">
> def trace: F<"trace">, HelpText<"Print the names of the input files">;<br class="">
> <br class="">
> -defm trace_symbol : Eq<"trace-symbol">, HelpText<"Trace references to symbols">;<br class="">
> +defm trace_symbol: Eq<"trace-symbol", "Trace references to symbols">;<br class="">
> <br class="">
> -defm undefined: Eq<"undefined">,<br class="">
> -  HelpText<"Force undefined symbol during linking">;<br class="">
> +defm undefined: Eq<"undefined", "Force undefined symbol during linking">;<br class="">
> <br class="">
> -defm unresolved_symbols: Eq<"unresolved-symbols">,<br class="">
> -  HelpText<"Determine how to handle unresolved symbols">;<br class="">
> +defm unresolved_symbols:<br class="">
> +  Eq<"unresolved-symbols", "Determine how to handle unresolved symbols">;<br class="">
> <br class="">
> defm undefined_version: B<"undefined-version",<br class="">
>   "Allow unused version in version script",<br class="">
>   "Report version scripts that refer undefined symbols">;<br class="">
> <br class="">
> -defm rsp_quoting: Eq<"rsp-quoting">,<br class="">
> -  HelpText<"Quoting style for response files. Values supported: windows|posix">;<br class="">
> +defm rsp_quoting:<br class="">
> +  Eq<"rsp-quoting", "Quoting style for response files. Values supported: windows|posix">;<br class="">
> <br class="">
> def v: Flag<["-"], "v">, HelpText<"Display the version number">;<br class="">
> <br class="">
> @@ -329,7 +318,7 @@ def verbose: F<"verbose">, HelpText<"Ver<br class="">
> <br class="">
> def version: F<"version">, HelpText<"Display the version number and exit">;<br class="">
> <br class="">
> -defm version_script: Eq<"version-script">, HelpText<"Read a version script">;<br class="">
> +defm version_script: Eq<"version-script", "Read a version script">;<br class="">
> <br class="">
> defm warn_backrefs: B<"warn-backrefs",<br class="">
>     "Warn about backward symbol references to fetch archive members",<br class="">
> @@ -350,7 +339,7 @@ defm whole_archive: B<"whole-archive",<br class="">
>     "Force load of all members in a static library",<br class="">
>     "Do not force load of all members in a static library">;<br class="">
> <br class="">
> -defm wrap: Eq<"wrap">, HelpText<"Use wrapper functions for symbol">,<br class="">
> +defm wrap: Eq<"wrap", "Use wrapper functions for symbol">,<br class="">
>   MetaVarName<"<symbol>">;<br class="">
> <br class="">
> def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"<option>">,<br class="">
> @@ -413,18 +402,16 @@ def lto_partitions: J<"lto-partitions="><br class="">
> def lto_sample_profile: J<"lto-sample-profile=">,<br class="">
>   HelpText<"Sample profile file path">;<br class="">
> def disable_verify: F<"disable-verify">;<br class="">
> -defm mllvm: Eq<"mllvm">;<br class="">
> +defm mllvm: Eq<"mllvm", "Additional arguments to forward to LLVM's option processing">;<br class="">
> def opt_remarks_filename: Separate<["--"], "opt-remarks-filename">,<br class="">
>   HelpText<"YAML output file for optimization remarks">;<br class="">
> def opt_remarks_with_hotness: Flag<["--"], "opt-remarks-with-hotness">,<br class="">
>   HelpText<"Include hotness information in the optimization remarks file">;<br class="">
> -defm plugin_opt: Eq<"plugin-opt">,<br class="">
> -  HelpText<"specifies LTO options for compatibility with GNU linkers">;<br class="">
> +defm plugin_opt: Eq<"plugin-opt", "specifies LTO options for compatibility with GNU linkers">;<br class="">
> def save_temps: F<"save-temps">;<br class="">
> def thinlto_cache_dir: J<"thinlto-cache-dir=">,<br class="">
>   HelpText<"Path to ThinLTO cached object file directory">;<br class="">
> -defm thinlto_cache_policy: Eq<"thinlto-cache-policy">,<br class="">
> -  HelpText<"Pruning policy for the ThinLTO cache">;<br class="">
> +defm thinlto_cache_policy: Eq<"thinlto-cache-policy", "Pruning policy for the ThinLTO cache">;<br class="">
> def thinlto_jobs: J<"thinlto-jobs=">, HelpText<"Number of ThinLTO jobs">;<br class="">
> <br class="">
> def plugin_opt_O: J<"plugin-opt=O">, Alias<lto_O>;<br class="">
> @@ -450,7 +437,7 @@ def plugin_opt_thinlto_prefix_replace_eq<br class="">
> // just ignore the option on lld side as it's easier. In fact, the linker could<br class="">
> // be called 'ld' and understanding which linker is used would require parsing of<br class="">
> // --version output.<br class="">
> -defm plugin: Eq<"plugin">;<br class="">
> +def plugin: J<"plugin">;<br class="">
> <br class="">
> def plugin_opt_fresolution_eq: J<"plugin-opt=-fresolution=">;<br class="">
> def plugin_opt_pass_through_eq: J<"plugin-opt=-pass-through=">;<br class="">
> @@ -469,7 +456,8 @@ def no_ctors_in_init_array: F<"no-ctors-<br class="">
> def no_keep_memory: F<"no-keep-memory">;<br class="">
> def no_mmap_output_file: F<"no-mmap-output-file">;<br class="">
> def no_warn_mismatch: F<"no-warn-mismatch">;<br class="">
> -defm rpath_link: Eq<"rpath-link">;<br class="">
> +def rpath_link: J<"rpath-link">;<br class="">
> +def rpath_link_eq: J<"rpath-link=">;<br class="">
> def sort_common: F<"sort-common">;<br class="">
> def stats: F<"stats">;<br class="">
> def warn_execstack: F<"warn-execstack">;<br class="">
> <br class="">
> <br class="">
> _______________________________________________<br class="">
> llvm-commits mailing list<br class="">
> <a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="">llvm-commits@lists.llvm.org</a><br class="">
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="">
<br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></body></html>