This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold input section handling
From: Ian Lance Taylor <iant@google.com>
Date: Mon, 14 Apr 2008 09:45:05 -0700
> Because the Linux kernel is not reliable about setting section flags
> in assembler source, gold has exceptions such that it will combine
> sections with zero flags with sections with non-zero flags if they
> have the same name.
>
> Because gcc uses an optimization for the .eh_frame section, making it
> read-only possible and read-write when necessary, gold has an
> exception for the .eh_frame section.
I think the fact that gold needs two exceptions already, and we know
of other cases that break, are good indications that it may not be
tenable, in the end, to enforce this rule.
There seems to be quite some precendence of using different section
flags in different instances of a section.