nasm/test/subsection.asm
H. Peter Anvin 8413e8167a test: add test for subsections via symbols
Add a test for subsections via symbols.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2018-05-30 14:48:45 -07:00

38 lines
326 B
NASM

;
; 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