CMakeLists.txt | 5 +- README.md | 8 +- ci/azure/linux_script | 6 +- ci/azure/macos_script | 16 +- ci/azure/windows_install | 4 +- ci/azure/windows_script.bat | 2 +- ci/srht/freebsd_script | 2 +- cmake/Findclang.cmake | 16 +- cmake/Findlld.cmake | 14 +- cmake/Findllvm.cmake | 19 +- deps/lld-prebuilt/COFF/Options.inc | 51 +- deps/lld-prebuilt/ELF/Options.inc | 142 +- deps/lld-prebuilt/MinGW/Options.inc | 79 +- deps/lld-prebuilt/lld/Common/Version.inc | 6 +- deps/lld-prebuilt/wasm/Options.inc | 29 +- deps/lld/CMakeLists.txt | 1 - deps/lld/COFF/CMakeLists.txt | 1 + deps/lld/COFF/Chunks.cpp | 849 ++++---- deps/lld/COFF/Chunks.h | 577 +++-- deps/lld/COFF/Config.h | 242 ++- deps/lld/COFF/DLL.cpp | 707 +++--- deps/lld/COFF/DLL.h | 60 +- deps/lld/COFF/DebugTypes.cpp | 268 +++ deps/lld/COFF/DebugTypes.h | 60 + deps/lld/COFF/Driver.cpp | 1950 +++++++++-------- deps/lld/COFF/Driver.h | 111 +- deps/lld/COFF/DriverUtils.cpp | 965 +++++---- deps/lld/COFF/ICF.cpp | 279 ++- deps/lld/COFF/ICF.h | 9 +- deps/lld/COFF/InputFiles.cpp | 915 +++++--- deps/lld/COFF/InputFiles.h | 209 +- deps/lld/COFF/LTO.cpp | 188 +- deps/lld/COFF/LTO.h | 19 +- deps/lld/COFF/MapFile.cpp | 115 +- deps/lld/COFF/MapFile.h | 9 +- deps/lld/COFF/MarkLive.cpp | 65 +- deps/lld/COFF/MarkLive.h | 11 +- deps/lld/COFF/MinGW.cpp | 160 +- deps/lld/COFF/MinGW.h | 25 +- deps/lld/COFF/Options.td | 65 +- deps/lld/COFF/PDB.cpp | 2027 ++++++++--------- deps/lld/COFF/PDB.h | 19 +- deps/lld/COFF/SymbolTable.cpp | 741 ++++--- deps/lld/COFF/SymbolTable.h | 89 +- deps/lld/COFF/Symbols.cpp | 124 +- deps/lld/COFF/Symbols.h | 252 +-- deps/lld/COFF/TypeMerger.h | 65 + deps/lld/COFF/Writer.cpp | 2059 ++++++++++-------- deps/lld/COFF/Writer.h | 62 +- deps/lld/Common/Args.cpp | 87 +- deps/lld/Common/CMakeLists.txt | 27 + deps/lld/Common/ErrorHandler.cpp | 160 +- deps/lld/Common/Filesystem.cpp | 99 + deps/lld/Common/Memory.cpp | 19 +- deps/lld/Common/Reproduce.cpp | 67 +- deps/lld/Common/Strings.cpp | 99 +- deps/lld/Common/TargetOptionsCommandFlags.cpp | 18 +- deps/lld/Common/Threads.cpp | 9 +- deps/lld/Common/Timer.cpp | 61 +- deps/lld/Common/Version.cpp | 42 +- deps/lld/ELF/AArch64ErrataFix.cpp | 495 +++-- deps/lld/ELF/AArch64ErrataFix.h | 19 +- deps/lld/ELF/Arch/AArch64.cpp | 466 ++-- deps/lld/ELF/Arch/AMDGPU.cpp | 70 +- deps/lld/ELF/Arch/ARM.cpp | 462 ++-- deps/lld/ELF/Arch/AVR.cpp | 37 +- deps/lld/ELF/Arch/Hexagon.cpp | 195 +- deps/lld/ELF/Arch/MSP430.cpp | 49 +- deps/lld/ELF/Arch/Mips.cpp | 607 +++--- deps/lld/ELF/Arch/MipsArchTree.cpp | 239 +- deps/lld/ELF/Arch/PPC.cpp | 418 +++- deps/lld/ELF/Arch/PPC64.cpp | 750 ++++--- deps/lld/ELF/Arch/RISCV.cpp | 401 +++- deps/lld/ELF/Arch/SPARCV9.cpp | 102 +- deps/lld/ELF/Arch/X86.cpp | 442 ++-- deps/lld/ELF/Arch/X86_64.cpp | 622 +++--- deps/lld/ELF/Bits.h | 35 - deps/lld/ELF/CMakeLists.txt | 1 - deps/lld/ELF/CallGraphSort.cpp | 185 +- deps/lld/ELF/CallGraphSort.h | 7 +- deps/lld/ELF/Config.h | 357 +-- deps/lld/ELF/DWARF.cpp | 132 +- deps/lld/ELF/DWARF.h | 65 +- deps/lld/ELF/Driver.cpp | 1898 +++++++++------- deps/lld/ELF/Driver.h | 42 +- deps/lld/ELF/DriverUtils.cpp | 195 +- deps/lld/ELF/EhFrame.cpp | 137 +- deps/lld/ELF/EhFrame.h | 11 +- deps/lld/ELF/Filesystem.cpp | 86 - deps/lld/ELF/Filesystem.h | 23 - deps/lld/ELF/ICF.cpp | 334 ++- deps/lld/ELF/ICF.h | 7 +- deps/lld/ELF/InputFiles.cpp | 1682 +++++++++------ deps/lld/ELF/InputFiles.h | 357 +-- deps/lld/ELF/InputSection.cpp | 1113 +++++----- deps/lld/ELF/InputSection.h | 278 +-- deps/lld/ELF/LTO.cpp | 327 +-- deps/lld/ELF/LTO.h | 21 +- deps/lld/ELF/LinkerScript.cpp | 1018 ++++----- deps/lld/ELF/LinkerScript.h | 222 +- deps/lld/ELF/MapFile.cpp | 234 +- deps/lld/ELF/MapFile.h | 7 +- deps/lld/ELF/MarkLive.cpp | 385 ++-- deps/lld/ELF/MarkLive.h | 7 +- deps/lld/ELF/Options.td | 55 +- deps/lld/ELF/OutputSections.cpp | 442 ++-- deps/lld/ELF/OutputSections.h | 122 +- deps/lld/ELF/Relocations.cpp | 1663 ++++++++------ deps/lld/ELF/Relocations.h | 178 +- deps/lld/ELF/ScriptLexer.cpp | 224 +- deps/lld/ELF/ScriptLexer.h | 29 +- deps/lld/ELF/ScriptParser.cpp | 1269 ++++++----- deps/lld/ELF/ScriptParser.h | 17 +- deps/lld/ELF/SymbolTable.cpp | 835 ++----- deps/lld/ELF/SymbolTable.h | 98 +- deps/lld/ELF/Symbols.cpp | 636 ++++-- deps/lld/ELF/Symbols.h | 467 ++-- deps/lld/ELF/SyntheticSections.cpp | 3712 ++++++++++++++++++-------------- deps/lld/ELF/SyntheticSections.h | 893 ++++---- deps/lld/ELF/Target.cpp | 101 +- deps/lld/ELF/Target.h | 233 +- deps/lld/ELF/Thunks.cpp | 809 ++++--- deps/lld/ELF/Thunks.h | 42 +- deps/lld/ELF/Writer.cpp | 2680 ++++++++++++----------- deps/lld/ELF/Writer.h | 29 +- deps/lld/LICENSE.TXT | 256 ++- deps/lld/MinGW/Driver.cpp | 367 ++-- deps/lld/MinGW/Options.td | 76 +- deps/lld/docs/NewLLD.rst | 8 + deps/lld/docs/Partitions.rst | 116 + deps/lld/docs/ReleaseNotes.rst | 256 ++- deps/lld/docs/WebAssembly.rst | 78 +- deps/lld/docs/conf.py | 4 +- deps/lld/docs/getting_started.rst | 35 +- deps/lld/docs/index.rst | 3 +- deps/lld/docs/ld.lld.1 | 117 +- deps/lld/docs/missingkeyfunction.rst | 31 +- deps/lld/docs/partitions.dot | 22 + deps/lld/docs/partitions.svg | 110 + deps/lld/docs/sphinx_intro.rst | 4 +- deps/lld/include/lld/Common/Args.h | 23 +- deps/lld/include/lld/Common/Driver.h | 27 +- deps/lld/include/lld/Common/ErrorHandler.h | 98 +- deps/lld/include/lld/Common/Filesystem.h | 20 + deps/lld/include/lld/Common/LLVM.h | 9 +- deps/lld/include/lld/Common/Memory.h | 25 +- deps/lld/include/lld/Common/Reproduce.h | 17 +- deps/lld/include/lld/Common/Strings.h | 23 +- deps/lld/include/lld/Common/TargetOptionsCommandFlags.h | 15 +- deps/lld/include/lld/Common/Threads.h | 34 +- deps/lld/include/lld/Common/Timer.h | 29 +- deps/lld/include/lld/Common/Version.h | 7 +- deps/lld/include/lld/Core/AbsoluteAtom.h | 7 +- deps/lld/include/lld/Core/ArchiveLibraryFile.h | 7 +- deps/lld/include/lld/Core/Atom.h | 7 +- deps/lld/include/lld/Core/DefinedAtom.h | 7 +- deps/lld/include/lld/Core/Error.h | 7 +- deps/lld/include/lld/Core/File.h | 7 +- deps/lld/include/lld/Core/Instrumentation.h | 7 +- deps/lld/include/lld/Core/LinkingContext.h | 7 +- deps/lld/include/lld/Core/Node.h | 7 +- deps/lld/include/lld/Core/Pass.h | 7 +- deps/lld/include/lld/Core/PassManager.h | 7 +- deps/lld/include/lld/Core/Reader.h | 7 +- deps/lld/include/lld/Core/Reference.h | 7 +- deps/lld/include/lld/Core/Resolver.h | 7 +- deps/lld/include/lld/Core/SharedLibraryAtom.h | 7 +- deps/lld/include/lld/Core/SharedLibraryFile.h | 7 +- deps/lld/include/lld/Core/Simple.h | 7 +- deps/lld/include/lld/Core/SymbolTable.h | 7 +- deps/lld/include/lld/Core/UndefinedAtom.h | 7 +- deps/lld/include/lld/Core/Writer.h | 7 +- deps/lld/include/lld/ReaderWriter/MachOLinkingContext.h | 7 +- deps/lld/include/lld/ReaderWriter/YamlContext.h | 7 +- deps/lld/lib/Core/DefinedAtom.cpp | 7 +- deps/lld/lib/Core/Error.cpp | 7 +- deps/lld/lib/Core/File.cpp | 7 +- deps/lld/lib/Core/LinkingContext.cpp | 7 +- deps/lld/lib/Core/Reader.cpp | 7 +- deps/lld/lib/Core/Resolver.cpp | 7 +- deps/lld/lib/Core/SymbolTable.cpp | 7 +- deps/lld/lib/Core/Writer.cpp | 7 +- deps/lld/lib/Driver/DarwinLdDriver.cpp | 31 +- deps/lld/lib/ReaderWriter/FileArchive.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/ArchHandler.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/ArchHandler.h | 7 +- deps/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp | 58 +- deps/lld/lib/ReaderWriter/MachO/Atoms.h | 7 +- deps/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp | 19 +- deps/lld/lib/ReaderWriter/MachO/DebugInfo.h | 7 +- deps/lld/lib/ReaderWriter/MachO/ExecutableAtoms.h | 7 +- deps/lld/lib/ReaderWriter/MachO/File.h | 7 +- deps/lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h | 7 +- deps/lld/lib/ReaderWriter/MachO/GOTPass.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/LayoutPass.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/LayoutPass.h | 7 +- deps/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp | 19 +- deps/lld/lib/ReaderWriter/MachO/MachONormalizedFile.h | 10 +- deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h | 7 +- deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp | 34 +- deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp | 10 +- deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/MachOPasses.h | 7 +- deps/lld/lib/ReaderWriter/MachO/ObjCPass.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/SectCreateFile.h | 7 +- deps/lld/lib/ReaderWriter/MachO/ShimPass.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/StubsPass.cpp | 12 +- deps/lld/lib/ReaderWriter/MachO/TLVPass.cpp | 7 +- deps/lld/lib/ReaderWriter/MachO/WriterMachO.cpp | 7 +- deps/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp | 7 +- deps/lld/test/CMakeLists.txt | 8 +- deps/lld/test/COFF/Inputs/combined-resources-2.rc | 72 +- deps/lld/test/COFF/Inputs/crt-dyn-initializer-order_1.yaml | 30 +- deps/lld/test/COFF/Inputs/crt-dyn-initializer-order_2.yaml | 38 +- deps/lld/test/COFF/Inputs/delayimporttables-dll1.yaml | 57 + deps/lld/test/COFF/Inputs/delayimporttables-dll2.yaml | 57 + deps/lld/test/COFF/Inputs/eh_frame_terminator-crtend.s | 3 + deps/lld/test/COFF/Inputs/eh_frame_terminator-otherfunc.s | 7 + deps/lld/test/COFF/Inputs/failmismatch1.ll | 15 + deps/lld/test/COFF/Inputs/failmismatch2.ll | 20 + deps/lld/test/COFF/Inputs/hello32.yaml | 6 + deps/lld/test/COFF/Inputs/id.res | Bin 0 -> 100 bytes deps/lld/test/COFF/Inputs/id.res.o | Bin 0 -> 220 bytes deps/lld/test/COFF/Inputs/libcall-archive.ll | 6 + deps/lld/test/COFF/Inputs/libcall-archive.s | 2 + deps/lld/test/COFF/Inputs/mangled-symbol.s | 9 + deps/lld/test/COFF/Inputs/no-ipi-stream-obj.obj.yaml | 13 + deps/lld/test/COFF/Inputs/no-ipi-stream-pdb.pdb.yaml | 2 + deps/lld/test/COFF/Inputs/pdb-diff.cpp | 20 +- deps/lld/test/COFF/Inputs/pdb-file-statics-a.yaml | 1 + deps/lld/test/COFF/Inputs/pdb-file-statics-b.yaml | 1 + deps/lld/test/COFF/Inputs/pdb-global-constants-a.s | 214 ++ deps/lld/test/COFF/Inputs/pdb-global-constants-b.s | 204 ++ deps/lld/test/COFF/Inputs/pdb-globals.yaml | 2 +- deps/lld/test/COFF/Inputs/pdb-type-server-invalid-path.yaml | 121 ++ deps/lld/test/COFF/Inputs/pdb_comdat_bar.yaml | 1 + deps/lld/test/COFF/Inputs/thinlto-empty.ll | 2 + deps/lld/test/COFF/Inputs/thinlto.ll | 6 + deps/lld/test/COFF/Inputs/tlssup.s | 10 + deps/lld/test/COFF/Inputs/undefined-symbol-lto-a.ll | 82 + deps/lld/test/COFF/Inputs/undefined-symbol-lto-b.ll | 29 + deps/lld/test/COFF/align.s | 45 + deps/lld/test/COFF/allow-unknown-debug-info.test | 26 + deps/lld/test/COFF/arm64-delayimport.yaml | 53 +- deps/lld/test/COFF/arm64-import2.test | 4 +- deps/lld/test/COFF/arm64-magic.yaml | 2 +- deps/lld/test/COFF/arm64-relocs-imports.test | 21 +- deps/lld/test/COFF/armnt-blx23t.test | 2 + deps/lld/test/COFF/armnt-branch24t.test | 2 + deps/lld/test/COFF/armnt-entry-point.test | 2 +- deps/lld/test/COFF/armnt-imports.test | 2 +- deps/lld/test/COFF/armnt-mov32t-exec.test | 2 + deps/lld/test/COFF/armnt-movt32t.test | 2 + deps/lld/test/COFF/armnt-rel32.yaml | 47 + deps/lld/test/COFF/associative-comdat-empty.test | 56 + deps/lld/test/COFF/associative-comdat-mingw-i386.s | 37 + deps/lld/test/COFF/associative-comdat-mingw.s | 2 +- deps/lld/test/COFF/associative-comdat-order.test | 97 + deps/lld/test/COFF/associative-comdat.s | 4 +- deps/lld/test/COFF/autoimport-arm-data.s | 2 +- deps/lld/test/COFF/autoimport-arm64-data.s | 2 +- deps/lld/test/COFF/autoimport-gnu-implib.s | 9 +- deps/lld/test/COFF/autoimport-refptr.s | 3 +- deps/lld/test/COFF/autoimport-x86.s | 12 +- deps/lld/test/COFF/base.test | 4 +- deps/lld/test/COFF/baserel.test | 8 +- deps/lld/test/COFF/color-diagnostics.test | 18 + deps/lld/test/COFF/combined-resources.test | 2 +- deps/lld/test/COFF/comdat-selection-associative-largest.s | 45 + deps/lld/test/COFF/comdat-selection.s | 107 + deps/lld/test/COFF/common-replacement.s | 2 +- deps/lld/test/COFF/common.test | 2 +- deps/lld/test/COFF/conflict-mangled.test | 7 +- deps/lld/test/COFF/constant-export.test | 2 +- deps/lld/test/COFF/constant.test | 4 +- deps/lld/test/COFF/could-not-open.test | 2 +- deps/lld/test/COFF/crt-chars.test | 2 +- deps/lld/test/COFF/crt-dyn-initializer-order.test | 200 +- deps/lld/test/COFF/debug-reloc.s | 8 +- deps/lld/test/COFF/def-export-stdcall.s | 14 +- deps/lld/test/COFF/delayimports-armnt.yaml | 9 +- deps/lld/test/COFF/delayimports.test | 8 +- deps/lld/test/COFF/delayimports32.test | 42 +- deps/lld/test/COFF/delayimporttables.yaml | 122 ++ deps/lld/test/COFF/dll.test | 4 +- deps/lld/test/COFF/dllexport.s | 4 +- deps/lld/test/COFF/dllimport-gc.test | 4 +- deps/lld/test/COFF/driver.test | 24 +- deps/lld/test/COFF/eh_frame_suffix_sorting.s | 39 + deps/lld/test/COFF/eh_frame_terminator.s | 26 + deps/lld/test/COFF/entry-drectve.test | 2 +- deps/lld/test/COFF/entry-inference-mingw.s | 6 +- deps/lld/test/COFF/entry-inference332.test | 4 +- deps/lld/test/COFF/error-limit.test | 20 +- deps/lld/test/COFF/exclude-all.s | 31 + deps/lld/test/COFF/export-all.s | 10 +- deps/lld/test/COFF/export-stdcall.s | 32 + deps/lld/test/COFF/export-weak-alias.s | 33 + deps/lld/test/COFF/export32.test | 20 +- deps/lld/test/COFF/failifmismatch.test | 37 +- deps/lld/test/COFF/filealign.test | 51 + deps/lld/test/COFF/fixed.test | 16 +- deps/lld/test/COFF/force-multipleres.test | 21 + deps/lld/test/COFF/functionpadmin.test | 147 ++ deps/lld/test/COFF/gfids-corrupt.s | 2 +- deps/lld/test/COFF/gfids-export.s | 2 +- deps/lld/test/COFF/gfids-fallback.s | 2 +- deps/lld/test/COFF/gfids-gc.s | 6 +- deps/lld/test/COFF/gfids-icf.s | 12 +- deps/lld/test/COFF/gfids-relocations32.s | 4 +- deps/lld/test/COFF/gfids-relocations64.s | 2 +- deps/lld/test/COFF/guard-longjmp.s | 2 +- deps/lld/test/COFF/guardcf-align.s | 2 +- deps/lld/test/COFF/guardcf-lto.ll | 2 +- deps/lld/test/COFF/guardcf-thunk.s | 43 + deps/lld/test/COFF/header-size.s | 2 +- deps/lld/test/COFF/heap.test | 10 +- deps/lld/test/COFF/hello32.test | 11 +- deps/lld/test/COFF/icf-pdata.s | 2 +- deps/lld/test/COFF/icf-xdata.s | 4 +- deps/lld/test/COFF/imports-gnu-autoexport.s | 2 +- deps/lld/test/COFF/imports-gnu.test | 2 +- deps/lld/test/COFF/imports-mangle.test | 2 +- deps/lld/test/COFF/imports.test | 7 +- deps/lld/test/COFF/includeoptional.yaml | 39 + deps/lld/test/COFF/includeoptional2.yaml | 44 + deps/lld/test/COFF/invalid-debug-type.test | 11 +- deps/lld/test/COFF/largeaddressaware.test | 4 +- deps/lld/test/COFF/lib-module-asm.ll | 22 + deps/lld/test/COFF/libcall-archive.ll | 22 + deps/lld/test/COFF/line-error.yaml | 320 +-- deps/lld/test/COFF/linkrepro-pdb.test | 15 +- deps/lld/test/COFF/loadcfg.ll | 2 +- deps/lld/test/COFF/loadcfg.test | 2 +- deps/lld/test/COFF/loadcfg32.test | 4 +- deps/lld/test/COFF/locally-imported-arm64.test | 2 +- deps/lld/test/COFF/locally-imported.test | 2 +- deps/lld/test/COFF/locally-imported32.test | 2 +- deps/lld/test/COFF/long-section-name.test | 4 +- deps/lld/test/COFF/lto-comdat.ll | 15 +- deps/lld/test/COFF/lto-icf.ll | 2 +- deps/lld/test/COFF/lto-lazy-reference.ll | 4 + deps/lld/test/COFF/lto-new-symbol.ll | 4 + deps/lld/test/COFF/lto.ll | 15 +- deps/lld/test/COFF/machine.test | 16 +- deps/lld/test/COFF/manifestinput.test | 4 +- deps/lld/test/COFF/merge.test | 4 +- deps/lld/test/COFF/multiple-resource-objs.test | 13 + deps/lld/test/COFF/no-idata.s | 2 +- deps/lld/test/COFF/no-ipi-stream.test | 4 + deps/lld/test/COFF/nodefaultlib.test | 11 +- deps/lld/test/COFF/noentry.test | 4 +- deps/lld/test/COFF/options.test | 80 +- deps/lld/test/COFF/order-i386.test | 4 +- deps/lld/test/COFF/output-chars.test | 8 +- deps/lld/test/COFF/pdb-comdat.test | 4 +- deps/lld/test/COFF/pdb-debug-f.s | 2 +- deps/lld/test/COFF/pdb-exe-path-dots.test | 2 +- deps/lld/test/COFF/pdb-global-constants.test | 28 + deps/lld/test/COFF/pdb-global-gc.yaml | 1 + deps/lld/test/COFF/pdb-globals.test | 5 + deps/lld/test/COFF/pdb-inlinees-extrafiles.s | 334 +++ deps/lld/test/COFF/pdb-inlinees.s | 332 +++ deps/lld/test/COFF/pdb-lib.s | 8 +- deps/lld/test/COFF/pdb-publics-import.test | 153 +- deps/lld/test/COFF/pdb-safeseh.yaml | 2 +- deps/lld/test/COFF/pdb-tpi-hash-size.test | 10 + deps/lld/test/COFF/pdb-type-server-invalid-signature.yaml | 16 +- deps/lld/test/COFF/pdb-type-server-simple.test | 13 +- deps/lld/test/COFF/pdb-unknown-subsection.s | 60 + deps/lld/test/COFF/pdb.test | 36 +- deps/lld/test/COFF/pdbaltpath.test | 18 +- deps/lld/test/COFF/precomp-link.test | 96 +- deps/lld/test/COFF/reloc-x86.test | 2 +- deps/lld/test/COFF/resource-objs.test | 5 + deps/lld/test/COFF/resource.test | 4 +- deps/lld/test/COFF/responsefile.test | 8 +- deps/lld/test/COFF/rsds.test | 14 +- deps/lld/test/COFF/s_udt.s | 884 ++++---- deps/lld/test/COFF/safeseh-md.s | 2 +- deps/lld/test/COFF/safeseh-no.s | 57 + deps/lld/test/COFF/safeseh-notable.s | 2 +- deps/lld/test/COFF/safeseh.s | 6 +- deps/lld/test/COFF/section.test | 8 +- deps/lld/test/COFF/sort-debug.test | 9 +- deps/lld/test/COFF/stack.test | 10 +- deps/lld/test/COFF/strtab-size.s | 4 +- deps/lld/test/COFF/subsystem-drectve.test | 4 +- deps/lld/test/COFF/subsystem-inference-mingw.s | 2 +- deps/lld/test/COFF/subsystem-inference.test | 12 +- deps/lld/test/COFF/subsystem-inference2.test | 2 +- deps/lld/test/COFF/subsystem-inference32.test | 16 +- deps/lld/test/COFF/subsystem.test | 13 +- deps/lld/test/COFF/symtab-gc.s | 2 +- deps/lld/test/COFF/symtab.test | 8 +- deps/lld/test/COFF/thin-archive.s | 36 + deps/lld/test/COFF/thinlto-archivecollision.ll | 29 + deps/lld/test/COFF/thinlto-archives.ll | 8 +- deps/lld/test/COFF/thinlto-emit-imports.ll | 59 + deps/lld/test/COFF/thinlto-index-only.ll | 52 + deps/lld/test/COFF/thinlto-object-suffix-replace.ll | 50 + deps/lld/test/COFF/thinlto-prefix-replace.ll | 26 + deps/lld/test/COFF/timestamp.test | 6 +- deps/lld/test/COFF/tls.test | 2 +- deps/lld/test/COFF/tls32.test | 4 +- deps/lld/test/COFF/tls_suffix_sorting.s | 27 + deps/lld/test/COFF/undefined-symbol-cv.s | 6 +- deps/lld/test/COFF/undefined-symbol-lto.test | 31 + deps/lld/test/COFF/undefined-symbol-multi.s | 47 + deps/lld/test/COFF/undefined-symbol.s | 12 +- deps/lld/test/COFF/unwind.test | 4 +- deps/lld/test/COFF/used-lto.ll | 15 + deps/lld/test/COFF/version.test | 6 +- deps/lld/test/COFF/wx.s | 10 +- deps/lld/test/ELF/Inputs/aarch64-addrifunc.s | 8 + deps/lld/test/ELF/Inputs/aarch64-bti1.s | 19 + deps/lld/test/ELF/Inputs/aarch64-btipac1.s | 19 + deps/lld/test/ELF/Inputs/aarch64-func2.s | 8 + deps/lld/test/ELF/Inputs/aarch64-func3-bti.s | 16 + deps/lld/test/ELF/Inputs/aarch64-func3-btipac.s | 16 + deps/lld/test/ELF/Inputs/aarch64-func3-pac.s | 16 + deps/lld/test/ELF/Inputs/aarch64-func3.s | 5 + deps/lld/test/ELF/Inputs/aarch64-nobti.s | 8 + deps/lld/test/ELF/Inputs/aarch64-nopac.s | 8 + deps/lld/test/ELF/Inputs/aarch64-pac1.s | 19 + deps/lld/test/ELF/Inputs/bad-reloc-target.test | 21 - deps/lld/test/ELF/Inputs/comdat-discarded-reloc.s | 12 +- deps/lld/test/ELF/Inputs/deplibs-lib_bar.s | 2 + deps/lld/test/ELF/Inputs/deplibs-lib_foo.s | 2 + deps/lld/test/ELF/Inputs/dtrace-r.o | Bin 624 -> 0 bytes deps/lld/test/ELF/Inputs/dummy-shared.s | 2 + deps/lld/test/ELF/Inputs/gdb-index-multiple-cu-2.s | 2 +- deps/lld/test/ELF/Inputs/gnu-ifunc-canon-ro-abs.s | 2 + deps/lld/test/ELF/Inputs/gnu-ifunc-canon-ro-pcrel.s | 2 + deps/lld/test/ELF/Inputs/gnu-ifunc-canon-rw-addend.s | 2 + deps/lld/test/ELF/Inputs/i386-cet1.s | 16 + deps/lld/test/ELF/Inputs/i386-cet2.s | 20 + deps/lld/test/ELF/Inputs/i386-cet3.s | 5 + deps/lld/test/ELF/Inputs/i386-cet4.s | 16 + deps/lld/test/ELF/Inputs/i386-reloc-16-error.s | 3 - deps/lld/test/ELF/Inputs/i386-reloc-16.s | 3 - deps/lld/test/ELF/Inputs/i386-reloc-8-error.s | 3 - deps/lld/test/ELF/Inputs/i386-reloc-8.s | 3 - deps/lld/test/ELF/Inputs/i386-static-tls-model1.s | 9 + deps/lld/test/ELF/Inputs/i386-static-tls-model2.s | 9 + deps/lld/test/ELF/Inputs/i386-static-tls-model3.s | 9 + deps/lld/test/ELF/Inputs/i386-static-tls-model4.s | 9 + deps/lld/test/ELF/Inputs/ppc64-sort-small-cm-relocs-input2.s | 23 + deps/lld/test/ELF/Inputs/ppc64-sort-small-cm-relocs-input3.s | 41 + deps/lld/test/ELF/Inputs/ppc64-sort-small-cm-relocs-input4.s | 18 + deps/lld/test/ELF/Inputs/ppc64-toc-relax-shared.s | 7 + deps/lld/test/ELF/Inputs/ppc64-toc-relax.s | 15 + deps/lld/test/ELF/Inputs/print-icf.s | 18 +- deps/lld/test/ELF/Inputs/shf-info-link.test | 4 +- deps/lld/test/ELF/Inputs/vs-diagnostics-duplicate2.s | 31 + deps/lld/test/ELF/Inputs/vs-diagnostics-duplicate3.s | 6 + deps/lld/test/ELF/Inputs/x86-64-cet1.s | 17 + deps/lld/test/ELF/Inputs/x86-64-cet2.s | 22 + deps/lld/test/ELF/Inputs/x86-64-cet3.s | 5 + deps/lld/test/ELF/Inputs/x86-64-cet4.s | 17 + deps/lld/test/ELF/Inputs/x86-64-pcrel.s | 8 + deps/lld/test/ELF/Inputs/x86-64-reloc-16-error.s | 3 - deps/lld/test/ELF/Inputs/x86-64-reloc-16.s | 3 - deps/lld/test/ELF/Inputs/x86-64-reloc-8-error.s | 3 - deps/lld/test/ELF/Inputs/x86-64-reloc-8.s | 3 - deps/lld/test/ELF/aarch64-abs16.s | 8 +- deps/lld/test/ELF/aarch64-abs32-dyn.s | 14 + deps/lld/test/ELF/aarch64-abs32.s | 8 +- deps/lld/test/ELF/aarch64-abs64-dyn.s | 2 +- deps/lld/test/ELF/aarch64-bti-pac-cli-error.s | 12 + deps/lld/test/ELF/aarch64-call26-thunk.s | 1 + deps/lld/test/ELF/aarch64-condb-reloc.s | 24 +- deps/lld/test/ELF/aarch64-copy.s | 5 +- deps/lld/test/ELF/aarch64-copy2.s | 27 - deps/lld/test/ELF/aarch64-cortex-a53-843419-large.s | 6 +- deps/lld/test/ELF/aarch64-cortex-a53-843419-recognize.s | 52 +- deps/lld/test/ELF/aarch64-cortex-a53-843419-thunk.s | 2 +- deps/lld/test/ELF/aarch64-cortex-a53-843419-tlsrelax.s | 4 +- deps/lld/test/ELF/aarch64-feature-bti.s | 218 ++ deps/lld/test/ELF/aarch64-feature-btipac.s | 142 ++ deps/lld/test/ELF/aarch64-feature-pac.s | 129 ++ deps/lld/test/ELF/aarch64-fpic-adr_prel_pg_hi21.s | 2 + deps/lld/test/ELF/aarch64-fpic-got.s | 16 +- deps/lld/test/ELF/aarch64-gnu-ifunc-address-pie.s | 44 - deps/lld/test/ELF/aarch64-gnu-ifunc-address.s | 20 +- deps/lld/test/ELF/aarch64-gnu-ifunc-nonpreemptable.s | 72 + deps/lld/test/ELF/aarch64-gnu-ifunc-nosym.s | 2 +- deps/lld/test/ELF/aarch64-gnu-ifunc-plt.s | 31 +- deps/lld/test/ELF/aarch64-gnu-ifunc.s | 5 +- deps/lld/test/ELF/aarch64-gnu-ifunc2.s | 12 +- deps/lld/test/ELF/aarch64-gnu-ifunc3.s | 49 - deps/lld/test/ELF/aarch64-got-reloc.s | 30 - deps/lld/test/ELF/aarch64-got-weak-undef.s | 18 + deps/lld/test/ELF/aarch64-got.s | 18 - deps/lld/test/ELF/aarch64-hi21-nc.s | 8 + deps/lld/test/ELF/aarch64-ifunc-bti.s | 65 + deps/lld/test/ELF/aarch64-jump26-thunk.s | 1 + deps/lld/test/ELF/aarch64-ldprel-lo19-invalid.s | 2 +- deps/lld/test/ELF/aarch64-load-alignment.s | 2 +- deps/lld/test/ELF/aarch64-nopic-plt.s | 27 + deps/lld/test/ELF/aarch64-prel16.s | 4 +- deps/lld/test/ELF/aarch64-prel32.s | 4 +- deps/lld/test/ELF/aarch64-property-relocatable.s | 36 + deps/lld/test/ELF/aarch64-relocs.s | 12 + deps/lld/test/ELF/aarch64-relro.s | 2 +- deps/lld/test/ELF/aarch64-thunk-pi.s | 13 +- deps/lld/test/ELF/aarch64-thunk-script.s | 2 + deps/lld/test/ELF/aarch64-tls-gdie.s | 14 +- deps/lld/test/ELF/aarch64-tls-gdle.s | 21 +- deps/lld/test/ELF/aarch64-tls-ie.s | 68 +- deps/lld/test/ELF/aarch64-tls-iele.s | 19 +- deps/lld/test/ELF/aarch64-tls-le.s | 10 +- deps/lld/test/ELF/aarch64-tls-pie.s | 28 - deps/lld/test/ELF/aarch64-tls-static.s | 2 +- deps/lld/test/ELF/aarch64-tlsld-ldst.s | 54 +- deps/lld/test/ELF/aarch64-tstbr14-reloc.s | 20 +- deps/lld/test/ELF/aarch64-undefined-weak.s | 1 + deps/lld/test/ELF/abs-hidden.s | 2 +- deps/lld/test/ELF/allow-shlib-undefined.s | 36 +- deps/lld/test/ELF/amdgpu-abi-version-err.s | 10 + deps/lld/test/ELF/amdgpu-abi-version.s | 11 + deps/lld/test/ELF/amdgpu-elf-flags.s | 2 +- deps/lld/test/ELF/amdgpu-globals.s | 2 +- deps/lld/test/ELF/amdgpu-kernels.s | 2 +- deps/lld/test/ELF/amdgpu-relocs.s | 26 +- deps/lld/test/ELF/archive-fetch.s | 9 +- deps/lld/test/ELF/archive-no-index.s | 13 + deps/lld/test/ELF/archive-thin-missing-member.s | 26 + deps/lld/test/ELF/arm-abs32-dyn.s | 15 +- deps/lld/test/ELF/arm-attributes.s | 6 +- deps/lld/test/ELF/arm-bl-v6-inrange.s | 4 + deps/lld/test/ELF/arm-bl-v6.s | 1 + deps/lld/test/ELF/arm-blx.s | 5 + deps/lld/test/ELF/arm-branch-rangethunk.s | 2 + deps/lld/test/ELF/arm-branch-undef-weak-plt-thunk.s | 1 + deps/lld/test/ELF/arm-branch.s | 1 + deps/lld/test/ELF/arm-copy.s | 5 +- deps/lld/test/ELF/arm-data-prel.s | 22 +- deps/lld/test/ELF/arm-data-relocs.s | 2 + deps/lld/test/ELF/arm-eabi-version.s | 2 +- deps/lld/test/ELF/arm-exidx-add-missing.s | 66 + deps/lld/test/ELF/arm-exidx-canunwind.s | 28 +- deps/lld/test/ELF/arm-exidx-dedup.s | 25 +- deps/lld/test/ELF/arm-exidx-discard.s | 7 +- deps/lld/test/ELF/arm-exidx-emit-relocs.s | 71 + deps/lld/test/ELF/arm-exidx-gc.s | 24 +- deps/lld/test/ELF/arm-exidx-link.s | 2 +- deps/lld/test/ELF/arm-exidx-order.s | 11 + deps/lld/test/ELF/arm-exidx-output.s | 2 +- deps/lld/test/ELF/arm-exidx-partial-discard.s | 37 + deps/lld/test/ELF/arm-exidx-relocatable.s | 2 +- deps/lld/test/ELF/arm-exidx-sentinel-norelocatable.s | 2 +- deps/lld/test/ELF/arm-exidx-shared.s | 10 +- deps/lld/test/ELF/arm-exidx-synthetic-link.s | 37 + deps/lld/test/ELF/arm-extreme-range-pi-thunk.s | 4 + deps/lld/test/ELF/arm-force-pi-thunk.s | 2 + deps/lld/test/ELF/arm-fpic-got.s | 13 +- deps/lld/test/ELF/arm-gnu-ifunc-nosym.s | 2 +- deps/lld/test/ELF/arm-gnu-ifunc-plt.s | 35 +- deps/lld/test/ELF/arm-gnu-ifunc.s | 5 +- deps/lld/test/ELF/arm-got-relative.s | 3 +- deps/lld/test/ELF/arm-gotoff.s | 3 +- deps/lld/test/ELF/arm-icf-exidx.s | 1 + deps/lld/test/ELF/arm-mov-relocs.s | 2 + deps/lld/test/ELF/arm-pie-relative.s | 4 +- deps/lld/test/ELF/arm-plt-reloc.s | 45 +- deps/lld/test/ELF/arm-sbrel32.s | 1 + deps/lld/test/ELF/arm-tag-vfp-args.s | 14 +- deps/lld/test/ELF/arm-target1.s | 1 + deps/lld/test/ELF/arm-thumb-blx.s | 5 + deps/lld/test/ELF/arm-thumb-branch-rangethunk.s | 1 + deps/lld/test/ELF/arm-thumb-branch.s | 5 + deps/lld/test/ELF/arm-thumb-condbranch-thunk.s | 1 + deps/lld/test/ELF/arm-thumb-interwork-shared.s | 8 +- deps/lld/test/ELF/arm-thumb-interwork-thunk.s | 12 +- deps/lld/test/ELF/arm-thumb-narrow-branch-check.s | 7 + deps/lld/test/ELF/arm-thumb-no-undefined-thunk.s | 1 + deps/lld/test/ELF/arm-thumb-plt-range-thunk-os.s | 10 +- deps/lld/test/ELF/arm-thumb-plt-reloc.s | 29 +- deps/lld/test/ELF/arm-thumb-range-thunk-os.s | 1 + deps/lld/test/ELF/arm-thumb-thunk-empty-pass.s | 1 + deps/lld/test/ELF/arm-thumb-thunk-v6m.s | 4 + deps/lld/test/ELF/arm-thumb-undefined-weak-narrow.test | 29 +- deps/lld/test/ELF/arm-thumb-undefined-weak.s | 1 + deps/lld/test/ELF/arm-thunk-largesection.s | 1 + deps/lld/test/ELF/arm-thunk-linkerscript-dotexpr.s | 1 + deps/lld/test/ELF/arm-thunk-linkerscript-large.s | 3 + deps/lld/test/ELF/arm-thunk-linkerscript-orphan.s | 3 + deps/lld/test/ELF/arm-thunk-linkerscript.s | 2 + deps/lld/test/ELF/arm-thunk-multipass-plt.s | 95 + deps/lld/test/ELF/arm-thunk-re-add.s | 7 +- deps/lld/test/ELF/arm-tls-gd32.s | 5 +- deps/lld/test/ELF/arm-tls-ie32.s | 3 +- deps/lld/test/ELF/arm-tls-ldm32.s | 4 +- deps/lld/test/ELF/arm-tls-le32.s | 15 +- deps/lld/test/ELF/arm-tls-norelax-gd-ie.s | 8 +- deps/lld/test/ELF/arm-tls-norelax-gd-le.s | 2 +- deps/lld/test/ELF/arm-tls-norelax-ie-le.s | 4 +- deps/lld/test/ELF/arm-tls-norelax-ld-le.s | 2 +- deps/lld/test/ELF/arm-undefined-weak.s | 1 + deps/lld/test/ELF/arm-v4bx.test | 15 +- deps/lld/test/ELF/as-needed-weak.s | 7 +- deps/lld/test/ELF/as-needed.s | 12 +- deps/lld/test/ELF/assignment-archive.s | 4 +- deps/lld/test/ELF/avoid-empty-program-headers.s | 2 +- deps/lld/test/ELF/bad-reloc-target.test | 29 - deps/lld/test/ELF/basic-aarch64.s | 2 +- deps/lld/test/ELF/basic-freebsd.s | 2 +- deps/lld/test/ELF/basic-i386.s | 179 ++ deps/lld/test/ELF/basic-mips.s | 70 +- deps/lld/test/ELF/basic-ppc.s | 206 +- deps/lld/test/ELF/basic-ppc64.s | 90 +- deps/lld/test/ELF/basic-sparcv9.s | 2 +- deps/lld/test/ELF/basic.s | 9 +- deps/lld/test/ELF/basic32.s | 179 -- deps/lld/test/ELF/basic64be.s | 217 -- deps/lld/test/ELF/bss-start-common.s | 2 +- deps/lld/test/ELF/bss.s | 2 +- deps/lld/test/ELF/bsymbolic-undef.s | 2 +- deps/lld/test/ELF/bsymbolic.s | 6 +- deps/lld/test/ELF/build-id.s | 8 +- deps/lld/test/ELF/cgprofile-bad-clusters.s | 2 +- deps/lld/test/ELF/cgprofile-icf.s | 4 +- deps/lld/test/ELF/cgprofile-print.s | 37 + deps/lld/test/ELF/cgprofile-reproduce.s | 42 + deps/lld/test/ELF/cgprofile-txt.s | 4 +- deps/lld/test/ELF/cgprofile-txt2.s | 2 +- deps/lld/test/ELF/color-diagnostics.test | 2 +- deps/lld/test/ELF/combreloc.s | 48 + deps/lld/test/ELF/combrelocs.s | 95 - deps/lld/test/ELF/comdat-discarded-error.s | 28 + deps/lld/test/ELF/comdat-discarded-gdb-index.s | 63 + deps/lld/test/ELF/comdat-discarded-ppc64.s | 17 + deps/lld/test/ELF/comdat-discarded-reloc.s | 39 +- deps/lld/test/ELF/comdat.s | 8 +- deps/lld/test/ELF/common-gc.s | 4 +- deps/lld/test/ELF/common-page.s | 223 ++ deps/lld/test/ELF/common.s | 2 +- deps/lld/test/ELF/compress-debug-sections.s | 4 +- deps/lld/test/ELF/compressed-debug-conflict.s | 2 +- deps/lld/test/ELF/compressed-debug-input.s | 10 +- deps/lld/test/ELF/compressed-input-alignment.test | 67 + deps/lld/test/ELF/copy-rel-pie.s | 13 +- deps/lld/test/ELF/copy-rel-version.s | 2 +- deps/lld/test/ELF/copy-relocation-zero-abs-addr.s | 4 +- deps/lld/test/ELF/debug-gnu-pubnames.s | 4 +- deps/lld/test/ELF/debug-line-obj.s | 175 ++ deps/lld/test/ELF/debug-line-str.s | 3 +- deps/lld/test/ELF/debug-relocation-none.test | 9 +- deps/lld/test/ELF/defsym-reserved-syms.s | 4 +- deps/lld/test/ELF/defsym.s | 9 +- deps/lld/test/ELF/deplibs-colon-prefix.s | 15 + deps/lld/test/ELF/deplibs-corrupt.s | 8 + deps/lld/test/ELF/deplibs.s | 56 + deps/lld/test/ELF/discard-locals.s | 2 +- deps/lld/test/ELF/discard-merge-locals.s | 2 +- deps/lld/test/ELF/discard-merge-unnamed.s | 2 +- deps/lld/test/ELF/discard-none.s | 2 +- deps/lld/test/ELF/driver.test | 10 +- deps/lld/test/ELF/dso-undef-size.s | 2 +- deps/lld/test/ELF/dso_handle.s | 2 +- deps/lld/test/ELF/dt_flags.s | 6 +- deps/lld/test/ELF/dt_tags.s | 4 +- deps/lld/test/ELF/dtrace-r.test | 8 - deps/lld/test/ELF/dynamic-got-rela.s | 6 +- deps/lld/test/ELF/dynamic-got.s | 46 +- deps/lld/test/ELF/dynamic-list-preempt-replace-symbol.s | 14 + deps/lld/test/ELF/dynamic-list-preempt.s | 9 +- deps/lld/test/ELF/dynamic-list-weak-archive.s | 2 +- deps/lld/test/ELF/dynamic-list-wildcard.s | 2 +- deps/lld/test/ELF/dynamic-list.s | 16 +- deps/lld/test/ELF/dynamic-no-rosegment.s | 2 +- deps/lld/test/ELF/dynamic-reloc-index.s | 2 +- deps/lld/test/ELF/dynamic-reloc.s | 6 +- deps/lld/test/ELF/dynamic.s | 4 +- deps/lld/test/ELF/dynsym-no-rosegment.s | 2 +- deps/lld/test/ELF/dynsym-pie.s | 2 +- deps/lld/test/ELF/edata-etext.s | 2 +- deps/lld/test/ELF/eh-align-cie.s | 4 +- deps/lld/test/ELF/eh-frame-begin-end.s | 2 +- deps/lld/test/ELF/eh-frame-gc.s | 2 +- deps/lld/test/ELF/eh-frame-gc2.s | 2 +- deps/lld/test/ELF/eh-frame-hdr-abs-fde.s | 18 +- deps/lld/test/ELF/eh-frame-hdr-augmentation.s | 4 +- deps/lld/test/ELF/eh-frame-hdr-icf-fde.s | 2 +- deps/lld/test/ELF/eh-frame-hdr-no-out2.s | 2 +- deps/lld/test/ELF/eh-frame-hdr.s | 29 +- deps/lld/test/ELF/eh-frame-marker.s | 2 +- deps/lld/test/ELF/eh-frame-merge.s | 2 +- deps/lld/test/ELF/eh-frame-negative-pcrel-sdata2.s | 2 +- deps/lld/test/ELF/eh-frame-negative-pcrel-sdata4.s | 2 +- deps/lld/test/ELF/eh-frame-negative-pcrel-sdata8.s | 2 +- deps/lld/test/ELF/eh-frame-padding-no-rosegment.s | 6 +- deps/lld/test/ELF/eh-frame-type.test | 2 +- deps/lld/test/ELF/eh-frame-value-format7.s | 2 +- deps/lld/test/ELF/eh-frame-value-format8.s | 2 +- deps/lld/test/ELF/ehdr_start.s | 4 +- deps/lld/test/ELF/ehframe-relocation.s | 3 +- deps/lld/test/ELF/elf-header.s | 4 +- deps/lld/test/ELF/emit-relocs-merge.s | 8 +- deps/lld/test/ELF/emit-relocs-mergeable-i386.s | 2 +- deps/lld/test/ELF/emit-relocs-mergeable.s | 2 +- deps/lld/test/ELF/emit-relocs-mergeable2.s | 14 + deps/lld/test/ELF/emit-relocs-shared.s | 4 +- deps/lld/test/ELF/emit-relocs.s | 6 +- deps/lld/test/ELF/empty-pack-dyn-relocs.s | 2 +- deps/lld/test/ELF/empty-pt-load.s | 2 +- deps/lld/test/ELF/empty-ver.s | 2 +- deps/lld/test/ELF/empty-ver2.s | 2 +- deps/lld/test/ELF/emulation-aarch64.s | 12 +- deps/lld/test/ELF/emulation-arm.s | 8 +- deps/lld/test/ELF/emulation-mips.s | 42 +- deps/lld/test/ELF/emulation-ppc.s | 22 +- deps/lld/test/ELF/emulation-riscv.s | 74 + deps/lld/test/ELF/emulation-x86.s | 38 +- deps/lld/test/ELF/end-update.s | 2 +- deps/lld/test/ELF/end.s | 2 +- deps/lld/test/ELF/entry.s | 14 +- deps/lld/test/ELF/exclude-discarded-error.s | 15 + deps/lld/test/ELF/exclude-discarded-error2.s | 14 + deps/lld/test/ELF/exclude-libs.s | 16 +- deps/lld/test/ELF/executable-undefined-ignoreall.s | 2 +- deps/lld/test/ELF/executable-undefined-protected-ignoreall.s | 2 +- deps/lld/test/ELF/fill-trap-ppc.s | 4 +- deps/lld/test/ELF/fill-trap.s | 2 +- deps/lld/test/ELF/format-binary-non-ascii.s | 2 +- deps/lld/test/ELF/gc-debuginfo-tls.s | 4 +- deps/lld/test/ELF/gc-merge-local-sym.s | 2 +- deps/lld/test/ELF/gc-sections-alloc.s | 2 +- deps/lld/test/ELF/gc-sections-eh.s | 4 +- deps/lld/test/ELF/gc-sections-implicit-addend.s | 2 +- deps/lld/test/ELF/gc-sections-keep-shared-start.s | 2 +- deps/lld/test/ELF/gc-sections-linker-defined-symbol.s | 2 +- deps/lld/test/ELF/gc-sections-local-sym.s | 2 +- deps/lld/test/ELF/gc-sections-lsda.s | 2 +- deps/lld/test/ELF/gc-sections-merge-addend.s | 2 +- deps/lld/test/ELF/gc-sections-merge-implicit-addend.s | 2 +- deps/lld/test/ELF/gc-sections-merge.s | 4 +- deps/lld/test/ELF/gc-sections-metadata-startstop.s | 2 +- deps/lld/test/ELF/gc-sections-non-alloc-to-merge.s | 2 +- deps/lld/test/ELF/gc-sections-protected.s | 2 +- deps/lld/test/ELF/gc-sections-synthetic.s | 2 +- deps/lld/test/ELF/gc-sections-undefined.s | 2 +- deps/lld/test/ELF/gc-sections-weak.s | 2 +- deps/lld/test/ELF/gc-sections.s | 6 +- deps/lld/test/ELF/gdb-index-invalid-section-index.yaml | 140 ++ deps/lld/test/ELF/gdb-index-multiple-cu-2.s | 4 +- deps/lld/test/ELF/gdb-index-multiple-cu.s | 12 +- deps/lld/test/ELF/gdb-index-ranges-discarded.s | 51 + deps/lld/test/ELF/gdb-index.s | 3 +- deps/lld/test/ELF/global-offset-table-position-aarch64.s | 4 +- deps/lld/test/ELF/global-offset-table-position-arm.s | 4 +- deps/lld/test/ELF/global-offset-table-position-i386.s | 4 +- deps/lld/test/ELF/global-offset-table-position-mips.s | 2 +- deps/lld/test/ELF/global-offset-table-position.s | 4 +- deps/lld/test/ELF/global_offset_table_shared.s | 4 +- deps/lld/test/ELF/gnu-hash-table-rwsegment.s | 2 +- deps/lld/test/ELF/gnu-hash-table.s | 10 +- deps/lld/test/ELF/gnu-ifunc-canon.s | 92 + deps/lld/test/ELF/gnu-ifunc-dso.s | 4 +- deps/lld/test/ELF/gnu-ifunc-dyntags.s | 12 +- deps/lld/test/ELF/gnu-ifunc-gotpcrel.s | 2 +- deps/lld/test/ELF/gnu-ifunc-i386.s | 40 +- deps/lld/test/ELF/gnu-ifunc-noplt-i386.s | 71 + deps/lld/test/ELF/gnu-ifunc-noplt.s | 68 + deps/lld/test/ELF/gnu-ifunc-nosym-i386.s | 2 +- deps/lld/test/ELF/gnu-ifunc-nosym.s | 2 +- deps/lld/test/ELF/gnu-ifunc-plt-i386.s | 29 +- deps/lld/test/ELF/gnu-ifunc-plt.s | 33 +- deps/lld/test/ELF/gnu-ifunc-relative.s | 2 +- deps/lld/test/ELF/gnu-ifunc-shared.s | 19 +- deps/lld/test/ELF/gnu-ifunc.s | 5 +- deps/lld/test/ELF/gnu-unique.s | 6 +- deps/lld/test/ELF/gnustack.s | 6 +- deps/lld/test/ELF/got-aarch64.s | 40 - deps/lld/test/ELF/got-i386.s | 17 +- deps/lld/test/ELF/got-plt-header.s | 22 +- deps/lld/test/ELF/got.s | 2 +- deps/lld/test/ELF/got32-i386.s | 2 +- deps/lld/test/ELF/got32x-i386.s | 12 +- deps/lld/test/ELF/gotpc-relax-nopic.s | 30 +- deps/lld/test/ELF/gotpc-relax-und-dso.s | 3 +- deps/lld/test/ELF/gotpc-relax.s | 1 + deps/lld/test/ELF/gotpcrelx.s | 2 +- deps/lld/test/ELF/hexagon-shared.s | 14 +- deps/lld/test/ELF/hidden-shared-err.s | 2 +- deps/lld/test/ELF/i386-cet.s | 47 + deps/lld/test/ELF/i386-debug-noabs.test | 4 +- deps/lld/test/ELF/i386-got-and-copy.s | 2 +- deps/lld/test/ELF/i386-gotoff-shared.s | 16 +- deps/lld/test/ELF/i386-gotpc-dynamic.s | 23 +- deps/lld/test/ELF/i386-gotpc.s | 23 +- deps/lld/test/ELF/i386-merge.s | 10 +- deps/lld/test/ELF/i386-pc16.test | 12 +- deps/lld/test/ELF/i386-relax-reloc.s | 13 +- deps/lld/test/ELF/i386-reloc-16.s | 27 +- deps/lld/test/ELF/i386-reloc-8.s | 27 +- deps/lld/test/ELF/i386-reloc-large-addend.s | 1 + deps/lld/test/ELF/i386-reloc-range.s | 1 + deps/lld/test/ELF/i386-retpoline-nopic-linkerscript.s | 9 +- deps/lld/test/ELF/i386-retpoline-nopic.s | 11 +- deps/lld/test/ELF/i386-retpoline-pic-linkerscript.s | 9 +- deps/lld/test/ELF/i386-retpoline-pic.s | 13 +- deps/lld/test/ELF/i386-static-tls-model.s | 20 + deps/lld/test/ELF/i386-tls-ie-shared.s | 55 +- deps/lld/test/ELF/i386-tls-ld-preemptable.s | 18 + deps/lld/test/ELF/i386-tls-le-align.s | 29 + deps/lld/test/ELF/i386-tls-le-undef.s | 16 + deps/lld/test/ELF/icf-merged-sections.s | 4 +- deps/lld/test/ELF/icf-symbol-type.s | 2 +- deps/lld/test/ELF/icf10.s | 17 + deps/lld/test/ELF/icf10.test | 40 - deps/lld/test/ELF/icf11.test | 13 +- deps/lld/test/ELF/image-base.s | 4 +- deps/lld/test/ELF/init-fini-progbits.s | 2 +- deps/lld/test/ELF/init-fini.s | 12 +- deps/lld/test/ELF/invalid-relocations.test | 4 +- deps/lld/test/ELF/invalid-undef-section-symbol.test | 27 - deps/lld/test/ELF/invalid/Inputs/binding.elf | Bin 536 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/broken-relaxation-x64.elf | Bin 688 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/common-symbol-alignment.elf | Bin 456 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/common-symbol-alignment2.elf | Bin 456 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/data-encoding.a | Bin 156 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/dynamic-section-sh_size.elf | Bin 482 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/file-class.a | Bin 156 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/invalid-e_shnum.elf | Bin 64 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/mips-invalid-options-descriptor.elf | Bin 480 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/multiple-eh-relocs.elf | Bin 784 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/section-alignment-notpow2.elf | Bin 960 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/section-index.elf | Bin 544 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/symbol-index.elf | Bin 480 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/symbol-name-offset.elf | Bin 480 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/symtab-sh_info.elf | Bin 512 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/symtab-sh_info2.elf | Bin 470 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/symtab-sh_info3.elf | Bin 470 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/tls-symbol.elf | Bin 456 -> 0 bytes deps/lld/test/ELF/invalid/Inputs/undefined-local-symbol-in-dso.so | Bin 5080 -> 0 bytes deps/lld/test/ELF/invalid/bad-arm-attributes.s | 8 + deps/lld/test/ELF/invalid/bad-arm-attributes2.s | 8 + deps/lld/test/ELF/invalid/bad-reloc-target.test | 76 + deps/lld/test/ELF/invalid/broken-relaxation-x64.test | 13 +- deps/lld/test/ELF/invalid/comdat-broken.test | 4 +- deps/lld/test/ELF/invalid/common-symbol-alignment.s | 12 - deps/lld/test/ELF/invalid/common-symbol-alignment.test | 36 + deps/lld/test/ELF/invalid/data-encoding.test | 17 + deps/lld/test/ELF/invalid/dynamic-section-broken.test | 36 + deps/lld/test/ELF/invalid/dynamic-section-size.s | 4 - deps/lld/test/ELF/invalid/ehframe-broken-relocation.test | 12 +- deps/lld/test/ELF/invalid/invalid-binding.test | 19 + deps/lld/test/ELF/invalid/invalid-debug-relocations.test | 12 +- deps/lld/test/ELF/invalid/invalid-e_shnum.s | 3 - deps/lld/test/ELF/invalid/invalid-e_shnum.test | 15 + deps/lld/test/ELF/invalid/invalid-elf.test | 33 +- deps/lld/test/ELF/invalid/invalid-file-class.test | 19 + deps/lld/test/ELF/invalid/invalid-relocation-x64.test | 8 +- deps/lld/test/ELF/invalid/invalid-soname.test | 5 +- deps/lld/test/ELF/invalid/mips-invalid-options-descriptor.s | 5 - deps/lld/test/ELF/invalid/mips-invalid-options-descriptor.test | 21 + deps/lld/test/ELF/invalid/multiple-relocations-sections.test | 29 + deps/lld/test/ELF/invalid/reloc-section-reordered.test | 4 + deps/lld/test/ELF/invalid/section-alignment2.s | 21 +- deps/lld/test/ELF/invalid/section-index.test | 16 + deps/lld/test/ELF/invalid/sht-group-wrong-section.test | 4 +- deps/lld/test/ELF/invalid/symbol-index.s | 10 - deps/lld/test/ELF/invalid/symbol-name.s | 7 - deps/lld/test/ELF/invalid/symbol-name.test | 15 + deps/lld/test/ELF/invalid/symtab-sh-info.s | 68 +- deps/lld/test/ELF/invalid/symtab-symbols.test | 5 +- deps/lld/test/ELF/invalid/tls-symbol.s | 25 +- deps/lld/test/ELF/invalid/undefined-local-symbol-in-dso.test | 72 +- deps/lld/test/ELF/invalid/verdef-no-symtab.test | 9 +- deps/lld/test/ELF/invalid/x86-64-tlsdesc-gd.s | 15 + deps/lld/test/ELF/linkerscript/absolute-expr.test | 2 +- deps/lld/test/ELF/linkerscript/addr-zero.test | 14 +- deps/lld/test/ELF/linkerscript/addr.test | 2 +- deps/lld/test/ELF/linkerscript/align-empty.test | 2 +- deps/lld/test/ELF/linkerscript/align1.test | 4 +- deps/lld/test/ELF/linkerscript/align2.test | 2 +- deps/lld/test/ELF/linkerscript/align3.test | 2 +- deps/lld/test/ELF/linkerscript/alternate-sections.s | 2 +- deps/lld/test/ELF/linkerscript/arm-exidx-order.test | 4 +- deps/lld/test/ELF/linkerscript/arm-exidx-sentinel-and-assignment.s | 2 +- deps/lld/test/ELF/linkerscript/at-addr.s | 2 +- deps/lld/test/ELF/linkerscript/at-self-reference.s | 2 +- deps/lld/test/ELF/linkerscript/at.s | 2 +- deps/lld/test/ELF/linkerscript/at2.test | 4 +- deps/lld/test/ELF/linkerscript/at4.s | 2 +- deps/lld/test/ELF/linkerscript/comdat-gc.s | 2 +- deps/lld/test/ELF/linkerscript/common-assign.s | 2 +- deps/lld/test/ELF/linkerscript/common-exclude.s | 2 +- deps/lld/test/ELF/linkerscript/common-filespec.test | 2 +- deps/lld/test/ELF/linkerscript/common.s | 2 +- deps/lld/test/ELF/linkerscript/compress-debug-sections.s | 4 +- deps/lld/test/ELF/linkerscript/copy-rel-symbol-value.s | 2 +- deps/lld/test/ELF/linkerscript/data-segment-relro.test | 4 +- deps/lld/test/ELF/linkerscript/defsym.s | 4 +- deps/lld/test/ELF/linkerscript/discard-interp.test | 2 +- deps/lld/test/ELF/linkerscript/discard-phdr.s | 36 + deps/lld/test/ELF/linkerscript/dot-is-not-abs.s | 2 +- deps/lld/test/ELF/linkerscript/dynamic-sym.s | 2 +- deps/lld/test/ELF/linkerscript/dynamic.s | 2 +- deps/lld/test/ELF/linkerscript/eh-frame-merge.s | 20 + deps/lld/test/ELF/linkerscript/ehdr_start.s | 2 +- deps/lld/test/ELF/linkerscript/emit-reloc.s | 4 +- deps/lld/test/ELF/linkerscript/empty-link-order.test | 2 +- deps/lld/test/ELF/linkerscript/empty-relaplt-dyntags.test | 44 + deps/lld/test/ELF/linkerscript/empty-section-size.test | 2 +- deps/lld/test/ELF/linkerscript/empty-sections-expressions.test | 24 + deps/lld/test/ELF/linkerscript/empty-synthetic-removed-flags.s | 4 +- deps/lld/test/ELF/linkerscript/entry.s | 4 +- deps/lld/test/ELF/linkerscript/excludefile.s | 3 + deps/lld/test/ELF/linkerscript/extend-pt-load1.test | 2 +- deps/lld/test/ELF/linkerscript/extend-pt-load2.test | 6 +- deps/lld/test/ELF/linkerscript/extend-pt-load3.test | 2 +- deps/lld/test/ELF/linkerscript/fill.test | 7 +- deps/lld/test/ELF/linkerscript/header-addr.test | 4 +- deps/lld/test/ELF/linkerscript/header-phdr.test | 2 +- deps/lld/test/ELF/linkerscript/info-section-type.s | 14 +- deps/lld/test/ELF/linkerscript/insert-after.test | 2 +- deps/lld/test/ELF/linkerscript/insert-before.test | 2 +- deps/lld/test/ELF/linkerscript/lazy-symbols.test | 2 +- deps/lld/test/ELF/linkerscript/linkerscript.s | 2 +- deps/lld/test/ELF/linkerscript/locationcountererr2.s | 2 +- deps/lld/test/ELF/linkerscript/memory-at.test | 2 +- deps/lld/test/ELF/linkerscript/memory-region-alignment.test | 2 +- deps/lld/test/ELF/linkerscript/memory3.s | 2 +- deps/lld/test/ELF/linkerscript/memory5.test | 4 +- deps/lld/test/ELF/linkerscript/merge-sections.s | 6 +- deps/lld/test/ELF/linkerscript/multi-sections-constraint.s | 4 +- deps/lld/test/ELF/linkerscript/multiple-tbss.s | 2 +- deps/lld/test/ELF/linkerscript/nmagic-alignment.test | 85 + deps/lld/test/ELF/linkerscript/nobits-offset.s | 25 +- deps/lld/test/ELF/linkerscript/noload.s | 2 +- deps/lld/test/ELF/linkerscript/non-absolute.s | 3 +- deps/lld/test/ELF/linkerscript/non-absolute2.test | 2 +- deps/lld/test/ELF/linkerscript/numbers.s | 4 +- deps/lld/test/ELF/linkerscript/obj-symbol-value.s | 2 +- deps/lld/test/ELF/linkerscript/openbsd-bootdata.test | 2 +- deps/lld/test/ELF/linkerscript/openbsd-randomize.s | 2 +- deps/lld/test/ELF/linkerscript/orphan-first-cmd.test | 2 +- deps/lld/test/ELF/linkerscript/orphan-live-only.s | 42 + deps/lld/test/ELF/linkerscript/orphan-phdrs.s | 8 +- deps/lld/test/ELF/linkerscript/orphan-report.s | 4 +- deps/lld/test/ELF/linkerscript/orphan.s | 10 +- deps/lld/test/ELF/linkerscript/out-of-order-section-in-region.test | 20 + deps/lld/test/ELF/linkerscript/out-of-order.s | 6 +- deps/lld/test/ELF/linkerscript/output-too-large-32bit.s | 11 + deps/lld/test/ELF/linkerscript/outsections-addr.s | 2 +- deps/lld/test/ELF/linkerscript/overlapping-sections.s | 22 +- deps/lld/test/ELF/linkerscript/overlay.test | 2 +- deps/lld/test/ELF/linkerscript/page-size-align.test | 2 +- deps/lld/test/ELF/linkerscript/page-size.s | 2 +- deps/lld/test/ELF/linkerscript/phdr-check.s | 2 +- deps/lld/test/ELF/linkerscript/phdrs-flags.s | 4 +- deps/lld/test/ELF/linkerscript/phdrs.s | 10 +- deps/lld/test/ELF/linkerscript/provide-empty-section.s | 8 +- deps/lld/test/ELF/linkerscript/provide-shared2.s | 2 +- deps/lld/test/ELF/linkerscript/pt-interp.test | 6 +- deps/lld/test/ELF/linkerscript/quoted-section-name.test | 13 + deps/lld/test/ELF/linkerscript/relocatable-discard.s | 2 +- deps/lld/test/ELF/linkerscript/repsection-symbol.s | 8 +- deps/lld/test/ELF/linkerscript/repsection-va.s | 2 +- deps/lld/test/ELF/linkerscript/section-align.s | 2 +- deps/lld/test/ELF/linkerscript/sections-constraint2.s | 2 +- deps/lld/test/ELF/linkerscript/sections-constraint3.s | 2 +- deps/lld/test/ELF/linkerscript/sections-constraint4.s | 2 +- deps/lld/test/ELF/linkerscript/sections-constraint5.s | 2 +- deps/lld/test/ELF/linkerscript/sections-gc2.s | 2 +- deps/lld/test/ELF/linkerscript/sections-padding.s | 33 +- deps/lld/test/ELF/linkerscript/segment-none.s | 2 +- deps/lld/test/ELF/linkerscript/sort-non-script.s | 2 +- deps/lld/test/ELF/linkerscript/symbol-alias-relocation.s | 36 + deps/lld/test/ELF/linkerscript/symbol-location.s | 11 +- deps/lld/test/ELF/linkerscript/symbol-only-align.test | 35 + deps/lld/test/ELF/linkerscript/symbol-only-flags.test | 4 +- deps/lld/test/ELF/linkerscript/symbol-only.test | 2 +- deps/lld/test/ELF/linkerscript/symbol-pie.s | 19 + deps/lld/test/ELF/linkerscript/tbss.s | 2 +- deps/lld/test/ELF/linkerscript/ttext-script.s | 2 +- deps/lld/test/ELF/linkerscript/va.s | 2 +- deps/lld/test/ELF/linkerscript/version-linker-symbol.s | 4 +- deps/lld/test/ELF/linkerscript/visibility.s | 4 +- deps/lld/test/ELF/local-dynamic.s | 2 +- deps/lld/test/ELF/local-got-pie.s | 3 +- deps/lld/test/ELF/local-got-shared.s | 2 +- deps/lld/test/ELF/local-got.s | 2 +- deps/lld/test/ELF/local-symbols-order.s | 2 +- deps/lld/test/ELF/local-undefined-symbol.s | 8 +- deps/lld/test/ELF/local.s | 2 +- deps/lld/test/ELF/lto/Inputs/irmover-warning.ll | 10 + deps/lld/test/ELF/lto/Inputs/obj-path.ll | 7 + deps/lld/test/ELF/lto/archive-2.ll | 4 +- deps/lld/test/ELF/lto/archive-no-index.ll | 17 +- deps/lld/test/ELF/lto/archive.ll | 4 +- deps/lld/test/ELF/lto/comdat.ll | 2 +- deps/lld/test/ELF/lto/comdat2.ll | 4 +- deps/lld/test/ELF/lto/common.ll | 2 +- deps/lld/test/ELF/lto/common2.ll | 2 +- deps/lld/test/ELF/lto/common4.ll | 21 + deps/lld/test/ELF/lto/ctors.ll | 2 +- deps/lld/test/ELF/lto/defsym.ll | 14 +- deps/lld/test/ELF/lto/deplibs.s | 15 + deps/lld/test/ELF/lto/dynamic-list.ll | 2 +- deps/lld/test/ELF/lto/dynsym.ll | 4 +- deps/lld/test/ELF/lto/irmover-warning.ll | 23 + deps/lld/test/ELF/lto/linker-script-symbols-assign.ll | 6 +- deps/lld/test/ELF/lto/linker-script-symbols.ll | 3 +- deps/lld/test/ELF/lto/lto-start.ll | 2 +- deps/lld/test/ELF/lto/obj-path.ll | 35 + deps/lld/test/ELF/lto/opt-remarks.ll | 10 +- deps/lld/test/ELF/lto/parallel-internalize.ll | 2 +- deps/lld/test/ELF/lto/relocatable.ll | 4 +- deps/lld/test/ELF/lto/resolution.ll | 2 +- deps/lld/test/ELF/lto/riscv32.ll | 10 + deps/lld/test/ELF/lto/riscv64.ll | 10 + deps/lld/test/ELF/lto/setting-dso-local.ll | 2 +- deps/lld/test/ELF/lto/shlib-undefined.ll | 2 +- deps/lld/test/ELF/lto/thinlto-cant-write-index.ll | 3 +- deps/lld/test/ELF/lto/thinlto-index-only.ll | 12 +- deps/lld/test/ELF/lto/tls-preserve.ll | 2 +- deps/lld/test/ELF/lto/undef-mixed.ll | 2 +- deps/lld/test/ELF/lto/undef-weak.ll | 2 +- deps/lld/test/ELF/lto/undef.ll | 2 +- deps/lld/test/ELF/lto/undefined-puts.ll | 4 +- deps/lld/test/ELF/lto/version-script.ll | 2 +- deps/lld/test/ELF/lto/version-script2.ll | 2 +- deps/lld/test/ELF/lto/visibility.ll | 4 +- deps/lld/test/ELF/lto/weak.ll | 2 +- deps/lld/test/ELF/lto/weakodr-visibility.ll | 4 +- deps/lld/test/ELF/lto/wrap-1.ll | 4 +- deps/lld/test/ELF/lto/wrap-2.ll | 15 +- deps/lld/test/ELF/magic-page-combo-warn.s | 86 + deps/lld/test/ELF/many-alloc-sections.s | 2 +- deps/lld/test/ELF/many-sections.s | 6 +- deps/lld/test/ELF/map-file.s | 54 +- deps/lld/test/ELF/merge-align.s | 2 +- deps/lld/test/ELF/merge-align2.s | 35 + deps/lld/test/ELF/merge-entsize.s | 11 +- deps/lld/test/ELF/merge-entsize2.s | 49 + deps/lld/test/ELF/merge-gc-piece.s | 6 +- deps/lld/test/ELF/merge-gc-piece2.s | 2 +- deps/lld/test/ELF/merge-reloc-O0.s | 48 - deps/lld/test/ELF/merge-reloc.s | 2 +- deps/lld/test/ELF/merge-section-types.s | 6 +- deps/lld/test/ELF/merge-shared-str.s | 6 +- deps/lld/test/ELF/merge-shared.s | 6 +- deps/lld/test/ELF/merge-string-align.s | 2 +- deps/lld/test/ELF/merge-string-align2.s | 25 + deps/lld/test/ELF/merge-string-error.s | 2 +- deps/lld/test/ELF/merge-string.s | 6 +- deps/lld/test/ELF/merge-sym.s | 6 +- deps/lld/test/ELF/merge-to-non-alloc.s | 2 +- deps/lld/test/ELF/merge.s | 3 +- deps/lld/test/ELF/mips-26-mask.s | 1 + deps/lld/test/ELF/mips-26-n32-n64.s | 40 - deps/lld/test/ELF/mips-26.s | 5 +- deps/lld/test/ELF/mips-32.s | 10 +- deps/lld/test/ELF/mips-64-disp.s | 73 +- deps/lld/test/ELF/mips-64-got-overflow.s | 88 +- deps/lld/test/ELF/mips-64-got.s | 74 +- deps/lld/test/ELF/mips-64-gprel-so.s | 1 + deps/lld/test/ELF/mips-64.s | 2 +- deps/lld/test/ELF/mips-abs-got.s | 8 +- deps/lld/test/ELF/mips-call-hilo.s | 50 +- deps/lld/test/ELF/mips-call16.s | 3 +- deps/lld/test/ELF/mips-dynamic.s | 8 +- deps/lld/test/ELF/mips-dynsym-sort.s | 4 +- deps/lld/test/ELF/mips-elf-flags.s | 14 +- deps/lld/test/ELF/mips-got-and-copy.s | 2 +- deps/lld/test/ELF/mips-got-extsym.s | 2 +- deps/lld/test/ELF/mips-got-hilo.s | 3 +- deps/lld/test/ELF/mips-got-page-script.s | 2 +- deps/lld/test/ELF/mips-got-page.s | 2 +- deps/lld/test/ELF/mips-got-redundant.s | 2 +- deps/lld/test/ELF/mips-got-relocs.s | 115 +- deps/lld/test/ELF/mips-got-script.s | 2 +- deps/lld/test/ELF/mips-got-string.s | 18 +- deps/lld/test/ELF/mips-got-weak.s | 4 +- deps/lld/test/ELF/mips-got16-relocatable.s | 2 + deps/lld/test/ELF/mips-got16.s | 101 +- deps/lld/test/ELF/mips-gp-disp.s | 7 +- deps/lld/test/ELF/mips-gp-local.s | 1 + deps/lld/test/ELF/mips-gp-lowest.s | 2 +- deps/lld/test/ELF/mips-gprel-sec.s | 2 +- deps/lld/test/ELF/mips-gprel32-relocs-gp0.s | 4 +- deps/lld/test/ELF/mips-hilo-gp-disp.s | 2 + deps/lld/test/ELF/mips-hilo-hi-only.s | 1 + deps/lld/test/ELF/mips-hilo.s | 1 + deps/lld/test/ELF/mips-jalr.test | 25 +- deps/lld/test/ELF/mips-merge-abiflags.s | 4 +- deps/lld/test/ELF/mips-mgot.s | 42 +- deps/lld/test/ELF/mips-micro-bad-cross-calls.s | 15 + deps/lld/test/ELF/mips-micro-cross-calls.s | 44 + deps/lld/test/ELF/mips-micro-got.s | 2 +- deps/lld/test/ELF/mips-micro-jal.s | 9 +- deps/lld/test/ELF/mips-micro-plt.s | 6 +- deps/lld/test/ELF/mips-micro-relocs.s | 37 +- deps/lld/test/ELF/mips-micror6-relocs.s | 4 +- deps/lld/test/ELF/mips-n32-rels.s | 1 + deps/lld/test/ELF/mips-non-zero-gp0.s | 4 +- deps/lld/test/ELF/mips-npic-call-pic-os.s | 5 + deps/lld/test/ELF/mips-npic-call-pic-script.s | 5 + deps/lld/test/ELF/mips-npic-call-pic.s | 72 +- deps/lld/test/ELF/mips-options-r.test | 2 +- deps/lld/test/ELF/mips-options.s | 15 +- deps/lld/test/ELF/mips-pc-relocs.s | 1 + deps/lld/test/ELF/mips-plt-copy.s | 2 +- deps/lld/test/ELF/mips-plt-n32.s | 3 + deps/lld/test/ELF/mips-plt-n64.s | 42 + deps/lld/test/ELF/mips-plt-r6.s | 3 + deps/lld/test/ELF/mips-reginfo.s | 2 +- deps/lld/test/ELF/mips-sto-pic-flag.s | 2 +- deps/lld/test/ELF/mips-sto-plt.s | 2 +- deps/lld/test/ELF/mips-tls-64.s | 48 +- deps/lld/test/ELF/mips-tls-hilo.s | 4 +- deps/lld/test/ELF/mips-tls-static-64.s | 4 +- deps/lld/test/ELF/mips-tls-static.s | 6 +- deps/lld/test/ELF/mips-tls.s | 40 +- deps/lld/test/ELF/mips-xgot-order.s | 1 + deps/lld/test/ELF/msp430.s | 1 + deps/lld/test/ELF/new-dtags.test | 4 +- deps/lld/test/ELF/nmagic.s | 23 + deps/lld/test/ELF/no-discard-this_module.s | 2 +- deps/lld/test/ELF/no-inhibit-exec.s | 1 + deps/lld/test/ELF/nobits-offset.s | 21 + deps/lld/test/ELF/non-abs-reloc.s | 1 + deps/lld/test/ELF/non-alloc-link-order-gc.s | 1 + deps/lld/test/ELF/noplt-pie.s | 2 +- deps/lld/test/ELF/note-alignment.s | 36 + deps/lld/test/ELF/note-contiguous.s | 4 +- deps/lld/test/ELF/note-loadaddr.s | 2 +- deps/lld/test/ELF/note-multiple.s | 2 +- deps/lld/test/ELF/note-noalloc.s | 2 +- deps/lld/test/ELF/note-noalloc2.s | 2 +- deps/lld/test/ELF/note.s | 2 +- deps/lld/test/ELF/output-section.s | 2 +- deps/lld/test/ELF/pack-dyn-relocs-loop.s | 24 +- deps/lld/test/ELF/pack-dyn-relocs-tls-aarch64.s | 2 +- deps/lld/test/ELF/pack-dyn-relocs-tls-x86-64.s | 2 +- deps/lld/test/ELF/pack-dyn-relocs.s | 384 ++-- deps/lld/test/ELF/pack-dyn-relocs2.s | 72 +- deps/lld/test/ELF/partition-errors.s | 23 + deps/lld/test/ELF/partition-exidx.s | 49 + deps/lld/test/ELF/partition-icf.s | 50 + deps/lld/test/ELF/partition-move-to-main.s | 44 + deps/lld/test/ELF/partition-notes.s | 45 + deps/lld/test/ELF/partition-pack-dyn-relocs.s | 51 + deps/lld/test/ELF/partition-synthetic-sections.s | 241 +++ deps/lld/test/ELF/partition-thunk-reuse.s | 45 + deps/lld/test/ELF/partitions.s | 63 + deps/lld/test/ELF/phdr-align.s | 2 +- deps/lld/test/ELF/pie-weak.s | 6 +- deps/lld/test/ELF/pie.s | 10 +- deps/lld/test/ELF/plt-aarch64.s | 70 +- deps/lld/test/ELF/plt-i686.s | 64 +- deps/lld/test/ELF/plt.s | 40 +- deps/lld/test/ELF/ppc-rela.s | 2 +- deps/lld/test/ELF/ppc-relocs.s | 101 - deps/lld/test/ELF/ppc32-abs-pic.s | 23 + deps/lld/test/ELF/ppc32-call-stub-nopic.s | 81 + deps/lld/test/ELF/ppc32-call-stub-pic.s | 151 ++ deps/lld/test/ELF/ppc32-gnu-ifunc-nonpreemptable.s | 45 + deps/lld/test/ELF/ppc32-gnu-ifunc.s | 41 + deps/lld/test/ELF/ppc32-local-branch.s | 21 + deps/lld/test/ELF/ppc32-reloc-addr.s | 26 + deps/lld/test/ELF/ppc32-reloc-got.s | 36 + deps/lld/test/ELF/ppc32-reloc-rel.s | 34 + deps/lld/test/ELF/ppc32-tls-gd.s | 98 + deps/lld/test/ELF/ppc32-tls-ie.s | 67 + deps/lld/test/ELF/ppc32-tls-ld.s | 82 + deps/lld/test/ELF/ppc32-tls-le.s | 24 + deps/lld/test/ELF/ppc32-weak-undef-call.s | 19 + deps/lld/test/ELF/ppc64-abs32-dyn.s | 14 + deps/lld/test/ELF/ppc64-abs64-dyn.s | 29 + deps/lld/test/ELF/ppc64-addr16-error.s | 13 - deps/lld/test/ELF/ppc64-bsymbolic-toc-restore.s | 4 +- deps/lld/test/ELF/ppc64-call-reach.s | 56 +- deps/lld/test/ELF/ppc64-dtprel.s | 63 +- deps/lld/test/ELF/ppc64-dynamic-relocations.s | 50 - deps/lld/test/ELF/ppc64-entry-point.s | 40 +- deps/lld/test/ELF/ppc64-func-entry-points.s | 4 +- deps/lld/test/ELF/ppc64-gd-to-ie.s | 104 - deps/lld/test/ELF/ppc64-general-dynamic-tls.s | 112 - deps/lld/test/ELF/ppc64-got-indirect.s | 115 - deps/lld/test/ELF/ppc64-ifunc.s | 104 +- deps/lld/test/ELF/ppc64-initial-exec-tls.s | 102 - deps/lld/test/ELF/ppc64-ld-got-dtprel.s | 44 + deps/lld/test/ELF/ppc64-local-dynamic.s | 2 +- deps/lld/test/ELF/ppc64-local-entry.s | 47 + deps/lld/test/ELF/ppc64-long-branch-init.s | 44 + deps/lld/test/ELF/ppc64-long-branch-localentry-offset.s | 30 + deps/lld/test/ELF/ppc64-long-branch.s | 101 +- deps/lld/test/ELF/ppc64-plt-stub.s | 61 +- deps/lld/test/ELF/ppc64-rel-calls.s | 6 +- deps/lld/test/ELF/ppc64-reloc-addr.s | 25 + deps/lld/test/ELF/ppc64-reloc-rel.s | 58 + deps/lld/test/ELF/ppc64-relocs.s | 191 +- deps/lld/test/ELF/ppc64-shared-long_branch.s | 16 +- deps/lld/test/ELF/ppc64-sort-small-cm-relocs.s | 108 + deps/lld/test/ELF/ppc64-tls-gd-le-small.s | 61 - deps/lld/test/ELF/ppc64-tls-gd-le.s | 83 - deps/lld/test/ELF/ppc64-tls-gd.s | 102 + deps/lld/test/ELF/ppc64-tls-ie-le.s | 140 -- deps/lld/test/ELF/ppc64-tls-ie.s | 171 ++ deps/lld/test/ELF/ppc64-tls-ld-le.s | 8 +- deps/lld/test/ELF/ppc64-tls-ld-preemptable.s | 35 + deps/lld/test/ELF/ppc64-toc-addis-nop-lqsq.s | 5 +- deps/lld/test/ELF/ppc64-toc-addis-nop.s | 22 +- deps/lld/test/ELF/ppc64-toc-rel.s | 55 +- deps/lld/test/ELF/ppc64-toc-relax-constants.s | 61 + deps/lld/test/ELF/ppc64-toc-relax-jumptable.s | 73 + deps/lld/test/ELF/ppc64-toc-relax.s | 105 + deps/lld/test/ELF/ppc64-toc-restore-recursive-call.s | 17 +- deps/lld/test/ELF/ppc64-toc-restore.s | 41 +- deps/lld/test/ELF/ppc64-weak-undef-call-shared.s | 4 +- deps/lld/test/ELF/ppc64-weak-undef-call.s | 11 +- deps/lld/test/ELF/pr34660.s | 5 +- deps/lld/test/ELF/pr34872.s | 2 +- deps/lld/test/ELF/pr36475.s | 2 +- deps/lld/test/ELF/pre_init_fini_array.s | 2 +- deps/lld/test/ELF/pre_init_fini_array_missing.s | 2 + deps/lld/test/ELF/progname.s | 6 +- deps/lld/test/ELF/program-header-layout.s | 2 +- deps/lld/test/ELF/protected-shared.s | 2 +- deps/lld/test/ELF/push-state.s | 4 +- deps/lld/test/ELF/rel-addend-with-rela-input.s | 4 +- deps/lld/test/ELF/rel-offset.s | 4 +- deps/lld/test/ELF/relative-dynamic-reloc-pie.s | 8 +- deps/lld/test/ELF/relative-dynamic-reloc-ppc64.s | 71 - deps/lld/test/ELF/relative-dynamic-reloc.s | 6 +- deps/lld/test/ELF/relocatable-bss.s | 2 +- deps/lld/test/ELF/relocatable-comdat-multiple.s | 2 +- deps/lld/test/ELF/relocatable-comdat.s | 2 +- deps/lld/test/ELF/relocatable-comdat2.s | 2 +- deps/lld/test/ELF/relocatable-comment.s | 2 +- deps/lld/test/ELF/relocatable-common.s | 12 +- deps/lld/test/ELF/relocatable-compressed-input.s | 4 +- deps/lld/test/ELF/relocatable-eh-frame-hdr.s | 2 +- deps/lld/test/ELF/relocatable-eh-frame.s | 19 - deps/lld/test/ELF/relocatable-ehframe.s | 2 +- deps/lld/test/ELF/relocatable-empty-archive.s | 2 +- deps/lld/test/ELF/relocatable-many-sections.s | 16 +- deps/lld/test/ELF/relocatable-rel-iplt.s | 4 +- deps/lld/test/ELF/relocatable-script.s | 2 +- deps/lld/test/ELF/relocatable-section-symbol.s | 2 +- deps/lld/test/ELF/relocatable-symbol-name.s | 4 +- deps/lld/test/ELF/relocatable-symbols.s | 6 +- deps/lld/test/ELF/relocatable-visibility.s | 2 +- deps/lld/test/ELF/relocatable.s | 9 +- deps/lld/test/ELF/relocation-b-aarch64.test | 18 +- deps/lld/test/ELF/relocation-before-merge-start.s | 2 +- deps/lld/test/ELF/relocation-copy-align-common.s | 4 +- deps/lld/test/ELF/relocation-copy-align.s | 2 +- deps/lld/test/ELF/relocation-copy-flags.s | 14 +- deps/lld/test/ELF/relocation-copy-i686.s | 3 +- deps/lld/test/ELF/relocation-copy-relro.s | 2 +- deps/lld/test/ELF/relocation-copy.s | 3 +- deps/lld/test/ELF/relocation-dtrace.test | 24 - deps/lld/test/ELF/relocation-group.test | 6 +- deps/lld/test/ELF/relocation-i686.s | 31 +- deps/lld/test/ELF/relocation-local.s | 2 + deps/lld/test/ELF/relocation-non-alloc.s | 24 +- deps/lld/test/ELF/relocation-none-aarch64.s | 26 + deps/lld/test/ELF/relocation-none-aarch64.test | 24 - deps/lld/test/ELF/relocation-none-arm.s | 26 + deps/lld/test/ELF/relocation-none-i386.s | 26 + deps/lld/test/ELF/relocation-none-i686.test | 23 - deps/lld/test/ELF/relocation-none-x86-64.s | 26 + deps/lld/test/ELF/relocation-past-merge-end.s | 2 +- deps/lld/test/ELF/relocation-relative-synthetic.s | 2 +- deps/lld/test/ELF/relocation-relative-weak.s | 8 +- deps/lld/test/ELF/relocation-shared.s | 2 +- deps/lld/test/ELF/relocation-size-shared.s | 1 + deps/lld/test/ELF/relocation-size.s | 2 + deps/lld/test/ELF/relocation-undefined-weak.s | 2 +- deps/lld/test/ELF/relocation.s | 37 +- deps/lld/test/ELF/relro-bss.s | 44 + deps/lld/test/ELF/relro-non-contiguous.s | 6 +- deps/lld/test/ELF/relro-omagic.s | 4 +- deps/lld/test/ELF/relro-tls.s | 2 +- deps/lld/test/ELF/relro.s | 11 +- deps/lld/test/ELF/resolution-end.s | 2 +- deps/lld/test/ELF/resolution-shared.s | 2 +- deps/lld/test/ELF/resolution.s | 2 +- deps/lld/test/ELF/riscv-branch.s | 32 + deps/lld/test/ELF/riscv-branch.test | 119 - deps/lld/test/ELF/riscv-call.s | 32 + deps/lld/test/ELF/riscv-call.test | 95 - deps/lld/test/ELF/riscv-gp-dummy-sdata.s | 25 + deps/lld/test/ELF/riscv-gp.s | 26 + deps/lld/test/ELF/riscv-hi20-lo12.s | 40 + deps/lld/test/ELF/riscv-hi20-lo12.test | 86 - deps/lld/test/ELF/riscv-jal-error.test | 93 - deps/lld/test/ELF/riscv-jal.s | 34 + deps/lld/test/ELF/riscv-jal.test | 161 -- deps/lld/test/ELF/riscv-pcrel-hilo-error.s | 7 + deps/lld/test/ELF/riscv-pcrel-hilo.s | 45 + deps/lld/test/ELF/riscv-pcrel-hilo.test | 103 - deps/lld/test/ELF/riscv-plt.s | 103 + deps/lld/test/ELF/riscv-reloc-64-pic.s | 10 + deps/lld/test/ELF/riscv-reloc-add.s | 32 + deps/lld/test/ELF/riscv-reloc-copy.s | 23 + deps/lld/test/ELF/riscv-reloc-got.s | 65 + deps/lld/test/ELF/riscv-tls-gd.s | 124 ++ deps/lld/test/ELF/riscv-tls-ie.s | 82 + deps/lld/test/ELF/riscv-tls-ld.s | 90 + deps/lld/test/ELF/riscv-tls-le.s | 41 + deps/lld/test/ELF/riscv32-reloc-32-pic.s | 23 + deps/lld/test/ELF/riscv64-reloc-64-pic.s | 23 + deps/lld/test/ELF/rodynamic.s | 8 +- deps/lld/test/ELF/section-align-0.test | 6 +- deps/lld/test/ELF/section-layout.s | 9 +- deps/lld/test/ELF/section-name.s | 12 +- deps/lld/test/ELF/section-symbol.s | 2 +- deps/lld/test/ELF/section-symbols.test | 17 +- deps/lld/test/ELF/sectionstart-noallochdr.s | 2 +- deps/lld/test/ELF/sectionstart.s | 8 +- deps/lld/test/ELF/segments.s | 48 +- deps/lld/test/ELF/shared-ppc64.s | 10 +- deps/lld/test/ELF/shared.s | 10 +- deps/lld/test/ELF/shf-info-link.test | 6 +- deps/lld/test/ELF/sht-group-empty.test | 10 +- deps/lld/test/ELF/silent-ignore.test | 3 + deps/lld/test/ELF/sort-norosegment.s | 2 +- deps/lld/test/ELF/start-lib-comdat.s | 4 +- deps/lld/test/ELF/startstop-gccollect.s | 4 + deps/lld/test/ELF/startstop-shared.s | 2 +- deps/lld/test/ELF/startstop.s | 8 +- deps/lld/test/ELF/static-with-export-dynamic.s | 2 +- deps/lld/test/ELF/stdout.s | 15 + deps/lld/test/ELF/string-gc.s | 2 +- deps/lld/test/ELF/string-table.s | 2 +- deps/lld/test/ELF/strip-debug.s | 6 +- deps/lld/test/ELF/symbol-ordering-file-cgprofile-conflicts.s | 66 + deps/lld/test/ELF/symbol-override.s | 2 +- deps/lld/test/ELF/symbols.s | 2 +- deps/lld/test/ELF/synthetic-got.s | 14 +- deps/lld/test/ELF/sysv-hash-no-rosegment.s | 2 +- deps/lld/test/ELF/tail-merge-string-align.s | 2 +- deps/lld/test/ELF/tls-align.s | 21 - deps/lld/test/ELF/tls-dynamic-i686.s | 51 +- deps/lld/test/ELF/tls-dynamic.s | 29 +- deps/lld/test/ELF/tls-got.s | 33 +- deps/lld/test/ELF/tls-i686.s | 2 + deps/lld/test/ELF/tls-initial-exec-local.s | 17 +- deps/lld/test/ELF/tls-offset.s | 4 +- deps/lld/test/ELF/tls-opt-gdie.s | 3 +- deps/lld/test/ELF/tls-opt-gdiele-i686.s | 7 +- deps/lld/test/ELF/tls-opt-i686.s | 1 + deps/lld/test/ELF/tls-opt-iele-i686-nopic.s | 47 +- deps/lld/test/ELF/tls-opt-local.s | 1 + deps/lld/test/ELF/tls-opt-no-plt.s | 2 +- deps/lld/test/ELF/tls-relocatable.s | 2 +- deps/lld/test/ELF/tls.s | 3 +- deps/lld/test/ELF/trace-symbols.s | 27 +- deps/lld/test/ELF/trace.s | 2 +- deps/lld/test/ELF/ttext-tdata-tbss.s | 8 +- deps/lld/test/ELF/undef-broken-debug.test | 25 +- deps/lld/test/ELF/undef-multi.s | 65 + deps/lld/test/ELF/undef-shared.s | 6 +- deps/lld/test/ELF/undef-shared2.s | 2 +- deps/lld/test/ELF/undef-version-script.s | 2 +- deps/lld/test/ELF/undef-with-plt-addr-i686.s | 2 +- deps/lld/test/ELF/undef-with-plt-addr.s | 6 +- deps/lld/test/ELF/undefined-glob.s | 58 + deps/lld/test/ELF/undefined-opt.s | 2 +- deps/lld/test/ELF/undefined-versioned-symbol.s | 12 +- deps/lld/test/ELF/unresolved-symbols.s | 6 +- deps/lld/test/ELF/verdef-defaultver.s | 34 +- deps/lld/test/ELF/verdef-dependency.s | 2 +- deps/lld/test/ELF/verdef.s | 8 +- deps/lld/test/ELF/verneed.s | 58 +- deps/lld/test/ELF/version-exclude-libs.s | 4 +- deps/lld/test/ELF/version-script-anonymous-local.s | 2 +- deps/lld/test/ELF/version-script-copy-rel.s | 2 +- deps/lld/test/ELF/version-script-extern-exact.s | 4 +- deps/lld/test/ELF/version-script-extern-wildcards-anon.s | 2 +- deps/lld/test/ELF/version-script-extern-wildcards.s | 2 +- deps/lld/test/ELF/version-script-extern.s | 2 +- deps/lld/test/ELF/version-script-glob.s | 2 +- deps/lld/test/ELF/version-script-hide-so-symbol.s | 2 +- deps/lld/test/ELF/version-script-locals.s | 6 +- deps/lld/test/ELF/version-script-reassign.s | 36 + deps/lld/test/ELF/version-script-twice.s | 2 +- deps/lld/test/ELF/version-script-weak.s | 4 +- deps/lld/test/ELF/version-script.s | 18 +- deps/lld/test/ELF/version-use.s | 2 +- deps/lld/test/ELF/version-wildcard.test | 4 +- deps/lld/test/ELF/visibility.s | 2 +- deps/lld/test/ELF/vs-diagnostics-duplicate.s | 63 + deps/lld/test/ELF/vs-diagnostics-dynamic-relocation.s | 35 + deps/lld/test/ELF/vs-diagnostics-undefined-symbol-1.s | 15 + deps/lld/test/ELF/vs-diagnostics-undefined-symbol-2.s | 18 + deps/lld/test/ELF/vs-diagnostics-undefined-symbol-3.s | 40 + deps/lld/test/ELF/vs-diagnostics-versionscript.s | 5 + deps/lld/test/ELF/warn-unresolved-symbols-hidden.s | 4 +- deps/lld/test/ELF/weak-undef-export.s | 2 +- deps/lld/test/ELF/weak-undef-hidden.s | 2 +- deps/lld/test/ELF/weak-undef-lib.s | 2 +- deps/lld/test/ELF/weak-undef-no-shared-libs.s | 28 + deps/lld/test/ELF/weak-undef-rw.s | 8 +- deps/lld/test/ELF/weak-undef-shared.s | 52 +- deps/lld/test/ELF/weak-undef-shared2.s | 21 + deps/lld/test/ELF/weak-undef-val.s | 2 +- deps/lld/test/ELF/weak-undef.s | 6 +- deps/lld/test/ELF/wrap-dynamic-undef.s | 2 +- deps/lld/test/ELF/wrap-entry.s | 2 +- deps/lld/test/ELF/wrap-plt.s | 6 +- deps/lld/test/ELF/wrap.s | 2 +- deps/lld/test/ELF/x86-64-cet.s | 48 + deps/lld/test/ELF/x86-64-dyn-rel-error5.s | 26 + deps/lld/test/ELF/x86-64-pcrel.s | 23 + deps/lld/test/ELF/x86-64-plt-high-addr.s | 8 +- deps/lld/test/ELF/x86-64-rela.s | 4 +- deps/lld/test/ELF/x86-64-reloc-16.s | 14 - deps/lld/test/ELF/x86-64-reloc-8-16.s | 25 + deps/lld/test/ELF/x86-64-reloc-8.s | 14 - deps/lld/test/ELF/x86-64-reloc-gotoff64.s | 18 +- deps/lld/test/ELF/x86-64-reloc-gotpc64.s | 6 +- deps/lld/test/ELF/x86-64-retpoline-linkerscript.s | 9 +- deps/lld/test/ELF/x86-64-retpoline-znow-linkerscript.s | 1 + deps/lld/test/ELF/x86-64-retpoline-znow.s | 1 + deps/lld/test/ELF/x86-64-retpoline.s | 15 +- deps/lld/test/ELF/x86-64-static-tls-model.s | 18 + deps/lld/test/ELF/x86-64-tls-gd-local.s | 10 +- deps/lld/test/ELF/x86-64-tls-ld-local.s | 2 +- deps/lld/test/ELF/x86-64-tls-ld-preemptable.s | 20 + deps/lld/test/ELF/x86-64-tls-le-align.s | 16 + deps/lld/test/ELF/x86-64-tls-le-undef.s | 15 + deps/lld/test/ELF/x86-64-tlsdesc-gd.s | 69 + deps/lld/test/ELF/x86-64-tlsdesc-ld.s | 45 + deps/lld/test/ELF/x86-property-relocatable.s | 36 + deps/lld/test/ELF/znotext-plt-relocations.s | 3 +- deps/lld/test/ELF/zstack-size.s | 6 +- deps/lld/test/ELF/ztext.s | 6 +- deps/lld/test/MinGW/driver.test | 53 + deps/lld/test/lit.cfg.py | 9 +- deps/lld/test/lit.site.cfg.py.in | 3 +- deps/lld/test/mach-o/arm-interworking.yaml | 2 +- deps/lld/test/mach-o/arm-shims.yaml | 2 +- deps/lld/test/mach-o/exe-offsets.yaml | 2 +- deps/lld/test/mach-o/exe-segment-overlap.yaml | 2 +- deps/lld/test/mach-o/executable-exports.yaml | 2 +- deps/lld/test/mach-o/export-trie-order.yaml | 2 +- deps/lld/test/mach-o/got-order.yaml | 2 +- deps/lld/test/mach-o/image-base.yaml | 2 +- deps/lld/test/mach-o/lazy-bind-x86_64.yaml | 2 +- deps/lld/test/mach-o/load-commands-size.yaml | 305 +++ deps/lld/test/mach-o/sectalign.yaml | 2 +- deps/lld/test/mach-o/subsections-via-symbols-default.yaml | 2 +- deps/lld/test/mach-o/write-final-sections.yaml | 2 +- deps/lld/test/wasm/Inputs/call-ret32.ll | 11 + deps/lld/test/wasm/Inputs/comdat1.ll | 23 +- deps/lld/test/wasm/Inputs/comdat2.ll | 23 +- deps/lld/test/wasm/Inputs/disallow-feature-foo.yaml | 13 + deps/lld/test/wasm/Inputs/explicit-section.ll | 4 + deps/lld/test/wasm/Inputs/globals.yaml | 2 +- deps/lld/test/wasm/Inputs/no-feature-foo.yaml | 11 + deps/lld/test/wasm/Inputs/require-feature-foo.yaml | 13 + deps/lld/test/wasm/Inputs/undefined-globals.yaml | 2 +- deps/lld/test/wasm/Inputs/use-feature-foo.yaml | 13 + deps/lld/test/wasm/alias.ll | 29 +- deps/lld/test/wasm/archive-export.ll | 22 +- deps/lld/test/wasm/archive-no-index.ll | 13 + deps/lld/test/wasm/archive-weak-undefined.ll | 19 + deps/lld/test/wasm/archive.ll | 8 +- deps/lld/test/wasm/call-indirect.ll | 57 +- deps/lld/test/wasm/comdats.ll | 49 +- deps/lld/test/wasm/corrupted.wasm.test | Bin 0 -> 251 bytes deps/lld/test/wasm/cxx-mangling.ll | 27 +- deps/lld/test/wasm/data-layout.ll | 40 +- deps/lld/test/wasm/data-segment-merging.ll | 127 +- deps/lld/test/wasm/data-segments.ll | 119 + deps/lld/test/wasm/emit-relocs-fpic.s | 20 + deps/lld/test/wasm/emit-relocs.ll | 39 + deps/lld/test/wasm/entry.ll | 14 +- deps/lld/test/wasm/export.ll | 27 +- deps/lld/test/wasm/fatal-warnings.ll | 4 +- deps/lld/test/wasm/function-imports-first.ll | 11 +- deps/lld/test/wasm/function-imports.ll | 13 +- deps/lld/test/wasm/gc-imports.ll | 4 +- deps/lld/test/wasm/gc-sections.ll | 18 +- deps/lld/test/wasm/global-base.test | 71 + deps/lld/test/wasm/import-memory.test | 4 +- deps/lld/test/wasm/init-fini-gc.ll | 48 + deps/lld/test/wasm/init-fini.ll | 218 +- deps/lld/test/wasm/large-memory.test | 5 + deps/lld/test/wasm/lit.local.cfg | 2 +- deps/lld/test/wasm/local-symbols.ll | 41 +- deps/lld/test/wasm/locals-duplicate.test | 158 +- deps/lld/test/wasm/lto/archive.ll | 4 +- deps/lld/test/wasm/lto/atomics.ll | 5 +- deps/lld/test/wasm/lto/comdat.ll | 17 + deps/lld/test/wasm/lto/export.ll | 10 +- deps/lld/test/wasm/lto/lto-start.ll | 2 - deps/lld/test/wasm/lto/opt-level.ll | 4 +- deps/lld/test/wasm/lto/relocatable.ll | 27 + deps/lld/test/wasm/lto/signature-mismatch.ll | 1 + deps/lld/test/wasm/lto/undef.ll | 20 +- deps/lld/test/wasm/lto/used.ll | 6 +- deps/lld/test/wasm/lto/weak-undefined.ll | 20 + deps/lld/test/wasm/lto/weak.ll | 7 +- deps/lld/test/wasm/many-functions.ll | 264 +-- deps/lld/test/wasm/pie.ll | 58 + deps/lld/test/wasm/reloc-addend.ll | 2 +- deps/lld/test/wasm/relocatable.ll | 370 ++-- deps/lld/test/wasm/reproduce.ll | 27 + deps/lld/test/wasm/section-symbol-relocs.yaml | 61 + deps/lld/test/wasm/shared-memory-no-atomics.yaml | 60 + deps/lld/test/wasm/shared-memory.yaml | 75 + deps/lld/test/wasm/shared-needed.ll | 38 + deps/lld/test/wasm/shared.ll | 101 +- deps/lld/test/wasm/signature-mismatch-export.ll | 30 + deps/lld/test/wasm/signature-mismatch-unknown.ll | 19 + deps/lld/test/wasm/signature-mismatch.ll | 53 +- deps/lld/test/wasm/stack-first.test | 11 +- deps/lld/test/wasm/stack-pointer.ll | 2 +- deps/lld/test/wasm/startstop.ll | 53 + deps/lld/test/wasm/target-feature-disallowed.yaml | 72 + deps/lld/test/wasm/target-feature-none.yaml | 33 + deps/lld/test/wasm/target-feature-required.yaml | 90 + deps/lld/test/wasm/target-feature-used.yaml | 97 + deps/lld/test/wasm/tls.ll | 79 + deps/lld/test/wasm/trace-symbol.ll | 28 + deps/lld/test/wasm/trace.test | 8 + deps/lld/test/wasm/undefined-data.ll | 17 + deps/lld/test/wasm/undefined-weak-call.ll | 37 +- deps/lld/test/wasm/undefined.ll | 5 +- deps/lld/test/wasm/version.ll | 2 +- deps/lld/test/wasm/visibility-hidden.ll | 20 +- deps/lld/test/wasm/weak-alias-overide.ll | 73 +- deps/lld/test/wasm/weak-alias.ll | 91 +- deps/lld/test/wasm/weak-symbols.ll | 51 +- deps/lld/test/wasm/weak-undefined.ll | 33 +- deps/lld/test/wasm/wrap.ll | 40 + deps/lld/tools/lld/CMakeLists.txt | 1 + deps/lld/tools/lld/lld.cpp | 107 +- deps/lld/unittests/DriverTests/DarwinLdDriverTest.cpp | 7 +- deps/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp | 7 +- deps/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp | 7 +- deps/lld/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp | 7 +- deps/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp | 7 +- deps/lld/utils/benchmark.py | 20 +- deps/lld/wasm/CMakeLists.txt | 4 +- deps/lld/wasm/Config.h | 93 +- deps/lld/wasm/Driver.cpp | 823 ++++--- deps/lld/wasm/InputChunks.cpp | 372 ++-- deps/lld/wasm/InputChunks.h | 163 +- deps/lld/wasm/InputEvent.h | 37 +- deps/lld/wasm/InputFiles.cpp | 642 +++--- deps/lld/wasm/InputFiles.h | 146 +- deps/lld/wasm/InputGlobal.h | 35 +- deps/lld/wasm/LTO.cpp | 161 +- deps/lld/wasm/LTO.h | 15 +- deps/lld/wasm/MarkLive.cpp | 131 +- deps/lld/wasm/MarkLive.h | 7 +- deps/lld/wasm/Options.td | 26 + deps/lld/wasm/OutputSections.cpp | 271 +-- deps/lld/wasm/OutputSections.h | 129 +- deps/lld/wasm/OutputSegment.h | 42 +- deps/lld/wasm/Relocations.cpp | 101 + deps/lld/wasm/Relocations.h | 22 + deps/lld/wasm/SymbolTable.cpp | 796 ++++--- deps/lld/wasm/SymbolTable.h | 110 +- deps/lld/wasm/Symbols.cpp | 333 +-- deps/lld/wasm/Symbols.h | 428 ++-- deps/lld/wasm/SyntheticSections.cpp | 547 +++++ deps/lld/wasm/SyntheticSections.h | 339 +++ deps/lld/wasm/Writer.cpp | 1568 ++++++-------- deps/lld/wasm/Writer.h | 9 +- deps/lld/wasm/WriterUtils.cpp | 209 +- deps/lld/wasm/WriterUtils.h | 55 +- doc/langref.html.in | 17 +- lib/include/__clang_cuda_builtin_vars.h | 20 +- lib/include/__clang_cuda_cmath.h | 49 +- lib/include/__clang_cuda_complex_builtins.h | 20 +- lib/include/__clang_cuda_device_functions.h | 93 +- lib/include/__clang_cuda_intrinsics.h | 20 +- lib/include/__clang_cuda_libdevice_declares.h | 890 ++++---- lib/include/__clang_cuda_math_forward_declares.h | 70 +- lib/include/__clang_cuda_runtime_wrapper.h | 32 +- lib/include/__stddef_max_align_t.h | 22 +- lib/include/__wmmintrin_aes.h | 20 +- lib/include/__wmmintrin_pclmul.h | 20 +- lib/include/adxintrin.h | 20 +- lib/include/altivec.h | 20 +- lib/include/ammintrin.h | 20 +- lib/include/arm64intr.h | 20 +- lib/include/arm_acle.h | 38 +- lib/include/arm_neon.h | 396 ++-- lib/include/armintr.h | 20 +- lib/include/avx2intrin.h | 32 +- lib/include/avx512bf16intrin.h | 279 +++ lib/include/avx512bitalgintrin.h | 20 +- lib/include/avx512bwintrin.h | 44 +- lib/include/avx512cdintrin.h | 52 +- lib/include/avx512dqintrin.h | 20 +- lib/include/avx512erintrin.h | 20 +- lib/include/avx512fintrin.h | 115 +- lib/include/avx512ifmaintrin.h | 20 +- lib/include/avx512ifmavlintrin.h | 20 +- lib/include/avx512pfintrin.h | 20 +- lib/include/avx512vbmi2intrin.h | 20 +- lib/include/avx512vbmiintrin.h | 20 +- lib/include/avx512vbmivlintrin.h | 20 +- lib/include/avx512vlbf16intrin.h | 474 ++++ lib/include/avx512vlbitalgintrin.h | 20 +- lib/include/avx512vlbwintrin.h | 36 +- lib/include/avx512vlcdintrin.h | 86 +- lib/include/avx512vldqintrin.h | 52 +- lib/include/avx512vlintrin.h | 77 +- lib/include/avx512vlvbmi2intrin.h | 20 +- lib/include/avx512vlvnniintrin.h | 20 +- lib/include/avx512vlvp2intersectintrin.h | 121 ++ lib/include/avx512vnniintrin.h | 20 +- lib/include/avx512vp2intersectintrin.h | 77 + lib/include/avx512vpopcntdqintrin.h | 20 +- lib/include/avx512vpopcntdqvlintrin.h | 20 +- lib/include/avxintrin.h | 50 +- lib/include/bmi2intrin.h | 20 +- lib/include/bmiintrin.h | 20 +- lib/include/cetintrin.h | 20 +- lib/include/cldemoteintrin.h | 20 +- lib/include/clflushoptintrin.h | 20 +- lib/include/clwbintrin.h | 20 +- lib/include/clzerointrin.h | 20 +- lib/include/cpuid.h | 24 +- lib/include/emmintrin.h | 61 +- lib/include/enqcmdintrin.h | 63 + lib/include/f16cintrin.h | 26 +- lib/include/float.h | 28 +- lib/include/fma4intrin.h | 20 +- lib/include/fmaintrin.h | 20 +- lib/include/fxsrintrin.h | 20 +- lib/include/gfniintrin.h | 20 +- lib/include/htmintrin.h | 20 +- lib/include/htmxlintrin.h | 20 +- lib/include/ia32intrin.h | 320 ++- lib/include/immintrin.h | 62 +- lib/include/intrin.h | 42 +- lib/include/inttypes.h | 25 +- lib/include/invpcidintrin.h | 20 +- lib/include/iso646.h | 22 +- lib/include/limits.h | 22 +- lib/include/lwpintrin.h | 20 +- lib/include/lzcntintrin.h | 20 +- lib/include/mm3dnow.h | 20 +- lib/include/mm_malloc.h | 20 +- lib/include/mmintrin.h | 22 +- lib/include/module.modulemap | 21 +- lib/include/movdirintrin.h | 20 +- lib/include/msa.h | 20 +- lib/include/mwaitxintrin.h | 20 +- lib/include/nmmintrin.h | 20 +- lib/include/opencl-c-base.h | 571 +++++ lib/include/opencl-c.h | 910 ++------ lib/include/openmp_wrappers/__clang_openmp_math.h | 35 + lib/include/openmp_wrappers/__clang_openmp_math_declares.h | 33 + lib/include/openmp_wrappers/cmath | 16 + lib/include/openmp_wrappers/math.h | 17 + lib/include/pconfigintrin.h | 24 +- lib/include/pkuintrin.h | 20 +- lib/include/pmmintrin.h | 20 +- lib/include/popcntintrin.h | 52 +- lib/include/ppc_wrappers/emmintrin.h | 2318 ++++++++++++++++++++ lib/include/ppc_wrappers/mm_malloc.h | 44 + lib/include/ppc_wrappers/mmintrin.h | 1443 +++++++++++++ lib/include/ppc_wrappers/xmmintrin.h | 1838 ++++++++++++++++ lib/include/prfchwintrin.h | 20 +- lib/include/ptwriteintrin.h | 20 +- lib/include/rdseedintrin.h | 20 +- lib/include/rtmintrin.h | 20 +- lib/include/s390intrin.h | 20 +- lib/include/sgxintrin.h | 24 +- lib/include/shaintrin.h | 20 +- lib/include/smmintrin.h | 20 +- lib/include/stdalign.h | 20 +- lib/include/stdarg.h | 22 +- lib/include/stdatomic.h | 20 +- lib/include/stdbool.h | 22 +- lib/include/stddef.h | 22 +- lib/include/stdint.h | 27 +- lib/include/stdnoreturn.h | 20 +- lib/include/tbmintrin.h | 20 +- lib/include/tgmath.h | 22 +- lib/include/tmmintrin.h | 20 +- lib/include/unwind.h | 24 +- lib/include/vadefs.h | 20 +- lib/include/vaesintrin.h | 20 +- lib/include/varargs.h | 20 +- lib/include/vecintrin.h | 426 +++- lib/include/vpclmulqdqintrin.h | 20 +- lib/include/waitpkgintrin.h | 20 +- lib/include/wbnoinvdintrin.h | 20 +- lib/include/wmmintrin.h | 20 +- lib/include/x86intrin.h | 20 +- lib/include/xmmintrin.h | 40 +- lib/include/xopintrin.h | 20 +- lib/include/xsavecintrin.h | 20 +- lib/include/xsaveintrin.h | 39 +- lib/include/xsaveoptintrin.h | 20 +- lib/include/xsavesintrin.h | 20 +- lib/include/xtestintrin.h | 20 +- lib/libc/musl/arch/riscv64/atomic_arch.h | 20 +- lib/libc/musl/arch/riscv64/syscall_arch.h | 2 +- lib/libcxx/include/__bit_reference | 35 +- lib/libcxx/include/__bsd_locale_defaults.h | 7 +- lib/libcxx/include/__bsd_locale_fallbacks.h | 7 +- lib/libcxx/include/__config | 287 ++- lib/libcxx/include/__config_site.in | 8 +- lib/libcxx/include/__debug | 55 +- lib/libcxx/include/__errc | 7 +- lib/libcxx/include/__functional_03 | 7 +- lib/libcxx/include/__functional_base | 17 +- lib/libcxx/include/__functional_base_03 | 7 +- lib/libcxx/include/__hash_table | 30 +- lib/libcxx/include/__libcpp_version | 2 +- lib/libcxx/include/__locale | 80 +- lib/libcxx/include/__mutex_base | 49 +- lib/libcxx/include/__node_handle | 12 +- lib/libcxx/include/__nullptr | 7 +- lib/libcxx/include/__sso_allocator | 7 +- lib/libcxx/include/__std_stream | 7 +- lib/libcxx/include/__string | 7 +- lib/libcxx/include/__threading_support | 100 +- lib/libcxx/include/__tree | 218 +- lib/libcxx/include/__tuple | 68 +- lib/libcxx/include/__undef_macros | 7 +- lib/libcxx/include/algorithm | 459 ++-- lib/libcxx/include/any | 9 +- lib/libcxx/include/array | 36 +- lib/libcxx/include/atomic | 1068 ++++++--- lib/libcxx/include/bit | 371 +++- lib/libcxx/include/bitset | 11 +- lib/libcxx/include/cassert | 7 +- lib/libcxx/include/ccomplex | 7 +- lib/libcxx/include/cctype | 7 +- lib/libcxx/include/cerrno | 7 +- lib/libcxx/include/cfenv | 7 +- lib/libcxx/include/cfloat | 7 +- lib/libcxx/include/charconv | 43 +- lib/libcxx/include/chrono | 109 +- lib/libcxx/include/cinttypes | 7 +- lib/libcxx/include/ciso646 | 7 +- lib/libcxx/include/climits | 7 +- lib/libcxx/include/clocale | 7 +- lib/libcxx/include/cmath | 35 +- lib/libcxx/include/codecvt | 7 +- lib/libcxx/include/compare | 7 +- lib/libcxx/include/complex | 11 +- lib/libcxx/include/complex.h | 7 +- lib/libcxx/include/condition_variable | 7 +- lib/libcxx/include/csetjmp | 7 +- lib/libcxx/include/csignal | 7 +- lib/libcxx/include/cstdarg | 7 +- lib/libcxx/include/cstdbool | 7 +- lib/libcxx/include/cstddef | 7 +- lib/libcxx/include/cstdint | 7 +- lib/libcxx/include/cstdio | 7 +- lib/libcxx/include/cstdlib | 7 +- lib/libcxx/include/cstring | 7 +- lib/libcxx/include/ctgmath | 7 +- lib/libcxx/include/ctime | 7 +- lib/libcxx/include/ctype.h | 7 +- lib/libcxx/include/cwchar | 7 +- lib/libcxx/include/cwctype | 7 +- lib/libcxx/include/deque | 31 +- lib/libcxx/include/errno.h | 7 +- lib/libcxx/include/exception | 21 +- lib/libcxx/include/experimental/__config | 15 +- lib/libcxx/include/experimental/__memory | 7 +- lib/libcxx/include/experimental/algorithm | 7 +- lib/libcxx/include/experimental/any | 21 - lib/libcxx/include/experimental/chrono | 21 - lib/libcxx/include/experimental/coroutine | 13 +- lib/libcxx/include/experimental/deque | 7 +- lib/libcxx/include/experimental/filesystem | 7 +- lib/libcxx/include/experimental/forward_list | 7 +- lib/libcxx/include/experimental/functional | 16 +- lib/libcxx/include/experimental/iterator | 7 +- lib/libcxx/include/experimental/list | 7 +- lib/libcxx/include/experimental/map | 7 +- lib/libcxx/include/experimental/memory_resource | 7 +- lib/libcxx/include/experimental/numeric | 21 - lib/libcxx/include/experimental/optional | 21 - lib/libcxx/include/experimental/propagate_const | 7 +- lib/libcxx/include/experimental/ratio | 21 - lib/libcxx/include/experimental/regex | 7 +- lib/libcxx/include/experimental/set | 7 +- lib/libcxx/include/experimental/simd | 7 +- lib/libcxx/include/experimental/string | 7 +- lib/libcxx/include/experimental/string_view | 21 - lib/libcxx/include/experimental/system_error | 21 - lib/libcxx/include/experimental/tuple | 21 - lib/libcxx/include/experimental/type_traits | 17 +- lib/libcxx/include/experimental/unordered_map | 7 +- lib/libcxx/include/experimental/unordered_set | 7 +- lib/libcxx/include/experimental/utility | 7 +- lib/libcxx/include/experimental/vector | 7 +- lib/libcxx/include/ext/__hash | 34 +- lib/libcxx/include/ext/hash_map | 78 +- lib/libcxx/include/ext/hash_set | 34 +- lib/libcxx/include/fenv.h | 116 + lib/libcxx/include/filesystem | 32 +- lib/libcxx/include/float.h | 7 +- lib/libcxx/include/forward_list | 77 +- lib/libcxx/include/fstream | 23 +- lib/libcxx/include/functional | 140 +- lib/libcxx/include/future | 21 +- lib/libcxx/include/initializer_list | 9 +- lib/libcxx/include/inttypes.h | 12 +- lib/libcxx/include/iomanip | 17 +- lib/libcxx/include/ios | 56 +- lib/libcxx/include/iosfwd | 7 +- lib/libcxx/include/iostream | 7 +- lib/libcxx/include/istream | 895 ++++---- lib/libcxx/include/iterator | 247 ++- lib/libcxx/include/limits | 9 +- lib/libcxx/include/limits.h | 7 +- lib/libcxx/include/list | 158 +- lib/libcxx/include/locale | 21 +- lib/libcxx/include/locale.h | 7 +- lib/libcxx/include/map | 104 +- lib/libcxx/include/math.h | 143 +- lib/libcxx/include/memory | 403 ++-- lib/libcxx/include/module.modulemap | 5 +- lib/libcxx/include/mutex | 32 +- lib/libcxx/include/new | 42 +- lib/libcxx/include/numeric | 84 +- lib/libcxx/include/optional | 114 +- lib/libcxx/include/ostream | 12 +- lib/libcxx/include/queue | 27 +- lib/libcxx/include/random | 23 +- lib/libcxx/include/ratio | 7 +- lib/libcxx/include/regex | 135 +- lib/libcxx/include/scoped_allocator | 7 +- lib/libcxx/include/set | 98 +- lib/libcxx/include/setjmp.h | 7 +- lib/libcxx/include/shared_mutex | 7 +- lib/libcxx/include/span | 251 ++- lib/libcxx/include/sstream | 9 +- lib/libcxx/include/stack | 17 +- lib/libcxx/include/stdbool.h | 7 +- lib/libcxx/include/stddef.h | 7 +- lib/libcxx/include/stdexcept | 36 +- lib/libcxx/include/stdint.h | 12 +- lib/libcxx/include/stdio.h | 7 +- lib/libcxx/include/stdlib.h | 41 +- lib/libcxx/include/streambuf | 7 +- lib/libcxx/include/string | 77 +- lib/libcxx/include/string.h | 7 +- lib/libcxx/include/string_view | 41 +- lib/libcxx/include/strstream | 7 +- lib/libcxx/include/support/android/locale_bionic.h | 7 +- lib/libcxx/include/support/fuchsia/xlocale.h | 7 +- lib/libcxx/include/support/ibm/limits.h | 7 +- lib/libcxx/include/support/ibm/locale_mgmt_aix.h | 7 +- lib/libcxx/include/support/ibm/support.h | 7 +- lib/libcxx/include/support/ibm/xlocale.h | 7 +- lib/libcxx/include/support/musl/xlocale.h | 7 +- lib/libcxx/include/support/newlib/xlocale.h | 7 +- lib/libcxx/include/support/solaris/floatingpoint.h | 7 +- lib/libcxx/include/support/solaris/wchar.h | 7 +- lib/libcxx/include/support/solaris/xlocale.h | 7 +- lib/libcxx/include/support/win32/limits_msvc_win32.h | 7 +- lib/libcxx/include/support/win32/locale_win32.h | 7 +- lib/libcxx/include/support/xlocale/__nop_locale_mgmt.h | 7 +- lib/libcxx/include/support/xlocale/__posix_l_fallback.h | 7 +- lib/libcxx/include/support/xlocale/__strtonum_fallback.h | 7 +- lib/libcxx/include/support/xlocale/xlocale.h | 0 lib/libcxx/include/system_error | 7 +- lib/libcxx/include/tgmath.h | 7 +- lib/libcxx/include/thread | 86 +- lib/libcxx/include/tuple | 155 +- lib/libcxx/include/type_traits | 1671 ++++---------- lib/libcxx/include/typeindex | 7 +- lib/libcxx/include/typeinfo | 266 ++- lib/libcxx/include/unordered_map | 201 +- lib/libcxx/include/unordered_set | 165 +- lib/libcxx/include/utility | 57 +- lib/libcxx/include/valarray | 32 +- lib/libcxx/include/variant | 78 +- lib/libcxx/include/vector | 42 +- lib/libcxx/include/version | 17 +- lib/libcxx/include/wchar.h | 7 +- lib/libcxx/include/wctype.h | 7 +- lib/libunwind/LICENSE.TXT | 311 +++ lib/libunwind/include/__libunwind_config.h | 7 +- lib/libunwind/include/libunwind.h | 35 +- lib/libunwind/include/mach-o/compact_unwind_encoding.h | 7 +- lib/libunwind/include/unwind.h | 9 +- lib/libunwind/src/AddressSpace.hpp | 149 +- lib/libunwind/src/CompactUnwinder.hpp | 7 +- lib/libunwind/src/DwarfInstructions.hpp | 39 +- lib/libunwind/src/DwarfParser.hpp | 7 +- lib/libunwind/src/EHHeaderParser.hpp | 7 +- lib/libunwind/src/RWMutex.hpp | 49 +- lib/libunwind/src/Registers.hpp | 27 +- lib/libunwind/src/Unwind-EHABI.cpp | 109 +- lib/libunwind/src/Unwind-EHABI.h | 7 +- lib/libunwind/src/Unwind-seh.cpp | 100 +- lib/libunwind/src/Unwind-sjlj.c | 120 +- lib/libunwind/src/UnwindCursor.hpp | 53 +- lib/libunwind/src/UnwindLevel1-gcc-ext.c | 41 +- lib/libunwind/src/UnwindLevel1.c | 120 +- lib/libunwind/src/UnwindRegistersRestore.S | 289 +-- lib/libunwind/src/UnwindRegistersSave.S | 337 +-- lib/libunwind/src/Unwind_AppleExtras.cpp | 7 +- lib/libunwind/src/assembly.h | 74 +- lib/libunwind/src/config.h | 36 +- lib/libunwind/src/dwarf2.h | 7 +- lib/libunwind/src/libunwind.cpp | 214 +- lib/libunwind/src/libunwind_ext.h | 38 +- src-self-hosted/clang.zig | 426 ++-- src/codegen.cpp | 22 +- src/link.cpp | 7 +- src/target.cpp | 96 +- src/target.hpp | 4 + src/translate_c.cpp | 34 +- src/zig_clang.cpp | 42 +- src/zig_clang.h | 194 +- src/zig_clang_cc1_main.cpp | 63 +- src/zig_clang_cc1as_main.cpp | 44 +- src/zig_clang_driver.cpp | 10 +- src/zig_llvm.cpp | 22 +- src/zig_llvm.h | 16 +- std/os/bits/linux.zig | 1 + std/os/bits/linux/riscv64.zig | 279 +++ std/os/linux.zig | 5 +- std/os/linux/riscv64.zig | 84 + std/os/linux/tls.zig | 9 +- std/os/linux/x86_64.zig | 14 +- std/special/c.zig | 13 +- std/special/start.zig | 5 + 1939 files changed, 67663 insertions(+), 41925 deletions(-)