This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: .init_array/.fini_array
On Mon, Oct 21, 2002 at 11:34:23PM -0700, Richard Henderson wrote:
> On Tue, Oct 22, 2002 at 12:19:24PM +0930, Alan Modra wrote:
> > flags |= SECTION_TLS;
> >
> > + if (!(flags & (SECTION_CODE | SECTION_BSS | SECTION_TLS))
> > + && (strcmp (name, ".init_array") == 0
>
> Add a comment describing the issue, and what _ought_ to be
> printed, and the patch is ok.
Committed. This is what I wrote:
/* These three sections have special ELF types. They are neither
SHT_PROGBITS nor SHT_NOBITS, so when changing sections we don't
want to print a section type (@progbits or @nobits). If someone
is silly enough to emit code or TLS variables to one of these
sections, then don't handle them specially. */
--
Alan Modra
IBM OzLabs - Linux Technology Centre