zig/deps/lld/test/ELF/gc-sections-non-alloc-to-merge.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04: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