Author Topic: align question  (Read 17579 times)

Offline dryeo

  • Jr. Member
  • *
  • Posts: 3
align question
« 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?

Offline Cyrill Gorcunov

  • NASM Developer
  • Full Member
  • *****
  • Posts: 179
  • Country: 00
Re: align question
« Reply #1 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