This is an archive of the discontinued LLVM Phabricator instance.

Show choices of multiple-choice options in `ld.lld --help` message.
ClosedPublic

Authored by ruiu on Jun 1 2018, 2:33 PM.

Details

Summary

This is the diff of ld.lld --help.

  • --build-id=<value> Generate build ID note + --build-id=[fast,md5,sha,uuid,0x<hexstring>] + Generate build ID note
  • --build-id Generate build ID note + --build-id Alias for --build-id=fast
  • --color-diagnostics=<value>
  • Use colors in diagnostics; one of 'always', 'never', 'auto' + --color-diagnostics=[auto,always,never] + Use colors in diagnostics
  • --color-diagnostics Use colors in diagnostics + --color-diagnostics Alias for --color-diagnostics=always
  • --compress-debug-sections=<value> + --compress-debug-sections=[none,zlib]
  • --defsym=<value> Define a symbol alias + --defsym=<symbol>=<value> + Define a symbol alias
  • --format=<input-format> Change the input format of the inputs following this option + --format=[default,elf,binary] + Change the input format of the inputs following this option
  • --pack-dyn-relocs=<format>
  • Pack dynamic relocations in the given format (none or android) + --pack-dyn-relocs=[none,android] + Pack dynamic relocations in the given format
  • --rsp-quoting=<value> Quoting style for response files. Values supported: windows|posix + --rsp-quoting=[posix,windows] + Quoting style for response files
  • --undefined=<value> Force undefined symbol during linking + --undefined=<symbol> Force undefined symbol during linking
  • --wrap=<symbol> Use wrapper functions for symbol + --wrap=<symbol>=<symbol> + Use wrapper functions for symbol

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

ruiu created this revision.Jun 1 2018, 2:33 PM
smeenai added a subscriber: smeenai.Jun 1 2018, 2:39 PM

Formatted diff (I didn't wanna edit the summary itself):

-  --build-id=<value>      Generate build ID note
+  --build-id=[fast,md5,sha,uuid,0x<hexstring>]
+                          Generate build ID note

-  --build-id              Generate build ID note
+  --build-id              Alias for --build-id=fast

-  --color-diagnostics=<value>
-                          Use colors in diagnostics; one of 'always', 'never', 'auto'
+  --color-diagnostics=[auto,always,never]
+                          Use colors in diagnostics

-  --color-diagnostics     Use colors in diagnostics
+  --color-diagnostics     Alias for --color-diagnostics=always

-  --compress-debug-sections=<value>
+  --compress-debug-sections=[none,zlib]

-  --defsym=<value>        Define a symbol alias
+  --defsym=<symbol>=<value>
+                          Define a symbol alias

-  --format=<input-format> Change the input format of the inputs following this option
+  --format=[default,elf,binary]
+                          Change the input format of the inputs following this option

-  --pack-dyn-relocs=<format>
-                          Pack dynamic relocations in the given format (none or android)
+  --pack-dyn-relocs=[none,android]
+                          Pack dynamic relocations in the given format

-  --rsp-quoting=<value>   Quoting style for response files. Values supported: windows|posix
+  --rsp-quoting=[posix,windows]
+                          Quoting style for response files

-  --undefined=<value>     Force undefined symbol during linking
+  --undefined=<symbol>    Force undefined symbol during linking

-  --wrap=<symbol>         Use wrapper functions for symbol
+  --wrap=<symbol>=<symbol>
+                          Use wrapper functions for symbol

Shoaib,

Thanks! I didn't know Phabricator interprets pluses and minuses as a list.

pcc accepted this revision.Jun 1 2018, 2:46 PM

LGTM

This revision is now accepted and ready to land.Jun 1 2018, 2:46 PM
This revision was automatically updated to reflect the committed changes.
glandium added inline comments.
ELF/Options.td
33

it's sha1, not sha.