2017-01-25 21:36:49 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o
|
2017-02-06 17:25:56 +08:00
|
|
|
# RUN: ld.lld -Ttext 0x0 %t1.o -o %t.out
|
2020-03-16 08:47:44 +08:00
|
|
|
# RUN: llvm-objdump -s --section=.text %t.out | FileCheck %s
|
2017-01-25 21:36:49 +08:00
|
|
|
|
|
|
|
# CHECK: Contents of section .text:
|
2017-01-30 21:56:57 +08:00
|
|
|
# CHECK-NEXT: 0000 15253748
|
2017-01-25 21:36:49 +08:00
|
|
|
|
|
|
|
.byte und-.+0x11
|
|
|
|
.byte und-.+0x22
|
|
|
|
.byte und+0x33
|
|
|
|
.byte und+0x44
|
2017-02-06 17:25:56 +08:00
|
|
|
|
|
|
|
.section .und, "ax"
|
|
|
|
und:
|