NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: dryeo on September 04, 2010, 06:38:10 PM

Title: align question
Post by: dryeo on September 04, 2010, 06:38:10 PM
Hi, trying to assemble some yasm sources with nasm -f aout I see errors like
Quote
YASM    libavcodec/x86/dsputil_yasm.o
/usr/src/ffmpeg/libavcodec/x86/dsputil_yasm.asm:31: error: segment name `.text align=16' not recognized
make: *** [libavcodec/x86/dsputil_yasm.o] Error 1

Changing the code to
.text
align 16
allows assembly to finish
or using nasm -f obj doesn't require any changes.

Is align=16 valid syntax? The documentation implies that align 16 is correct
And is this a bug?
Title: Re: align question
Post by: Cyrill Gorcunov on September 04, 2010, 07:03:15 PM
aout doesn't support align= section attribute, obj in turn does support that is why it doesn't require any changes