]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/data-commands-gc.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / data-commands-gc.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { .text : { *(.text*) QUAD(bar) } }" > %t.script
4 # RUN: ld.lld --gc-sections -o %t %t.o --script %t.script
5 # RUN: llvm-objdump -t %t | FileCheck %s
6
7 # CHECK: 0000000000000008         .rodata                 00000000 bar
8
9 .section .rodata.bar
10 .quad 0x1122334455667788
11 .global bar
12 bar:
13
14 .section .text
15 .global _start
16 _start:
17   nop