2013-07-16 02:43:01 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/hello.obj.yaml > %t.obj
|
|
|
|
#
|
|
|
|
# RUN: lld -flavor link -out %t1 -subsystem console -force -- %t.obj \
|
2013-07-23 09:29:50 +08:00
|
|
|
# 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
|
2013-07-16 02:43:01 +08:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
2013-07-23 09:29:50 +08:00
|
|
|
BASEREL: Contents of section .reloc:
|
|
|
|
BASEREL-NEXT: 3000 00100000 0c000000 07300c30 00000000 .........0.0....
|
|
|
|
|
|
|
|
NOBASEREL-NOT: Contents of section .reloc:
|