1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/include/llvm/MC
Derek Schuff 0c7127a873 [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections
Debug info sections need R_WASM_FUNCTION_OFFSET_I32 relocs (with FK_Data_4 fixup
kinds) to refer to functions (instead of R_WASM_TABLE_INDEX as is used in data
sections). Usually this is done in a convoluted way, with unnamed temp data
symbols which target the start of the function, in which case
WasmObjectWriter::recordRelocation converts it to use the section symbol
instead. However in some cases the function can actually be undefined; in this
case the dwarf generator uses the function symbol (a named undefined function
symbol) instead. In that case the section-symbol transform doesn't work and we
need to generate the correct reloc type a different way. In this change
WebAssemblyWasmObjectWriter::getRelocType takes the fixup section type into
account to choose the correct reloc type.

Fixes PR50408
Differential Revision: https://reviews.llvm.org/D103557
2021-07-19 14:02:33 -07:00
..
MCDisassembler
MCParser Remove unused parameter from parseMSInlineAsm. 2021-07-12 15:07:03 +01:00
ConstantPools.h
LaneBitmask.h [NFC] Add missing include to LaneBitmask.h to fix modules build 2021-06-07 18:43:00 +02:00
MachineLocation.h
MCAsmBackend.h RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
MCAsmInfo.h [AIX] Emit version string in .file directive 2021-07-12 17:03:52 +00:00
MCAsmInfoCOFF.h
MCAsmInfoDarwin.h
MCAsmInfoELF.h
MCAsmInfoWasm.h
MCAsmInfoXCOFF.h
MCAsmLayout.h
MCAsmMacro.h
MCAssembler.h
MCCodeEmitter.h
MCCodeView.h
MCContext.h [MC][ELF] Emit unique sections for different flags 2021-05-26 11:51:29 +01:00
MCDirectives.h
MCDwarf.h RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
MCELFObjectWriter.h MC: mark dump with LLVM_DUMP_METHOD 2021-05-27 10:47:39 -07:00
MCELFStreamer.h [MCStreamer] Move emission of attributes section into MCELFStreamer 2021-06-30 16:00:27 -05:00
MCExpr.h
MCFixedLenDisassembler.h
MCFixup.h RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
MCFixupKindInfo.h
MCFragment.h PR51018: A few more explicit conversions from SmallString to StringRef 2021-07-09 13:54:02 -07:00
MCInst.h
MCInstBuilder.h
MCInstPrinter.h [llvm-mc] Add -M to replace -riscv-no-aliases and -riscv-arch-reg-names 2021-05-26 10:43:32 -07:00
MCInstrAnalysis.h
MCInstrDesc.h
MCInstrInfo.h
MCInstrItineraries.h
MCLabel.h
MCLinkerOptimizationHint.h
MCMachObjectWriter.h
MCObjectFileInfo.h [MC] Add getLSDASection interface 2021-06-05 00:28:20 -07:00
MCObjectStreamer.h [AIX] Emit version string in .file directive 2021-07-12 17:03:52 +00:00
MCObjectWriter.h
MCPseudoProbe.h [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
MCRegister.h [MC] Add missing include (NFC) 2021-06-03 18:50:00 +02:00
MCRegisterInfo.h
MCSchedule.h
MCSection.h
MCSectionCOFF.h
MCSectionELF.h
MCSectionMachO.h
MCSectionWasm.h
MCSectionXCOFF.h
MCStreamer.h [AIX] Emit version string in .file directive 2021-07-12 17:03:52 +00:00
MCSubtargetInfo.h
MCSymbol.h
MCSymbolCOFF.h
MCSymbolELF.h
MCSymbolMachO.h
MCSymbolWasm.h [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
MCSymbolXCOFF.h
MCTargetOptions.h [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
MCTargetOptionsCommandFlags.h [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
MCValue.h
MCWasmObjectWriter.h [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections 2021-07-19 14:02:33 -07:00
MCWasmStreamer.h
MCWin64EH.h
MCWinCOFFObjectWriter.h
MCWinCOFFStreamer.h
MCWinEH.h
MCXCOFFObjectWriter.h
MCXCOFFStreamer.h
SectionKind.h
StringTableBuilder.h
SubtargetFeature.h