summaryrefslogtreecommitdiff
path: root/test/old-elf/linkerscript/valid-script-cli.objtxt
diff options
context:
space:
mode:
Diffstat (limited to 'test/old-elf/linkerscript/valid-script-cli.objtxt')
-rw-r--r--test/old-elf/linkerscript/valid-script-cli.objtxt23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/old-elf/linkerscript/valid-script-cli.objtxt b/test/old-elf/linkerscript/valid-script-cli.objtxt
new file mode 100644
index 000000000000..a7342c41f529
--- /dev/null
+++ b/test/old-elf/linkerscript/valid-script-cli.objtxt
@@ -0,0 +1,23 @@
+# Check that the linker script inputs are accepted properly.
+
+# RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/valid.ls -r %s \
+# RUN: --output-filetype=yaml | FileCheck %s
+
+# RUN: lld -flavor old-gnu -target x86_64 -T %p/Inputs/valid.ls -r %s \
+# RUN: --output-filetype=yaml | FileCheck %s
+
+# RUN: lld -flavor old-gnu -target x86_64 --script=%p/Inputs/valid.ls -r %s \
+# RUN: --output-filetype=yaml | FileCheck %s
+
+# RUN: lld -flavor old-gnu -target x86_64 -L%p/Inputs/ -l:valid.ls -r %s \
+# RUN: --output-filetype=yaml | FileCheck %s
+
+defined-atoms:
+ - name: main
+ scope: global
+ content: [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00, 00, C3 ]
+ alignment: 16
+ section-choice: custom-required
+ section-name: .text
+
+# CHECK: _entry_point