llvm-project/llvm/lib/Target/ARM/MCTargetDesc
Rafael Espindola 13a79bbfe5 Change how we handle section symbols on ELF.
On ELF every section can have a corresponding section symbol. When in
an assembly file we have

.quad .text

the '.text' refers to that symbol.

The way we used to handle them is to leave .text an undefined symbol
until the very end when the object writer would map them to the
actual section symbol.

The problem with that is that anything before the end would see an
undefined symbol. This could result in bad diagnostics
(test/MC/AArch64/label-arithmetic-diags-elf.s), or incorrect results
when using the asm streamer (est/MC/Mips/expansion-jal-sym-pic.s).

Fixing this will also allow using the section symbol earlier for
setting sh_link of SHF_METADATA sections.

This patch includes a few hacks to avoid changing our behaviour when
handling conflicts between section symbols and other symbols. I
reported pr31850 to track that.

llvm-svn: 293936
2017-02-02 21:26:06 +00:00
..
ARMAddressingModes.h
ARMAsmBackend.cpp [Assembler] Fix crash when assembling .quad for AArch32. 2017-01-18 15:02:54 +00:00
ARMAsmBackend.h Fix branch relaxation in 16-bit mode. 2016-07-11 14:23:53 +00:00
ARMAsmBackendDarwin.h MachO: enable .data_region directives everywhere 2016-04-21 23:00:17 +00:00
ARMAsmBackendELF.h
ARMAsmBackendWinCOFF.h
ARMBaseInfo.h Don't print (PLT) on arm. 2016-06-16 16:09:53 +00:00
ARMELFObjectWriter.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-27 23:58:02 +00:00
ARMELFStreamer.cpp Change how we handle section symbols on ELF. 2017-02-02 21:26:06 +00:00
ARMFixupKinds.h Fix for pr24346: arm asm label calculation error in sub 2016-04-01 09:40:47 +00:00
ARMMCAsmInfo.cpp [ARM] Set a non-conflicting comment character for assembly in MSVC mode 2016-07-27 12:31:58 +00:00
ARMMCAsmInfo.h
ARMMCCodeEmitter.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-27 23:58:02 +00:00
ARMMCExpr.cpp
ARMMCExpr.h
ARMMCTargetDesc.cpp Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
ARMMCTargetDesc.h Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
ARMMachORelocationInfo.cpp
ARMMachObjectWriter.cpp Replace "fallthrough" comments with LLVM_FALLTHROUGH 2016-08-17 05:10:15 +00:00
ARMTargetStreamer.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-27 23:58:02 +00:00
ARMUnwindOpAsm.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-31 00:56:17 +00:00
ARMUnwindOpAsm.h [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-31 00:56:17 +00:00
ARMWinCOFFObjectWriter.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-27 23:58:02 +00:00
ARMWinCOFFStreamer.cpp
CMakeLists.txt
LLVMBuild.txt