From 109ff296c8c45e0fb74fefe34068dbacf65d7e51 Mon Sep 17 00:00:00 2001 From: Jason W Kim Date: Mon, 11 Oct 2010 23:01:44 +0000 Subject: 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 :-) llvm-svn: 116257 --- llvm/lib/Target/ARM/ARMTargetObjectFile.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/Target/ARM/ARMTargetObjectFile.cpp') diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp b/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp index 091a3b3d849..f967b4d21ea 100644 --- a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp +++ b/llvm/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()); } -- cgit v1.2.3