1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/lib/MC
Sam Clegg 0c7ce7206a [MC][WebAssembly] Fix provisional values for data alias relocations
When calculating the symbol offsets to write as provisitonal values
in object files we are only interested in the offset of the symbol
itself.  For aliases this offset already includes the offset of the
base symbol.

The testin question was added back in https://reviews.llvm.org/D87407
but I believe the expectations here were incorrect.   sym_a lives
at offset 4 and sym_b lives 4 bytes into that (should be 8).

The addresses of the 3 symbosl in this object file are:

foo  : 0
sym_a: 4
sym_b: 8

Differential Revision: https://reviews.llvm.org/D96234
2021-02-08 16:56:57 -08:00
..
MCDisassembler llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
MCParser [MC] Upgrade DWARF version to 5 upon .file 0 2021-02-02 09:41:05 -08:00
CMakeLists.txt [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
ConstantPools.cpp
ELFObjectWriter.cpp ELFObjectWriter: Don't de-duplicate STT_FILE symbols 2021-02-07 18:21:36 -08:00
MachObjectWriter.cpp
MCAsmBackend.cpp
MCAsmInfo.cpp [llvm] Use isAlpha/isAlnum (NFC) 2021-01-22 23:25:03 -08:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmInfoWasm.cpp
MCAsmInfoXCOFF.cpp [XCOFF][AIX] Alternative path in EHStreamer for platforms do not have uleb128 support 2020-12-02 20:03:15 +00:00
MCAsmMacro.cpp [ms] [llvm-ml] Enable support for MASM-style macro procedures 2020-11-04 10:29:57 -05:00
MCAsmStreamer.cpp [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
MCAssembler.cpp MCDwarf: Delete uneeded parameter 2021-01-21 00:55:07 -08:00
MCCodeEmitter.cpp
MCCodeView.cpp [CodeView] Fix inline sites that are missing code offsets. 2020-12-07 13:01:53 -08:00
MCContext.cpp [MC] Split MCContext::createTempSymbol, default AlwaysAddSuffix to true, and add comments 2020-12-21 14:04:13 -08:00
MCDwarf.cpp [MC] Use std::make_tuple to make some toolchains happy again 2021-01-21 14:05:14 +01:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp [MC][ELF] Remove unneeded MCSymbol::setExternal calls 2020-12-20 21:26:36 -08:00
MCExpr.cpp [X86] Support modifier @PLTOFF for R_X86_64_PLTOFF64 2020-12-01 08:39:01 -08:00
MCFragment.cpp [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
MCInst.cpp [WebAssembly] Support single-floating-point immediate value 2021-02-04 18:05:06 -08:00
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp
MCInstrInfo.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp [MC] Make MCStreamer aware of AsmParser's StartTokLoc 2020-11-02 12:32:07 -08:00
MCNullStreamer.cpp [MC] Make MCStreamer aware of AsmParser's StartTokLoc 2020-11-02 12:32:07 -08:00
MCObjectFileInfo.cpp [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
MCObjectStreamer.cpp [MC] Split MCContext::createTempSymbol, default AlwaysAddSuffix to true, and add comments 2020-12-21 14:04:13 -08:00
MCObjectWriter.cpp
MCPseudoProbe.cpp [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
MCRegisterInfo.cpp
MCSchedule.cpp
MCSection.cpp [llvm] Use llvm::lower_bound and llvm::upper_bound (NFC) 2021-01-29 23:23:36 -08:00
MCSectionCOFF.cpp
MCSectionELF.cpp [MC] Support SHF_GNU_RETAIN as section flag 'R' 2021-02-02 09:34:09 -08:00
MCSectionMachO.cpp [llvm] Use llvm::find_if (NFC) 2021-01-11 18:48:06 -08:00
MCSectionWasm.cpp [WebAssembly] Support COMDAT sections in assembly syntax 2020-12-10 16:43:59 -08:00
MCSectionXCOFF.cpp
MCStreamer.cpp [MC] Split MCContext::createTempSymbol, default AlwaysAddSuffix to true, and add comments 2020-12-21 14:04:13 -08:00
MCSubtargetInfo.cpp
MCSymbol.cpp
MCSymbolELF.cpp
MCSymbolXCOFF.cpp
MCTargetOptions.cpp
MCTargetOptionsCommandFlags.cpp
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp [WebAssembly][MC] Remove useless overrides in MCWasmStreamer 2020-11-17 07:09:49 -08:00
MCWin64EH.cpp Reapply "[CodeGen] [WinException] Only produce handler data at the end of the function if needed" 2020-11-23 23:17:03 +02:00
MCWinCOFFStreamer.cpp [MC] Make MCStreamer aware of AsmParser's StartTokLoc 2020-11-02 12:32:07 -08:00
MCWinEH.cpp
MCXCOFFObjectTargetWriter.cpp
MCXCOFFStreamer.cpp [MC] Make MCStreamer aware of AsmParser's StartTokLoc 2020-11-02 12:32:07 -08:00
StringTableBuilder.cpp
SubtargetFeature.cpp
WasmObjectWriter.cpp [MC][WebAssembly] Fix provisional values for data alias relocations 2021-02-08 16:56:57 -08:00
WinCOFFObjectWriter.cpp ELFObjectWriter: Make STT_FILE precede associated local symbols 2021-02-07 17:51:40 -08:00
XCOFFObjectWriter.cpp [NFC][AIX][XCOFF] Fix compile warning on strncpy 2021-01-19 14:07:11 +08:00