Last night I checked in code to enable changing the object file format passed to nasm. But I don't have many examples to draw from so if anyone could submit patches against configure.in for any of nasm's supported formats I'll put them in. Right now the relevant snippet just looks like: AC_CANONICAL_HOST case "$host" in *) OBJ_FORMAT=elf ;; esac Any patterns for non-ELF systems would be appreciated. Josh __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
> > AC_CANONICAL_HOST > > case "$host" in > > *) OBJ_FORMAT=elf ;; > > esac > > > Any patterns for non-ELF systems would be appreciated. > > i386-*-openbsd*) OBJ_FORMAT=aoutb ;; > > You'll need to handle OBJ_FORMAT_aoutb (same as OBJ_FORMAT_aout) > in nasm.h. > > You may want to verify this with people who actually run NetBSD, > but I think something like this applies as well: > > i386-*-netbsd1.[0-4]) OBJ_FORMAT=aoutb ;;Couldn't verify the NetBSD stuff but I made the fixes for OpenBSD. Hopefully everything will compile out of the box now. Josh __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Josh Coalson <xflac@yahoo.com> wrote:> AC_CANONICAL_HOST > case "$host" in > *) OBJ_FORMAT=elf ;; > esac> Any patterns for non-ELF systems would be appreciated.i386-*-openbsd*) OBJ_FORMAT=aoutb ;; You'll need to handle OBJ_FORMAT_aoutb (same as OBJ_FORMAT_aout) in nasm.h. You may want to verify this with people who actually run NetBSD, but I think something like this applies as well: i386-*-netbsd1.[0-4]) OBJ_FORMAT=aoutb ;; -- Christian "naddy" Weisgerber naddy@mips.inka.de