Skip to content

Commit

Permalink
Auto merge of #73072 - arcnmx:lld-noload, r=nikic
Browse files Browse the repository at this point in the history
Update LLVM submodule to include lld NOLOAD fix

> Rust nightly 2020-05-22 and later ships lld with a regression related to linker scripts: NOLOAD sections incorrectly generate sections filled with 0s. This causes gdb and other elf loaders to write to reserved or otherwise invalid addresses (gdb also seems confused by the resulting ELF files and spits out a warning about the sections). This is particularly a problem for embedded rust projects that use lld by default and have affected linker scripts (cortex-m-rt based projects for instance).

rust-lang/llvm-project#64

Note that this also pulls in llvm changes from #72937
  • Loading branch information
bors committed Jun 7, 2020
2 parents 450abe8 + aa7e771 commit a2fc33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm-project
Submodule llvm-project updated 55 files
+4 −0 clang/docs/ClangCommandLineReference.rst
+8 −0 clang/include/clang/Driver/Options.td
+23 −0 clang/lib/Driver/ToolChains/Arch/X86.cpp
+24 −0 clang/test/Driver/x86-target-features.c
+1 −1 libunwind/CMakeLists.txt
+22 −0 libunwind/README_RUST_SGX.md
+5 −0 libunwind/docs/BuildingLibunwind.rst
+27 −0 libunwind/src/AddressSpace.hpp
+41 −7 libunwind/src/CMakeLists.txt
+1 −1 libunwind/src/RWMutex.hpp
+125 −0 libunwind/src/UnwindRustSgx.c
+94 −0 libunwind/src/UnwindRustSgx.h
+3 −1 libunwind/src/config.h
+1 −0 lld/ELF/ScriptParser.cpp
+0 −0 llvm/include/llvm/CodeGen/RDFGraph.h
+0 −0 llvm/include/llvm/CodeGen/RDFLiveness.h
+0 −0 llvm/include/llvm/CodeGen/RDFRegisters.h
+3 −0 llvm/lib/CodeGen/CMakeLists.txt
+6 −4 llvm/lib/CodeGen/RDFGraph.cpp
+3 −3 llvm/lib/CodeGen/RDFLiveness.cpp
+1 −1 llvm/lib/CodeGen/RDFRegisters.cpp
+0 −3 llvm/lib/Target/Hexagon/CMakeLists.txt
+3 −3 llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp
+3 −3 llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp
+3 −3 llvm/lib/Target/Hexagon/RDFCopy.cpp
+3 −3 llvm/lib/Target/Hexagon/RDFCopy.h
+2 −2 llvm/lib/Target/Hexagon/RDFDeadCode.cpp
+2 −2 llvm/lib/Target/Hexagon/RDFDeadCode.h
+106 −0 llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+3 −1 llvm/lib/Target/X86/CMakeLists.txt
+446 −0 llvm/lib/Target/X86/ImmutableGraph.h
+5 −1 llvm/lib/Target/X86/X86.h
+16 −0 llvm/lib/Target/X86/X86.td
+2 −2 llvm/lib/Target/X86/X86FastISel.cpp
+5 −5 llvm/lib/Target/X86/X86FrameLowering.cpp
+1 −1 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+45 −36 llvm/lib/Target/X86/X86ISelLowering.cpp
+2 −2 llvm/lib/Target/X86/X86ISelLowering.h
+364 −0 llvm/lib/Target/X86/X86IndirectThunks.cpp
+8 −8 llvm/lib/Target/X86/X86InstrCompiler.td
+11 −11 llvm/lib/Target/X86/X86InstrControl.td
+2 −2 llvm/lib/Target/X86/X86InstrInfo.td
+824 −0 llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
+140 −0 llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
+4 −4 llvm/lib/Target/X86/X86MCInstLower.cpp
+0 −286 llvm/lib/Target/X86/X86RetpolineThunks.cpp
+25 −2 llvm/lib/Target/X86/X86Subtarget.h
+5 −1 llvm/lib/Target/X86/X86TargetMachine.cpp
+6 −1 llvm/test/CodeGen/X86/O0-pipeline.ll
+5 −2 llvm/test/CodeGen/X86/O3-pipeline.ll
+129 −0 llvm/test/CodeGen/X86/lvi-hardening-gadget-graph.ll
+281 −0 llvm/test/CodeGen/X86/lvi-hardening-indirectbr.ll
+156 −0 llvm/test/CodeGen/X86/lvi-hardening-inline-asm.ll
+98 −0 llvm/test/CodeGen/X86/lvi-hardening-loads.ll
+72 −0 llvm/test/CodeGen/X86/lvi-hardening-ret.ll

0 comments on commit a2fc33e

Please sign in to comment.