diff options
| author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-10-11 23:01:44 +0000 |
|---|---|---|
| committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-10-11 23:01:44 +0000 |
| commit | 109ff296c8c45e0fb74fefe34068dbacf65d7e51 (patch) | |
| tree | dcee37474266fd26993b38382f86d03393ed96c6 /llvm/lib/Target/ARM/ARMTargetObjectFile.cpp | |
| parent | 84117119ffd823834afc96a6ec5262ed698fc935 (diff) | |
| download | bcm5719-llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.tar.gz bcm5719-llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.zip | |
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
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetObjectFile.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMTargetObjectFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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()); } |

