mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-21 09:19:31 +08:00
8413e8167a
Add a test for subsections via symbols. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
38 lines
326 B
NASM
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
|