llvm-mirror/lib/MC
Rafael Espindola a193e28818 Accept subtractions involving a weak symbol.
When a symbol S shows up in an expression in assembly there are two
possible interpretations
* The expression is referring to the value of S in this file.
* The expression is referring to the value after symbol resolution.

In the first case the assembler can reason about the value and try to
produce a relocation.
In the second case, that is only possible if the symbol cannot be
preempted.

Assemblers are not very consistent about which interpretation gets used.
This changes MC to agree with GAS in the case of an expression of the
form "Sym - WeakSym".

llvm-svn: 258329
2016-01-20 18:57:48 +00:00
..
MCDisassembler Delete MCRelocationInfo::createExprForRelocation. 2016-01-15 02:24:12 +00:00
MCParser [MC, COFF] Add .reloc support for WinCOFF 2016-01-19 23:05:27 +00:00
CMakeLists.txt [ptr-traits] Split the MCFragment type hierarchy out of the MCAssembler 2015-12-29 09:06:16 +00:00
ConstantPools.cpp
ELFObjectWriter.cpp Accept subtractions involving a weak symbol. 2016-01-20 18:57:48 +00:00
LLVMBuild.txt
MachObjectWriter.cpp Update to use new name alignTo(). 2016-01-14 21:06:47 +00:00
Makefile
MCAsmBackend.cpp [MC, COFF] Add .reloc support for WinCOFF 2016-01-19 23:05:27 +00:00
MCAsmInfo.cpp
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp [WebAssembly] Don't create a needless .note.GNU-stack section 2016-01-15 23:59:13 +00:00
MCAsmStreamer.cpp
MCAssembler.cpp Use larger write sizes for MCFillFragment. 2016-01-19 17:47:48 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCContext.cpp
MCDwarf.cpp Clang-format my previous change (r256313) 2016-01-04 18:49:15 +00:00
MCELFObjectTargetWriter.cpp Always sort by offset first. NFC. 2015-12-17 15:08:24 +00:00
MCELFStreamer.cpp
MCExpr.cpp [WebAssembly] Define WebAssembly-specific relocation codes. 2016-01-11 23:38:05 +00:00
MCFragment.cpp Simplify MCFillFragment. 2016-01-19 16:57:08 +00:00
MCInst.cpp Teach MCOperand::print how to print FPImm operands. 2015-12-21 16:47:10 +00:00
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp Simplify MCFillFragment. 2016-01-19 16:57:08 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp Added support for macro emission in dwarf (supporting DWARF version 4). 2016-01-07 14:28:20 +00:00
MCObjectStreamer.cpp [MC, COFF] Add .reloc support for WinCOFF 2016-01-19 23:05:27 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCSchedule.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp
MCSubtargetInfo.cpp (NFC) Change SubtargetFeatures::ToggleFeature and 2016-01-05 10:25:56 +00:00
MCSymbol.cpp [ptr-traits] Provide a real MCFragment address for the sentinel instead 2015-12-29 09:32:18 +00:00
MCSymbolELF.cpp
MCSymbolizer.cpp
MCTargetOptions.cpp [MC, COFF] Support link /incremental conditionally 2015-12-21 22:09:27 +00:00
MCValue.cpp
MCWin64EH.cpp
MCWinEH.cpp
StringTableBuilder.cpp
SubtargetFeature.cpp (NFC) Change SubtargetFeatures::ToggleFeature and 2016-01-05 10:25:56 +00:00
WinCOFFObjectWriter.cpp Update to use new name alignTo(). 2016-01-14 21:06:47 +00:00
WinCOFFStreamer.cpp Simplify MCFillFragment. 2016-01-19 16:57:08 +00:00
YAML.cpp