[PATCH] D148358: [MC] Add section flag 'l' for SHF_X86_64_LARGE
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 11:06:56 PDT 2023
aeubanks created this revision.
aeubanks added a reviewer: MaskRay.
Herald added subscribers: hiraditya, emaste.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148358
Files:
llvm/lib/MC/MCParser/ELFAsmParser.cpp
llvm/test/MC/ELF/section.s
Index: llvm/test/MC/ELF/section.s
===================================================================
--- llvm/test/MC/ELF/section.s
+++ llvm/test/MC/ELF/section.s
@@ -268,6 +268,14 @@
// CHECK-NEXT: SHF_WRITE
// CHECK-NEXT: ]
+.section .large,"l"
+// CHECK: Section {
+// CHECK: Name: .large
+// CHECK-NEXT: Type: SHT_PROGBITS
+// CHECK-NEXT: Flags [
+// CHECK-NEXT: SHF_X86_64_LARGE
+// CHECK-NEXT: ]
+
// Test SHT_LLVM_ODRTAB
.section .odrtab,"e", at llvm_odrtab
Index: llvm/lib/MC/MCParser/ELFAsmParser.cpp
===================================================================
--- llvm/lib/MC/MCParser/ELFAsmParser.cpp
+++ llvm/lib/MC/MCParser/ELFAsmParser.cpp
@@ -331,6 +331,9 @@
case 'G':
flags |= ELF::SHF_GROUP;
break;
+ case 'l':
+ flags |= ELF::SHF_X86_64_LARGE;
+ break;
case 'R':
if (TT.isOSSolaris())
flags |= ELF::SHF_SUNW_NODISCARD;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148358.513680.patch
Type: text/x-patch
Size: 948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/c69655f7/attachment.bin>
More information about the llvm-commits
mailing list