llvm/lib/MC
Evgeniy Stepanov 3828f99ca5 Handle section vs global name conflict.
This is a fix for PR26941.

When there is both a section and a global definition with the same
name, the global wins.

Section symbols are not added to the symbol table; section references
are left undefined and fixed up in the object writer unless they've
been satisfied by some other definition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264649 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-28 20:36:28 +00:00
..
MCDisassembler One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
MCParser [ELF][gcc compatibility]: support section names with special characters (e.g. "/") 2016-03-22 11:23:15 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
ConstantPools.cpp
ELFObjectWriter.cpp Handle section vs global name conflict. 2016-03-28 20:36:28 +00:00
LLVMBuild.txt
MachObjectWriter.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAsmBackend.cpp [MC, COFF] Add .reloc support for WinCOFF 2016-01-19 23:05:27 +00:00
MCAsmInfo.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAsmInfoELF.cpp [WebAssembly] Don't create a needless .note.GNU-stack section 2016-01-15 23:59:13 +00:00
MCAsmStreamer.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAssembler.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCCodeView.cpp [codeview] Fix emission of file changes in inline line tables 2016-02-19 23:55:38 +00:00
MCContext.cpp Handle section vs global name conflict. 2016-03-28 20:36:28 +00:00
MCDwarf.cpp Don't crash when compiling inline assembler containing .file directives. 2016-03-09 17:32:56 +00:00
MCELFObjectTargetWriter.cpp Always sort by offset first. NFC. 2015-12-17 15:08:24 +00:00
MCELFStreamer.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCExpr.cpp [MC] Rename TLSDESC as it's not ARM specific. 2016-03-15 17:29:52 +00:00
MCFragment.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
MCInst.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp Replace uint16_t with the MCPhysReg typedef in many places. A lot of physical register arrays already use this typedef. 2015-12-05 07:13:35 +00:00
MCLabel.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp [MachO] Extend the alt_entry support for aliases added in r263521 to 2016-03-15 04:20:49 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp [lanai] Add ELF enum value and relocations. 2016-03-01 21:21:42 +00:00
MCObjectStreamer.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp [codeview] Bail on a DBG_VALUE register operand with no register 2016-02-16 21:49:26 +00:00
MCSchedule.cpp
MCSection.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Add capability to push/pop DFI in MCStreamer. NFC 2016-02-24 22:25:18 +00:00
MCSubtargetInfo.cpp (NFC) Change SubtargetFeatures::ToggleFeature and 2016-01-05 10:25:56 +00:00
MCSymbol.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCSymbolELF.cpp
MCTargetOptions.cpp [MC, COFF] Support link /incremental conditionally 2015-12-21 22:09:27 +00:00
MCValue.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCWin64EH.cpp
MCWinEH.cpp
StringTableBuilder.cpp Add support for merging strings with alignment larger than one char. 2016-02-19 14:13:52 +00:00
SubtargetFeature.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
WinCOFFObjectWriter.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
WinCOFFStreamer.cpp Simplify MCFillFragment. 2016-01-19 16:57:08 +00:00