[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / i386-relax-reloc.s
blob999f15b98c8797f421f1b390f4ef8705f7c45568
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o -relax-relocations
3 // RUN: ld.lld -shared %t.o -o %t.so
4 // RUN: llvm-readelf -S %t.so | FileCheck --check-prefix=SEC %s
5 // RUN: llvm-objdump -d --no-show-raw-insn %t.so | FileCheck %s
7 // SEC: .got PROGBITS 000021f0
8 // SEC-NEXT: .got.plt PROGBITS 000031f4
10 // CHECK: <foo>:
11 // CHECK-NEXT: 1194: movl -4100(%ebx), %eax
12 // CHECK-NEXT: movl -4092(%ebx), %eax
14 foo:
15 movl bar@GOT(%ebx), %eax
16 movl bar+8@GOT(%ebx), %eax