1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o
3
4# RUN: ld.lld %t1.o -o %t.out
5# RUN: llvm-objdump -s -t %t.out | FileCheck %s
6# CHECK: SYMBOL TABLE:
7# CHECK: 004010b7 l .und
8# CHECK:      Contents of section .text:
9# CHECK-NEXT:  4010b4 020000
10## 0x4010b7 - 0x4010b4 + addend(-1) = 0x02
11## 0x4010b7 - 0x4010b5 + addend(-2) = 0x0000
12
13.byte  und-.-1
14.short und-.-2
15
16.section .und, "ax"
17und:
18