mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
Using "extern" or "required" after the definition should be interpreted as "global", just as if "extern" or "required" had been specified before the definition. Unfortunately the code did not correctly handle the case of upgrading from LOCAL to GLOBAL via an EXTERN or REQUIRED directive, only from EXTERN or REQUIRED to GLOBAL via definition or a GLOBAL or COMMON directive. Fix. Reported-by: E. C. Masloch <pushbx@ulukai.org> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
13 lines
169 B
NASM
13 lines
169 B
NASM
nop
|
|
global global_before
|
|
global_before:
|
|
nop
|
|
extern extern_before
|
|
extern_before:
|
|
nop
|
|
global_after:
|
|
nop
|
|
global global_after
|
|
extern_after:
|
|
nop
|
|
extern extern_after
|