Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkerscript / emit-reloc-section-names.s
blob805d3c2cad4b2fbe1d7b9d61bc7dbe73bc6b32be
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "SECTIONS { .text.zed : { *(.text.foo) } .text.qux : { *(.text.bar) } }" > %t.script
4 # RUN: ld.lld -T %t.script --emit-relocs %t.o -o %t
5 # RUN: llvm-objdump --section-headers %t | FileCheck %s
7 ## Check we name relocation sections in according to
8 ## their target sections names.
10 # CHECK: .text.zed
11 # CHECK: .text.qux
12 # CHECK: .rela.text.zed
13 # CHECK: .rela.text.qux
15 .section .text.foo,"ax"
16 foo:
17 mov $bar, %rax
19 .section .text.bar,"ax"
20 bar:
21 mov $foo, %rax