[X86] Print 'l' section flag for SHF_X86_64_LARGE (#70380)

When directly compiling to an object file we properly set the section
flag, but not when emitting assembly.
This commit is contained in:
Arthur Eubanks
2023-10-30 09:24:18 -07:00
committed by GitHub
parent 8a1719d3ed
commit f75370310c
2 changed files with 5 additions and 0 deletions

View File

@@ -123,6 +123,9 @@ void MCSectionELF::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
} else if (Arch == Triple::hexagon) {
if (Flags & ELF::SHF_HEX_GPREL)
OS << 's';
} else if (Arch == Triple::x86_64) {
if (Flags & ELF::SHF_X86_64_LARGE)
OS << 'l';
}
OS << '"';

View File

@@ -269,6 +269,8 @@ bar:
// CHECK-NEXT: ]
.section .large,"l"
// ASM: .section .large,"l"
// CHECK: Section {
// CHECK: Name: .large
// CHECK-NEXT: Type: SHT_PROGBITS