llvm-project/lld/test/pecoff/base-reloc.test

19 lines
745 B
Plaintext
Raw Normal View History

# RUN: yaml2obj %p/Inputs/hello.obj.yaml > %t.obj
#
# RUN: lld -flavor link -out %t1 -subsystem console -force -- %t.obj \
# RUN: && llvm-objdump -s %t1 | FileCheck %s --check-prefix=BASEREL
#
# RUN: lld -flavor link -out %t1 -subsystem console -force -fixed -- %t.obj \
# RUN: && llvm-objdump -s %t1 | FileCheck %s --check-prefix=NOBASEREL
# Because llvm-objdump cannot pretty-print the contents of .reloc section, we
# have no choice other than comparing the result with this binary blob.
#
# TODO: Improve llvm-objdump to pretty print .reloc section as GNU binutil
# objdump does.
BASEREL: Contents of section .reloc:
BASEREL-NEXT: 3000 00100000 0c000000 07300c30 00000000 .........0.0....
NOBASEREL-NOT: Contents of section .reloc: