diff options
author | Fangrui Song <maskray@google.com> | 2019-05-17 02:51:54 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-17 02:51:54 +0000 |
commit | 43ca0e9eb880dc211e94b2b2a05de715c321ef4e (patch) | |
tree | 61a8a1821ce7b57f609d4c24c316466b9604bbcb /llvm/lib/MC/MCAsmBackend.cpp | |
parent | a74d6543745bdc0fb6c3170d65f78934ce1760de (diff) | |
download | bcm5719-llvm-43ca0e9eb880dc211e94b2b2a05de715c321ef4e.tar.gz bcm5719-llvm-43ca0e9eb880dc211e94b2b2a05de715c321ef4e.zip |
[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
Diffstat (limited to 'llvm/lib/MC/MCAsmBackend.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmBackend.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<MCFixupKind> 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}, |