elf.sc input section changes

Jakub Jelinek jakub@redhat.com
Sun Nov 11 08:16:00 GMT 2001
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



More information about the Binutils mailing list