This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: nonfunctional.
Date: Tue, 18 Apr 2000 20:16:45 +1000 (EST)
From: Alan Modra <alan@linuxcare.com.au>
However, gas can easily detect a change in section flags if that happens
in one input file, which was the case for recent examples of this sort of
problem reported on the binutils list. Something like the following
(completely untested, not even compiled) should do it:
I think it's reasonable to check for this sort of thing in gas.
I do think that we need to check the section flags in precisely the
same way both times, which means that the section flag setting,
including the test for special section names, should be moved into a
separate function.
I also think that the second and subsequent times a section appears in
a file, we should permit it to have no flags specification at all, and
to inherit any earlier specification with no warning. That will make
life easier for hand written assembler code.
Ian