This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: elf.sc input section changes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]