llvm-project/llvm/test/MC
Reid Kleckner 5a5ac65768 [MC] Always emit relocations for same-section function references
Summary:
We already emit relocations in this case when the "incremental linker
compatible" flag is set, but it turns out these relocations are also
required for /guard:cf. Now that we have two use cases for this
behavior, let's make it unconditional to try to keep things simple.

We never hit this problem in Clang because it always sets the
"incremental linker compatible" flag when targeting MSVC. However, LLD
LTO doesn't set this flag, so we'd get CFG failures at runtime when
using ThinLTO and /guard:cf. We probably don't want LLD LTO to set the
"incremental linker compatible" assembler flag, since this has nothing
to do with incremental linking, and we don't need to timestamp LTO
temporary objects.

Fixes PR36624.

Reviewers: inglorion, espindola, majnemer

Subscribers: mehdi_amini, llvm-commits, hiraditya

Differential Revision: https://reviews.llvm.org/D44485

llvm-svn: 327557
2018-03-14 19:24:32 +00:00
..
AArch64 [AArch64] Add support for secrel add/load/store relocations for COFF 2018-03-01 20:42:28 +00:00
AMDGPU [AMDGPU][MC][GFX8] Added BUFFER_STORE_LDS_DWORD Instruction 2018-03-12 17:29:24 +00:00
ARM Don't treat .symver as a regular alias definition. 2018-03-09 03:13:37 +00:00
AVR [AVR] Implement some missing code paths 2017-12-11 11:01:27 +00:00
AsmParser Revert "[DWARF] Fix mixing assembler -g with DWARF .file directives." 2018-03-09 00:11:54 +00:00
BPF bpf: New disassembler testcases for 32-bit subregister support 2018-02-23 23:49:35 +00:00
COFF [MC] Always emit relocations for same-section function references 2018-03-14 19:24:32 +00:00
Disassembler [mips] Add support for CRC ASE 2018-03-14 14:13:31 +00:00
ELF [llvm] Fix mc tests 2018-03-12 23:36:25 +00:00
Hexagon [Hexagon] Add trap1 instruction 2018-03-01 21:54:08 +00:00
Lanai [lanai] Add more tests for assembly of conditional ALU ops 2016-07-11 17:58:16 +00:00
MachO [DebugInfo] Support DWARF v5 source code embedding extension 2018-02-23 23:01:06 +00:00
Markup
Mips [mips] Add support for CRC ASE 2018-03-14 14:13:31 +00:00
PowerPC [PowerPC] Code cleanup. Remove instructions that were withdrawn from Power 9. 2018-02-23 15:55:16 +00:00
RISCV [RISCV] Implement MC relaxations for compressed instructions. 2018-03-02 22:04:12 +00:00
Sparc [Sparc] invalid adjustments in TLS_LE/TLS_LDO relocations removed 2017-07-25 15:28:28 +00:00
SystemZ [SystemZ, AsmParser] Enable the mnemonic spell corrector. 2017-07-18 09:17:00 +00:00
WebAssembly [WebAssembly] Avoid cast ExprType to wasm::ValType 2018-03-02 21:33:14 +00:00
X86 [X86] Add assembler/disassembler support for blendm with zero masking and broacast. 2018-02-23 20:48:44 +00:00