aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMTargetObjectFile.cpp
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2010-10-11 23:01:44 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2010-10-11 23:01:44 +0000
commit7fbd5ff30035a562c6c7731ade9ad766345a3c64 (patch)
tree23eaf6defe5ca1239c1bcf27f904156ee70a9bb0 /lib/Target/ARM/ARMTargetObjectFile.cpp
parent25e6d9b650c0aaf201053f06fdc26dc9d9734928 (diff)
downloadexternal_llvm-7fbd5ff30035a562c6c7731ade9ad766345a3c64.zip
external_llvm-7fbd5ff30035a562c6c7731ade9ad766345a3c64.tar.gz
external_llvm-7fbd5ff30035a562c6c7731ade9ad766345a3c64.tar.bz2
Second set of ARM/MC/ELF changes.
Added ARM specific ELF section types. Added AttributesSection to ARMElfTargetObject First step in unifying .cpu assembly tag with ELF/.o llc now asserts on actual ELF emission on -filetype=obj :-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetObjectFile.cpp')
-rw-r--r--lib/Target/ARM/ARMTargetObjectFile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMTargetObjectFile.cpp b/lib/Target/ARM/ARMTargetObjectFile.cpp
index 091a3b3..f967b4d 100644
--- a/lib/Target/ARM/ARMTargetObjectFile.cpp
+++ b/lib/Target/ARM/ARMTargetObjectFile.cpp
@@ -36,4 +36,10 @@ void ARMElfTargetObjectFile::Initialize(MCContext &Ctx,
MCSectionELF::SHF_ALLOC,
SectionKind::getDataRel());
}
+
+ AttributesSection =
+ getContext().getELFSection(".ARM.attributes",
+ MCSectionELF::SHT_ARM_ATTRIBUTES,
+ 0,
+ SectionKind::getMetadata());
}