2013-07-20 08:45:00 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/nop.obj.yaml > %t.obj
|
|
|
|
#
|
2013-11-25 10:00:00 +08:00
|
|
|
# RUN: lld -flavor link /out:%t1 /opt:noref /subsystem:console /force \
|
|
|
|
# RUN: -- %t.obj \
|
2013-07-20 08:45:00 +08:00
|
|
|
# RUN: && llvm-readobj -file-headers %t1 | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
#
|
2013-11-25 10:00:00 +08:00
|
|
|
# RUN: lld -flavor link /out:%t1 /opt:noref /base:8388608 /subsystem:console \
|
|
|
|
# RUN: /force -- %t.obj \
|
2013-07-20 08:45:00 +08:00
|
|
|
# RUN: && llvm-readobj -file-headers %t1 | FileCheck -check-prefix=BASE %s
|
|
|
|
|
|
|
|
DEFAULT: ImageBase: 0x400000
|
|
|
|
|
|
|
|
BASE: ImageBase: 0x800000
|
2013-09-04 06:57:00 +08:00
|
|
|
|
|
|
|
|
2013-11-25 10:00:00 +08:00
|
|
|
# RUN: not lld -flavor link /base:3 /subsystem:console -- %t.obj >& %t.log
|
2013-09-04 06:57:00 +08:00
|
|
|
# RUN: FileCheck -check-prefix=ERROR %s < %t.log
|
|
|
|
|
|
|
|
ERROR: Base address have to be multiple of 64K, but got 3
|