diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:49 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:49 +0000 |
commit | e2fd426bdafe9f5c10066d3926ece6e342184a67 (patch) | |
tree | bfbbb5fd38554e6b8988b7a217e9fd0623728d7d /test/ELF/format-binary.test | |
parent | 84c4061b34e048f47e5eb4fbabc1558495e8157c (diff) |
Notes
Diffstat (limited to 'test/ELF/format-binary.test')
-rw-r--r-- | test/ELF/format-binary.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/format-binary.test b/test/ELF/format-binary.test index 94b9b51afe78..7c554bb60e43 100644 --- a/test/ELF/format-binary.test +++ b/test/ELF/format-binary.test @@ -55,3 +55,15 @@ # CHECK-NEXT: Other: 0 # CHECK-NEXT: Section: Absolute # CHECK-NEXT: } + +# RUN: echo 'OUTPUT_FORMAT(elf64-x86-64)' > %t.script +# RUN: ld.lld -b binary %t.binary -T %t.script -o %t.out +# RUN: llvm-readobj %t.out -sections -section-data -symbols | FileCheck -check-prefix=X86-64 %s + +# X86-64: Format: ELF64-x86-64 + +# RUN: echo 'OUTPUT_FORMAT("elf64-x86-64")' > %t.script +# RUN: ld.lld -b binary %t.binary -T %t.script -o %t.out +# RUN: llvm-readobj %t.out -sections -section-data -symbols | FileCheck -check-prefix=X86-64-in-quotes %s + +# X86-64-in-quotes: Format: ELF64-x86-64 |