#246 ✓resolved
Nico Weber

yasm shouldn't warn on ignored section flags on redeclaration if they match the flags on the original section

Reported by Nico Weber | February 29th, 2012 @ 08:32 PM

Consider this example:

tests-MacBook-Pro-2:libjpeg_turbo test$ cat test.asm
section .rodata align=16
section .rodata align=16

Yasm warns about it:
tests-MacBook-Pro-2:libjpeg_turbo test$ ~/Downloads/yasm-1.2.0/yasm -fmacho test.asm
test.asm:2: warning: section flags ignored on section redeclaration

Yasm shouldn't warn if the flags on the redeclaration match the original flag. This happens in the libjpeg_turbo code: http://sourceforge.net/mailarchive/forum.php?thread_name=CAGDZEH3fX...

See the 3rd comment on https://chromiumcodereview.appspot.com/9533003/#msg3 for why fixing this warning isn't always easy / useful. It would be better if yasm didn't warn if the flags don't change.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages