llvm-project/llvm/lib/MC
Matt Morehouse 671f0930fe [X86] Selective relocation relaxation for +tagged-globals
For tagged-globals, we only need to disable relaxation for globals that
we actually tag.  With this patch function pointer relocations, which
we do not instrument, can be relaxed.

This patch also makes tagged-globals work properly with LTO, as
-Wa,-mrelax-relocations=no doesn't work with LTO.

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D113220
2021-11-19 07:18:27 -08:00
..
MCDisassembler Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCParser [llvm] Use StringRef::contains (NFC) 2021-10-23 08:45:27 -07:00
CMakeLists.txt Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
ConstantPools.cpp [MC] Add MCSubtargetInfo to MCAlignFragment 2021-09-07 15:46:19 +01:00
ELFObjectWriter.cpp [X86] Selective relocation relaxation for +tagged-globals 2021-11-19 07:18:27 -08:00
MCAsmBackend.cpp RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
MCAsmInfo.cpp [AIX] Use AsmParser to do inline asm parsing 2021-07-02 16:12:21 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmInfoGOFF.cpp [SystemZ][z/OS] Introduce the GOFFMCAsmInfo Interface for z/OS 2021-09-24 16:25:41 -04:00
MCAsmInfoWasm.cpp
MCAsmInfoXCOFF.cpp [AIX] Emit version string in .file directive 2021-07-12 17:03:52 +00:00
MCAsmMacro.cpp
MCAsmStreamer.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCAssembler.cpp [MC] Use local MCSubtargetInfo in writeNops 2021-09-07 15:46:19 +01:00
MCCodeEmitter.cpp
MCCodeView.cpp
MCContext.cpp [SystemZ][z/OS] Initial code to generate assembly files on z/OS 2021-07-27 11:29:15 -04:00
MCDwarf.cpp [DebugInfo] Fix end_sequence of debug_line in LTO Object 2021-11-14 20:19:47 -08:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCExpr.cpp [X86] Selective relocation relaxation for +tagged-globals 2021-11-19 07:18:27 -08:00
MCFragment.cpp [MC] Recursively calculate symbol offset 2021-10-20 14:29:43 -04:00
MCInst.cpp [MC] Add the ability to pass MCRegisterInfo to dump_pretty. 2021-05-14 18:21:57 -07:00
MCInstPrinter.cpp
MCInstrAnalysis.cpp [ORC] Add a utility for adding missing "self" relocations to a Symbol 2021-11-04 15:01:05 -07:00
MCInstrDesc.cpp
MCInstrInfo.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachOStreamer.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCMachObjectTargetWriter.cpp
MCNullStreamer.cpp
MCObjectFileInfo.cpp [MC][RISCV] Add RISCV MCObjectFileInfo 2021-08-27 18:23:29 +01:00
MCObjectStreamer.cpp [MC] Use local MCSubtargetInfo in writeNops 2021-09-07 15:46:19 +01:00
MCObjectWriter.cpp
MCPseudoProbe.cpp [MCPseudoProbe] Clean up includes (NFC) 2021-10-09 10:31:15 +02:00
MCRegisterInfo.cpp
MCSchedule.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCSectionWasm.cpp [WebAssembly] Add TLS data segment flag: WASM_SEG_FLAG_TLS 2021-05-12 13:31:02 -07:00
MCSectionXCOFF.cpp [XCOFF] support DWARF for 32-bit XCOFF for object output 2021-10-08 02:35:11 +00:00
MCStreamer.cpp [MC] Use local MCSubtargetInfo in writeNops 2021-09-07 15:46:19 +01:00
MCSubtargetInfo.cpp AMDGPU: Add target id and code object v4 support 2021-03-24 11:54:05 -04:00
MCSymbol.cpp
MCSymbolELF.cpp
MCSymbolXCOFF.cpp
MCTargetOptions.cpp [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
MCTargetOptionsCommandFlags.cpp [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCWin64EH.cpp [Win64EH] Write .pdata symbol relocations relative to the temporary begin symbol 2021-09-14 11:05:37 +03:00
MCWinCOFFStreamer.cpp [MC] Add MCSubtargetInfo to MCAlignFragment 2021-09-07 15:46:19 +01:00
MCWinEH.cpp
MCXCOFFObjectTargetWriter.cpp
MCXCOFFStreamer.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MachObjectWriter.cpp [llvm] Use llvm::reverse (NFC) 2021-11-06 19:31:18 -07:00
StringTableBuilder.cpp [ADT] Move DenseMapInfo for ArrayRef/StringRef into respective headers (NFC) 2021-06-03 18:34:36 +02:00
SubtargetFeature.cpp
TargetRegistry.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
WasmObjectWriter.cpp [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
WinCOFFObjectWriter.cpp [COFF] Fix ARM and ARM64 REL32 relocations to be relative to the end of the relocation 2021-05-12 09:53:43 +03:00
XCOFFObjectWriter.cpp [XCOFF] support DWARF for 32-bit XCOFF for object output 2021-10-08 02:35:11 +00:00