mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
0c7127a873
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 |
||
---|---|---|
.. | ||
MCDisassembler | ||
MCParser | ||
ConstantPools.h | ||
LaneBitmask.h | ||
MachineLocation.h | ||
MCAsmBackend.h | ||
MCAsmInfo.h | ||
MCAsmInfoCOFF.h | ||
MCAsmInfoDarwin.h | ||
MCAsmInfoELF.h | ||
MCAsmInfoWasm.h | ||
MCAsmInfoXCOFF.h | ||
MCAsmLayout.h | ||
MCAsmMacro.h | ||
MCAssembler.h | ||
MCCodeEmitter.h | ||
MCCodeView.h | ||
MCContext.h | ||
MCDirectives.h | ||
MCDwarf.h | ||
MCELFObjectWriter.h | ||
MCELFStreamer.h | ||
MCExpr.h | ||
MCFixedLenDisassembler.h | ||
MCFixup.h | ||
MCFixupKindInfo.h | ||
MCFragment.h | ||
MCInst.h | ||
MCInstBuilder.h | ||
MCInstPrinter.h | ||
MCInstrAnalysis.h | ||
MCInstrDesc.h | ||
MCInstrInfo.h | ||
MCInstrItineraries.h | ||
MCLabel.h | ||
MCLinkerOptimizationHint.h | ||
MCMachObjectWriter.h | ||
MCObjectFileInfo.h | ||
MCObjectStreamer.h | ||
MCObjectWriter.h | ||
MCPseudoProbe.h | ||
MCRegister.h | ||
MCRegisterInfo.h | ||
MCSchedule.h | ||
MCSection.h | ||
MCSectionCOFF.h | ||
MCSectionELF.h | ||
MCSectionMachO.h | ||
MCSectionWasm.h | ||
MCSectionXCOFF.h | ||
MCStreamer.h | ||
MCSubtargetInfo.h | ||
MCSymbol.h | ||
MCSymbolCOFF.h | ||
MCSymbolELF.h | ||
MCSymbolMachO.h | ||
MCSymbolWasm.h | ||
MCSymbolXCOFF.h | ||
MCTargetOptions.h | ||
MCTargetOptionsCommandFlags.h | ||
MCValue.h | ||
MCWasmObjectWriter.h | ||
MCWasmStreamer.h | ||
MCWin64EH.h | ||
MCWinCOFFObjectWriter.h | ||
MCWinCOFFStreamer.h | ||
MCWinEH.h | ||
MCXCOFFObjectWriter.h | ||
MCXCOFFStreamer.h | ||
SectionKind.h | ||
StringTableBuilder.h | ||
SubtargetFeature.h |