SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [LLDB] Avoid using InitializeContext for zero-initializing a CONTEXT. (details)
  2. [X86] [Win64] Avoid truncating large (> 32 bit) stack allocations (details)
  3. [MC] Produce proper section relative relocations for COFF in (details)
  4. [llvm-objcopy] [COFF] Fix a typo in a comment. NFC. (details)
Commit 344bdeb797b31bb99158010f255a7219fe77e2ec by martin
[LLDB] Avoid using InitializeContext for zero-initializing a CONTEXT.
NFC.
InitializeContext is useful for allocating a (potentially variable size)
CONTEXT struct in an unaligned byte buffer. In this case, we already
have a fixed size CONTEXT we want to initialize, and we only used this
as a very roundabout way of zero initializing it.
Instead just memset the CONTEXT we have, and set the ContextFlags field
manually.
This matches how it is done in NativeRegisterContextWindows_*.cpp.
This also makes LLDB run successfully in Wine (for a trivial tested case
at least), as Wine hasn't implemented the InitializeContext function.
Differential Revision: https://reviews.llvm.org/D70742
The file was modifiedlldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp
Commit 943513b79929fba1a9dccdf81cb68a41ce29cd03 by martin
[X86] [Win64] Avoid truncating large (> 32 bit) stack allocations
This fixes PR44129, which was broken in a7adc3185b (in 7.0.0 and newer).
Differential Revision: https://reviews.llvm.org/D70741
The file was modifiedllvm/lib/Target/X86/X86FrameLowering.cpp
The file was addedllvm/test/CodeGen/X86/win64-stackprobe-overflow.ll
Commit 47046f05e66c23567d6672ea5a1afd8ed2c411ed by martin
[MC] Produce proper section relative relocations for COFF in
.debug_frame
The third parameter to Streamer.EmitSymbolValue() is "bool
IsSectionRelative = false".
For ELF, these debug sections are mapped to address zero, so a normal,
absolute address relocation works just fine, but COFF needs a section
relative relocation, and COFF is the only target where
needsDwarfSectionOffsetDirective() returns true. This matches how
EmitSymbolValue is called elsewhere in the same source file.
Differential Revision: https://reviews.llvm.org/D70661
The file was addedllvm/test/MC/COFF/cfi-sections.s
The file was modifiedllvm/lib/MC/MCDwarf.cpp
Commit d11dc9e77b63b245f4b07fb60b2acae226e3fdcb by martin
[llvm-objcopy] [COFF] Fix a typo in a comment. NFC.
The file was modifiedllvm/tools/llvm-objcopy/COFF/Object.h