Re: Linking libraries?
- From: Frank Kotler <fbkotler@xxxxxxxxxxx>
- Date: Tue, 30 May 2006 19:08:54 -0400
Julienne Walker wrote:
Frank Kotler wrote:
Julienne Walker wrote:
...
global _main
extern _getenv
_main:
I still think we're going to want to lose the underscores for Linux...
Well, Solar's got it working...
Yea, underscores are iffy. It's probably better to never use them and
take advantage of the --prefix switch on systems that need them.
That's the way I'd do it. Still another option... Nasm has some "built in macros" - some global, some specific to output format. "-f elf" includes this macro to "un-underscore" names. Useful for porting already written code that uses 'em...
"%macro __NASM_CDecl__ 1",
"%define $_%1 $%1",
"%endmacro",
So many choices...
Best,
Frank
.
- References:
- Linking libraries?
- From: Solar
- Re: Linking libraries?
- From: Julienne Walker
- Re: Linking libraries?
- From: Frank Kotler
- Re: Linking libraries?
- From: Julienne Walker
- Linking libraries?
- Prev by Date: Re: bootloader
- Next by Date: Re: itoa assembly version
- Previous by thread: Re: Linking libraries?
- Next by thread: Re: Linking libraries?
- Index(es):
Relevant Pages
|