aboutsummaryrefslogtreecommitdiff
path: root/test/mach-o/sectcreate.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/mach-o/sectcreate.yaml')
-rw-r--r--test/mach-o/sectcreate.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/mach-o/sectcreate.yaml b/test/mach-o/sectcreate.yaml
new file mode 100644
index 000000000000..51c59dc5f3d4
--- /dev/null
+++ b/test/mach-o/sectcreate.yaml
@@ -0,0 +1,12 @@
+# RUN: lld -flavor darwin -r -arch x86_64 -o %t -sectcreate __DATA __data \
+# RUN: %p/Inputs/hw.raw_bytes -print_atoms | FileCheck %s
+
+# CHECK: --- !native
+# CHECK: path: '<linker-internal>'
+# CHECK: defined-atoms:
+# CHECK: - scope: global
+# CHECK: type: sectcreate
+# CHECK: content: [ 68, 65, 6C, 6C, 6F, 0A ]
+# CHECK: section-choice: custom-required
+# CHECK: section-name: __DATA/__data
+# CHECK: dead-strip: never