mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
f7be8b3253
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>
39 lines
363 B
NASM
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
|