fortrangoingonforty/afs-ld / df9901c

Browse files

Add mixed export parity case

Authored by espadonne
SHA
df9901c55dc972303ac96e0aafa5bc527ab85302
Parents
856cd74
Tree
b1d8fe5

6 changed files

StatusFile+-
A tests/parity_corpus/export_text_data_dylib/args.txt 16 0
A tests/parity_corpus/export_text_data_dylib/command_checks.txt 3 0
A tests/parity_corpus/export_text_data_dylib/ignored_load_commands.txt 1 0
A tests/parity_corpus/export_text_data_dylib/inputs/main.s 13 0
A tests/parity_corpus/export_text_data_dylib/notes.md 4 0
A tests/parity_corpus/export_text_data_dylib/sections.txt 1 0
tests/parity_corpus/export_text_data_dylib/args.txtadded
@@ -0,0 +1,16 @@
1
+-dylib
2
+-arch
3
+arm64
4
+-platform_version
5
+macos
6
+@SDK_VERSION@
7
+@SDK_VERSION@
8
+-syslibroot
9
+@SDK_PATH@
10
+-lSystem
11
+-install_name
12
+@rpath/export-text-data.dylib
13
+-no_fixup_chains
14
+-o
15
+@OUT@
16
+@INPUT:main.o@
tests/parity_corpus/export_text_data_dylib/command_checks.txtadded
@@ -0,0 +1,3 @@
1
+build_version
2
+export_records
3
+symbol_record_map
tests/parity_corpus/export_text_data_dylib/ignored_load_commands.txtadded
@@ -0,0 +1,1 @@
1
+
tests/parity_corpus/export_text_data_dylib/inputs/main.sadded
@@ -0,0 +1,13 @@
1
+        .section __TEXT,__text,regular,pure_instructions
2
+        .globl _code_symbol
3
+        _code_symbol:
4
+            ret
5
+        .section __DATA,__data
6
+        .p2align 3
7
+        .globl _data_symbol
8
+        _data_symbol:
9
+            .quad 0x1234
10
+        .globl _more_data
11
+        _more_data:
12
+            .long 7
13
+        .subsections_via_symbols
tests/parity_corpus/export_text_data_dylib/notes.mdadded
@@ -0,0 +1,4 @@
1
+Mixed text-plus-data dylib export parity case lifted from the existing
2
+`linker_run` export matrix. This broadens the Sprint 27 corpus beyond
3
+text-only dylibs and checks that both the export trie and final symtab stay in
4
+Apple-parity agreement when exported symbols live in different sections.
tests/parity_corpus/export_text_data_dylib/sections.txtadded
@@ -0,0 +1,1 @@
1
+