From 43ca0e9eb880dc211e94b2b2a05de715c321ef4e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 17 May 2019 02:51:54 +0000 Subject: [ARM] Support .reloc *, R_ARM_NONE, * R_ARM_NONE can be used to create references among sections. When --gc-sections is used, the referenced section will be retained if the origin section is retained. Add a generic MCFixupKind FK_NONE as this kind of no-op relocation is ubiquitous on ELF and COFF, and probably available on many other binary formats. See D62014. Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D61992 llvm-svn: 360980 --- llvm/lib/MC/MCAsmBackend.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/MC/MCAsmBackend.cpp') diff --git a/llvm/lib/MC/MCAsmBackend.cpp b/llvm/lib/MC/MCAsmBackend.cpp index ea794cc91fe..912bec91961 100644 --- a/llvm/lib/MC/MCAsmBackend.cpp +++ b/llvm/lib/MC/MCAsmBackend.cpp @@ -64,6 +64,7 @@ Optional MCAsmBackend::getFixupKind(StringRef Name) const { const MCFixupKindInfo &MCAsmBackend::getFixupKindInfo(MCFixupKind Kind) const { static const MCFixupKindInfo Builtins[] = { + {"FK_NONE", 0, 0, 0}, {"FK_Data_1", 0, 8, 0}, {"FK_Data_2", 0, 16, 0}, {"FK_Data_4", 0, 32, 0}, -- cgit v1.2.3