[PATCH] D69296: [ARM] Uses "Sun Style" syntax for section switching
Jian Cai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 21:36:47 PDT 2019
jcai19 created this revision.
Herald added subscribers: llvm-commits, hiraditya, kristof.beyls.
Herald added a project: LLVM.
Support "Sun Style" syntax for section switching ("#alloc,#write" etc).
https://bugs.llvm.org/show_bug.cgi?id=43759
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69296
Files:
llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
llvm/test/MC/ARM/gas-compl-sun-elf.s
Index: llvm/test/MC/ARM/gas-compl-sun-elf.s
===================================================================
--- /dev/null
+++ llvm/test/MC/ARM/gas-compl-sun-elf.s
@@ -0,0 +1,7 @@
+@ RUN: llvm-mc -filetype=obj -triple arm-linux-gnu %s -o - | llvm-readelf --sections | FileCheck %s
+
+@ CHECK: .foo PROGBITS 00000000 000034 000000 00 A 0 0 1
+.section ".foo", #alloc
+
+@ CHECK: .bar PROGBITS 00000000 000034 000000 00 W 0 0 1
+.section ".bar", #write
Index: llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
===================================================================
--- llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
+++ llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
@@ -75,6 +75,9 @@
UseParensForSymbolVariant = true;
UseIntegratedAssembler = true;
+
+ //Data Emission Directives
+ SunStyleELFSectionSwitchSyntax = true;
}
void ARMELFMCAsmInfo::setUseIntegratedAssembler(bool Value) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69296.225993.patch
Type: text/x-patch
Size: 972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191022/52f2e01d/attachment.bin>
More information about the llvm-commits
mailing list