[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / i386-reloc8-reloc16-addend.s
blobb86654c6429d5386d539f10dbf94a782cf36f9a1
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o
4 # RUN: ld.lld -Ttext=0x0 %t1.o -o %t.out
5 # RUN: llvm-objdump -s -t %t.out | FileCheck %s
6 ## 0x3 + addend(-1) = 0x02
7 ## 0x3 + addend(-2) = 0x0100
8 # CHECK: SYMBOL TABLE:
9 # CHECK-NEXT: 00000003 l .und 00000000 und
10 # CHECK: Contents of section .text:
11 # CHECK-NEXT: 0000 020100
13 .byte und-1
14 .short und-2
16 .section .und, "ax"
17 und: