view lld/test/ELF/gc-sections-lsda.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children 2e18cbf3894f
line wrap: on
line source

// 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: