mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
ARM64: don't emit .subsections_via_symbols on ELF.
Part of PR19455. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -120,13 +120,15 @@ private:
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
void ARM64AsmPrinter::EmitEndOfAsmFile(Module &M) {
|
void ARM64AsmPrinter::EmitEndOfAsmFile(Module &M) {
|
||||||
// Funny Darwin hack: This flag tells the linker that no global symbols
|
if (Subtarget->isTargetMachO()) {
|
||||||
// contain code that falls through to other global symbols (e.g. the obvious
|
// Funny Darwin hack: This flag tells the linker that no global symbols
|
||||||
// implementation of multiple entry points). If this doesn't occur, the
|
// contain code that falls through to other global symbols (e.g. the obvious
|
||||||
// linker can safely perform dead code stripping. Since LLVM never
|
// implementation of multiple entry points). If this doesn't occur, the
|
||||||
// generates code that does this, it is always safe to set.
|
// linker can safely perform dead code stripping. Since LLVM never
|
||||||
OutStreamer.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
|
// generates code that does this, it is always safe to set.
|
||||||
SM.serializeToStackMapSection();
|
OutStreamer.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
|
||||||
|
SM.serializeToStackMapSection();
|
||||||
|
}
|
||||||
|
|
||||||
// Emit a .data.rel section containing any stubs that were created.
|
// Emit a .data.rel section containing any stubs that were created.
|
||||||
if (Subtarget->isTargetELF()) {
|
if (Subtarget->isTargetELF()) {
|
||||||
|
5
test/CodeGen/ARM64/subsections.ll
Normal file
5
test/CodeGen/ARM64/subsections.ll
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
; RUN: llc -mtriple=arm64-apple-ios7.0 -o - %s | FileCheck %s --check-prefix=CHECK-MACHO
|
||||||
|
; RUN: llc -mtriple=arm64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK-ELF
|
||||||
|
|
||||||
|
; CHECK-MACHO: .subsections_via_symbols
|
||||||
|
; CHECK-ELF-NOT: .subsections_via_symbols
|
Reference in New Issue
Block a user