Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / emit-relocs-icf1.s
blob28fd29cfc1dad4315065f6cc3ee20220ef15f41f
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: ld.lld --emit-relocs --icf=all %t.o -o %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 # CHECK: Relocations [
7 # CHECK-NEXT: Section (3) .rela.text {
8 # CHECK-NEXT: 0x201128 R_X86_64_64 .text 0x11
9 # CHECK-NEXT: 0x201130 R_X86_64_64 .text 0x11
10 # CHECK-NEXT: 0x201139 R_X86_64_64 .rodata 0x0
11 # CHECK-NEXT: }
12 # CHECK-NEXT: ]
14 .rodata
15 quux:
16 .quad 0xfe
18 .section .text.foo,"ax"
19 foo:
20 .quad quux
22 .section .text.bar,"ax"
23 bar:
24 .quad quux
26 .text
27 .quad foo
28 .quad bar
30 .global _start
31 _start:
32 nop