nasm/test/subsection.asm
H. Peter Anvin f7be8b3253 pragma: define a hander for generic output (and debug) pragmas
There are cases where we may want to implement generic pragmas, while
still make them selective based on output and/or debug formats.
Initially, use this for the prefix/suffix options.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Chang Seok Bae <chang.seok.bae@intel.com>
2018-06-18 11:34:33 -07:00

39 lines
363 B
NASM

;
; subsection.asm
;
; Test of Mach-O subsection_by_symbol
;
%pragma macho subsections_via_symbols
%pragma macho gprefix _
%pragma macho lprefix L.
bits 32
global foo, bar
static quux
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