linux-packaging-mono/external/llvm-project/lld/test/ELF/gc-sections-non-alloc-to-merge.s
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

28 lines
587 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t --gc-sections
# RUN: llvm-readobj -s --elf-output-style=GNU %t | FileCheck %s
# CHECK: .merge1 PROGBITS {{[0-9a-z]*}} {{[0-9a-z]*}} 000004
.global _start
_start:
.quad .Lfoo
.section .merge1,"aM",@progbits,4
.p2align 2
.Lfoo:
.long 1
.Lbar:
.long 2
.section .merge2,"aM",@progbits,4
.p2align 2
.Lzed:
.long 1
.section bar
.quad .Lbar
.quad .Lzed