hanchenye-llvm-project/llvm/lib/ObjectYAML
Saleem Abdulrasool b36fbbc3ec CodeGen: support an extension to pass linker options on ELF
Introduce an extension to support passing linker options to the linker.
These would be ignored by older linkers, but newer linkers which support
this feature would be able to process the linker.

Emit a special discarded section `.linker-option`.  The content of this
section is a pair of strings (key, value).  The key is a type identifier for
the parameter.  This allows for an argument free parameter that will be
processed by the linker with the value being the parameter.  As an example,
`lib` identifies a library to be linked against, traditionally the `-l`
argument for Unix-based linkers with the parameter being the library name.

Thanks to James Henderson, Cary Coutant, Rafael Espinolda, Sean Silva
for the valuable discussion on the design of this feature.

llvm-svn: 323783
2018-01-30 16:29:29 +00:00
..
CMakeLists.txt Update obj2yaml and yaml2obj for .debug$H section. 2017-12-06 18:58:48 +00:00
COFFYAML.cpp Update obj2yaml and yaml2obj for .debug$H section. 2017-12-06 18:58:48 +00:00
CodeViewYAMLDebugSections.cpp [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
CodeViewYAMLSymbols.cpp Fix uninitialized read error reported by MSAN. 2018-01-08 21:38:50 +00:00
CodeViewYAMLTypeHashing.cpp [CodeView] Teach clang to emit the .debug$H COFF section. 2017-12-13 22:33:58 +00:00
CodeViewYAMLTypes.cpp [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
DWARFEmitter.cpp Move helper classes into anonymous namespaces. 2017-08-20 13:03:48 +00:00
DWARFVisitor.cpp Move helper classes into anonymous namespaces. 2017-08-20 13:03:48 +00:00
DWARFVisitor.h Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
DWARFYAML.cpp [ObjectYAML] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-07-01 01:35:55 +00:00
ELFYAML.cpp CodeGen: support an extension to pass linker options on ELF 2018-01-30 16:29:29 +00:00
LLVMBuild.txt [CodeView] Move CodeView YAML code to ObjectYAML. 2017-05-30 21:53:05 +00:00
MachOYAML.cpp [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
ObjectYAML.cpp [ObjectYAML] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-07-01 01:35:55 +00:00
WasmYAML.cpp [WebAssembly] Add COMDAT support 2018-01-09 23:43:14 +00:00
YAML.cpp [ObjectYAML] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-07-01 01:35:55 +00:00