aboutsummaryrefslogtreecommitdiffstats
path: root/test/subsection.asm
diff options
context:
space:
mode:
Diffstat (limited to 'test/subsection.asm')
-rw-r--r--test/subsection.asm39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/subsection.asm b/test/subsection.asm
new file mode 100644
index 00000000..eb0f05d7
--- /dev/null
+++ b/test/subsection.asm
@@ -0,0 +1,39 @@
+;
+; subsection.asm
+;
+; Test of Mach-O subsection_by_symbol
+;
+
+%pragma output subsections_via_symbols
+
+ bits 32
+
+ global foo, bar, quux
+
+%define baz Lbaz
+
+foo:
+ jmp foo
+ jmp bar
+ jmp baz
+ jmp quux
+
+bar:
+ jmp foo
+ jmp bar
+ jmp baz
+ jmp quux
+
+baz:
+ jmp foo
+ jmp bar
+ jmp baz
+ jmp quux
+
+quux:
+ jmp foo
+ jmp bar
+ jmp baz
+ jmp quux
+
+