aboutsummaryrefslogtreecommitdiff
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
commit17b443df4368acfad853d09858c033c45c468d5c (patch)
tree23eaf6defe5ca1239c1bcf27f904156ee70a9bb0 /lib/Target/ARM/ARMTargetObjectFile.cpp
parentd3d2ddc78ea901a5b11123374f50523ea86428cb (diff)
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 091a3b3d84..f967b4d21e 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());
}