This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: elf.sc input section changes
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 21 Nov 2001 16:12:25 +0100
- Subject: Re: elf.sc input section changes
- References: <20011122012348.Q6922@bubble.sa.bigpond.net.au>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Nov 22, 2001 at 01:23:48AM +1030, Alan Modra wrote:
> The meat of this patch changes input section ordering to better support
> group section removal of eh and debug info. The idea being to place
> input sections to an output section in the same order they are
> encountered. eg. Where we previously had the following in a script,
>
> .data :
> {
> *(.data)
> *(.data.*)
> *(.gnu.linkonce.d.*)
> }
>
> which places all .data sections together before .data.* etc., we now have
>
> .data :
> {
> *(.data .data.* .gnu.linkonce.d.*)
> }
>
> which doesn't reorder the input sections.
This patch steps on toes of
http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01250.html
Thus, .data should be something like:
.data :
{
*(.data.rel.ro.local)
*(.data.rel.local)
*(.data.rel.ro)
*(.data.rel*)
*(.data .data.* .gnu.linkonce.d.*)
}
Jakub