Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

22 lines
598 B
ArmAsm

// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld -shared --gc-sections %t.o -o %t
// Test that we handle .eh_frame keeping sections alive. We could be more
// precise and gc the entire contents of this file, but test that at least
// we are consistent: if we keep .abc, we have to keep .foo
// RUN: llvm-readobj -s %t | FileCheck %s
// CHECK: Name: .abc
// CHECK: Name: .foo
.cfi_startproc
.cfi_lsda 0x1b,zed
.cfi_endproc
.section .abc,"a"
zed:
.long bar-.
.section .foo,"ax"
bar: